class LSProtocol::WorkspaceEditClientCapabilities

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(change_annotation_support : ChangeAnnotationsSupportOptions | Nil = nil, document_changes : Bool | Nil = nil, failure_handling : FailureHandlingKind | Nil = nil, metadata_support : Bool | Nil = nil, normalizes_line_endings : Bool | Nil = nil, resource_operations : Array(ResourceOperationKind) | Nil = nil, snippet_edit_support : Bool | Nil = nil) #

[View source]

Instance Method Detail

def change_annotation_support : ChangeAnnotationsSupportOptions | Nil #

Whether the client in general supports change annotations on text edits, create file, rename file and delete file changes.

@since 3.16.0


[View source]
def document_changes : Bool | Nil #

The client supports versioned document changes in WorkspaceEdits


[View source]
def failure_handling : FailureHandlingKind | Nil #

The failure handling strategy of a client if applying the workspace edit fails.

@since 3.13.0


[View source]
def metadata_support : Bool | Nil #

Whether the client supports WorkspaceEditMetadata in WorkspaceEdits.

@since 3.18.0 @proposed


[View source]
def normalizes_line_endings : Bool | Nil #

Whether the client normalizes line endings to the client specific setting. If set to true the client will normalize line ending characters in a workspace edit to the client-specified new line character.

@since 3.16.0


[View source]
def resource_operations : Array(ResourceOperationKind) | Nil #

The resource operations the client supports. Clients should at least support 'create', 'rename' and 'delete' files and folders.

@since 3.13.0


[View source]
def snippet_edit_support : Bool | Nil #

Whether the client supports snippets as text edits.

@since 3.18.0 @proposed


[View source]