Package org.eclipse.lsp4j
Class WorkspaceEditCapabilities
- java.lang.Object
-
- org.eclipse.lsp4j.WorkspaceEditCapabilities
-
public class WorkspaceEditCapabilities extends java.lang.ObjectCapabilities specific toWorkspaceEdits
-
-
Constructor Summary
Constructors Constructor Description WorkspaceEditCapabilities()WorkspaceEditCapabilities(java.lang.Boolean documentChanges)Deprecated.because when this class first existed it didn't have any other fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)WorkspaceEditChangeAnnotationSupportCapabilitiesgetChangeAnnotationSupport()Whether the client in general supports change annotations on text edits, create file, rename file and delete file changes.java.lang.BooleangetDocumentChanges()The client supports versioned document changes inWorkspaceEditsjava.lang.StringgetFailureHandling()The failure handling strategy of a client if applying the workspace edit fails.java.lang.BooleangetNormalizesLineEndings()Whether the client normalizes line endings to the client specific setting.java.util.List<java.lang.String>getResourceOperations()The resource operations the client supports.inthashCode()voidsetChangeAnnotationSupport(WorkspaceEditChangeAnnotationSupportCapabilities changeAnnotationSupport)Whether the client in general supports change annotations on text edits, create file, rename file and delete file changes.voidsetDocumentChanges(java.lang.Boolean documentChanges)The client supports versioned document changes inWorkspaceEditsvoidsetFailureHandling(java.lang.String failureHandling)The failure handling strategy of a client if applying the workspace edit fails.voidsetNormalizesLineEndings(java.lang.Boolean normalizesLineEndings)Whether the client normalizes line endings to the client specific setting.voidsetResourceOperations(java.util.List<java.lang.String> resourceOperations)The resource operations the client supports.java.lang.StringtoString()
-
-
-
Constructor Detail
-
WorkspaceEditCapabilities
public WorkspaceEditCapabilities()
-
WorkspaceEditCapabilities
@Deprecated public WorkspaceEditCapabilities(java.lang.Boolean documentChanges)
Deprecated.because when this class first existed it didn't have any other fields. Now that this class has lots of fields, there is nothing special about this field and therefore using the setters is the recommended use case.
-
-
Method Detail
-
getDocumentChanges
public java.lang.Boolean getDocumentChanges()
The client supports versioned document changes inWorkspaceEdits
-
setDocumentChanges
public void setDocumentChanges(java.lang.Boolean documentChanges)
The client supports versioned document changes inWorkspaceEdits
-
getResourceOperations
public java.util.List<java.lang.String> getResourceOperations()
The resource operations the client supports. Clients should at least support 'create', 'rename' and 'delete' files and folders.See
ResourceOperationKindfor allowed values.Since 3.13.0
-
setResourceOperations
public void setResourceOperations(java.util.List<java.lang.String> resourceOperations)
The resource operations the client supports. Clients should at least support 'create', 'rename' and 'delete' files and folders.See
ResourceOperationKindfor allowed values.Since 3.13.0
-
getFailureHandling
public java.lang.String getFailureHandling()
The failure handling strategy of a client if applying the workspace edit fails.See
FailureHandlingKindfor allowed values.Since 3.13.0
-
setFailureHandling
public void setFailureHandling(java.lang.String failureHandling)
The failure handling strategy of a client if applying the workspace edit fails.See
FailureHandlingKindfor allowed values.Since 3.13.0
-
getNormalizesLineEndings
public java.lang.Boolean getNormalizesLineEndings()
Whether the client normalizes line endings to the client specific setting.If set to
truethe client will normalize line ending characters in a workspace edit to the client specific new line character(s).Since 3.16.0
-
setNormalizesLineEndings
public void setNormalizesLineEndings(java.lang.Boolean normalizesLineEndings)
Whether the client normalizes line endings to the client specific setting.If set to
truethe client will normalize line ending characters in a workspace edit to the client specific new line character(s).Since 3.16.0
-
getChangeAnnotationSupport
public WorkspaceEditChangeAnnotationSupportCapabilities getChangeAnnotationSupport()
Whether the client in general supports change annotations on text edits, create file, rename file and delete file changes.Since 3.16.0
-
setChangeAnnotationSupport
public void setChangeAnnotationSupport(WorkspaceEditChangeAnnotationSupportCapabilities changeAnnotationSupport)
Whether the client in general supports change annotations on text edits, create file, rename file and delete file changes.Since 3.16.0
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-