Documentation ¶
Index ¶
- Variables
- type Code
- type Command
- func (*Command) Descriptor() ([]byte, []int)deprecated
- func (x *Command) GetArguments() []*any.Any
- func (x *Command) GetCommand() string
- func (x *Command) GetTitle() string
- func (*Command) ProtoMessage()
- func (x *Command) ProtoReflect() protoreflect.Message
- func (x *Command) Reset()
- func (x *Command) String() string
- type CreateFile
- func (*CreateFile) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFile) GetKind() string
- func (x *CreateFile) GetOptions() *CreateFileOptions
- func (x *CreateFile) GetUri() *uri.URI
- func (*CreateFile) ProtoMessage()
- func (x *CreateFile) ProtoReflect() protoreflect.Message
- func (x *CreateFile) Reset()
- func (x *CreateFile) String() string
- type CreateFileOptions
- func (*CreateFileOptions) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFileOptions) GetIgnoreIfExists() bool
- func (x *CreateFileOptions) GetOverwrite() bool
- func (*CreateFileOptions) ProtoMessage()
- func (x *CreateFileOptions) ProtoReflect() protoreflect.Message
- func (x *CreateFileOptions) Reset()
- func (x *CreateFileOptions) String() string
- type DeleteFile
- func (*DeleteFile) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFile) GetKind() string
- func (x *DeleteFile) GetOptions() *DeleteFileOptions
- func (x *DeleteFile) GetUri() *uri.URI
- func (*DeleteFile) ProtoMessage()
- func (x *DeleteFile) ProtoReflect() protoreflect.Message
- func (x *DeleteFile) Reset()
- func (x *DeleteFile) String() string
- type DeleteFileOptions
- func (*DeleteFileOptions) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileOptions) GetIgnoreIfExists() bool
- func (x *DeleteFileOptions) GetRecursive() bool
- func (*DeleteFileOptions) ProtoMessage()
- func (x *DeleteFileOptions) ProtoReflect() protoreflect.Message
- func (x *DeleteFileOptions) Reset()
- func (x *DeleteFileOptions) String() string
- type Diagnostic
- func (*Diagnostic) Descriptor() ([]byte, []int)deprecated
- func (x *Diagnostic) GetCode() *wrappers.Int32Value
- func (x *Diagnostic) GetMessage() string
- func (x *Diagnostic) GetRange() *Range
- func (x *Diagnostic) GetRelatedInformation() []*DiagnosticRelatedInformation
- func (x *Diagnostic) GetSeverity() DiagnosticSeverity
- func (x *Diagnostic) GetSource() *wrappers.StringValue
- func (x *Diagnostic) GetTags() []DiagnosticTag
- func (*Diagnostic) ProtoMessage()
- func (x *Diagnostic) ProtoReflect() protoreflect.Message
- func (x *Diagnostic) Reset()
- func (x *Diagnostic) String() string
- type DiagnosticRelatedInformation
- func (*DiagnosticRelatedInformation) Descriptor() ([]byte, []int)deprecated
- func (x *DiagnosticRelatedInformation) GetLocation() *Location
- func (x *DiagnosticRelatedInformation) GetMessage() string
- func (*DiagnosticRelatedInformation) ProtoMessage()
- func (x *DiagnosticRelatedInformation) ProtoReflect() protoreflect.Message
- func (x *DiagnosticRelatedInformation) Reset()
- func (x *DiagnosticRelatedInformation) String() string
- type DiagnosticSeverity
- func (DiagnosticSeverity) Descriptor() protoreflect.EnumDescriptor
- func (x DiagnosticSeverity) Enum() *DiagnosticSeverity
- func (DiagnosticSeverity) EnumDescriptor() ([]byte, []int)deprecated
- func (x DiagnosticSeverity) Number() protoreflect.EnumNumber
- func (x DiagnosticSeverity) String() string
- func (DiagnosticSeverity) Type() protoreflect.EnumType
- type DiagnosticTag
- func (DiagnosticTag) Descriptor() protoreflect.EnumDescriptor
- func (x DiagnosticTag) Enum() *DiagnosticTag
- func (DiagnosticTag) EnumDescriptor() ([]byte, []int)deprecated
- func (x DiagnosticTag) Number() protoreflect.EnumNumber
- func (x DiagnosticTag) String() string
- func (DiagnosticTag) Type() protoreflect.EnumType
- type DocumentFilter
- func (*DocumentFilter) Descriptor() ([]byte, []int)deprecated
- func (x *DocumentFilter) GetLanguage() *wrappers.StringValue
- func (x *DocumentFilter) GetPattern() *wrappers.StringValue
- func (x *DocumentFilter) GetScheme() *wrappers.StringValue
- func (*DocumentFilter) ProtoMessage()
- func (x *DocumentFilter) ProtoReflect() protoreflect.Message
- func (x *DocumentFilter) Reset()
- func (x *DocumentFilter) String() string
- type Error
- type FailureHandlingKind
- func (FailureHandlingKind) Descriptor() protoreflect.EnumDescriptor
- func (x FailureHandlingKind) Enum() *FailureHandlingKind
- func (FailureHandlingKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x FailureHandlingKind) Number() protoreflect.EnumNumber
- func (x FailureHandlingKind) String() string
- func (FailureHandlingKind) Type() protoreflect.EnumType
- type FileResourceChange
- func (*FileResourceChange) Descriptor() ([]byte, []int)deprecated
- func (x *FileResourceChange) GetCreateFile() *CreateFile
- func (x *FileResourceChange) GetDeleteFile() *DeleteFile
- func (m *FileResourceChange) GetFile() isFileResourceChange_File
- func (x *FileResourceChange) GetRenameFile() *RenameFile
- func (*FileResourceChange) ProtoMessage()
- func (x *FileResourceChange) ProtoReflect() protoreflect.Message
- func (x *FileResourceChange) Reset()
- func (x *FileResourceChange) String() string
- type FileResourceChange_CreateFile
- type FileResourceChange_DeleteFile
- type FileResourceChange_RenameFile
- type Location
- type LocationLink
- func (*LocationLink) Descriptor() ([]byte, []int)deprecated
- func (x *LocationLink) GetOriginSelectionRange() *Range
- func (x *LocationLink) GetTargetRange() *Range
- func (x *LocationLink) GetTargetSelectionRange() *Range
- func (x *LocationLink) GetTargetUri() *uri.URI
- func (*LocationLink) ProtoMessage()
- func (x *LocationLink) ProtoReflect() protoreflect.Message
- func (x *LocationLink) Reset()
- func (x *LocationLink) String() string
- type MarkupContent
- func (*MarkupContent) Descriptor() ([]byte, []int)deprecated
- func (x *MarkupContent) GetKind() MarkupKind
- func (x *MarkupContent) GetValue() string
- func (*MarkupContent) ProtoMessage()
- func (x *MarkupContent) ProtoReflect() protoreflect.Message
- func (x *MarkupContent) Reset()
- func (x *MarkupContent) String() string
- type MarkupKind
- type Position
- type Range
- type RenameFile
- func (*RenameFile) Descriptor() ([]byte, []int)deprecated
- func (x *RenameFile) GetKind() string
- func (x *RenameFile) GetNewUri() *uri.URI
- func (x *RenameFile) GetOldUri() *uri.URI
- func (x *RenameFile) GetOptions() *RenameFileOptions
- func (*RenameFile) ProtoMessage()
- func (x *RenameFile) ProtoReflect() protoreflect.Message
- func (x *RenameFile) Reset()
- func (x *RenameFile) String() string
- type RenameFileOptions
- func (*RenameFileOptions) Descriptor() ([]byte, []int)deprecated
- func (x *RenameFileOptions) GetIgnoreIfExists() bool
- func (x *RenameFileOptions) GetOverwrite() bool
- func (*RenameFileOptions) ProtoMessage()
- func (x *RenameFileOptions) ProtoReflect() protoreflect.Message
- func (x *RenameFileOptions) Reset()
- func (x *RenameFileOptions) String() string
- type ResourceOperationKind
- func (ResourceOperationKind) Descriptor() protoreflect.EnumDescriptor
- func (x ResourceOperationKind) Enum() *ResourceOperationKind
- func (ResourceOperationKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResourceOperationKind) Number() protoreflect.EnumNumber
- func (x ResourceOperationKind) String() string
- func (ResourceOperationKind) Type() protoreflect.EnumType
- type StaticRegistrationOptions
- func (*StaticRegistrationOptions) Descriptor() ([]byte, []int)deprecated
- func (x *StaticRegistrationOptions) GetId() *wrappers.StringValue
- func (*StaticRegistrationOptions) ProtoMessage()
- func (x *StaticRegistrationOptions) ProtoReflect() protoreflect.Message
- func (x *StaticRegistrationOptions) Reset()
- func (x *StaticRegistrationOptions) String() string
- type TextDocumentEdit
- func (*TextDocumentEdit) Descriptor() ([]byte, []int)deprecated
- func (x *TextDocumentEdit) GetEdits() []*TextEdit
- func (x *TextDocumentEdit) GetTextDocument() *VersionedTextDocumentIdentifier
- func (*TextDocumentEdit) ProtoMessage()
- func (x *TextDocumentEdit) ProtoReflect() protoreflect.Message
- func (x *TextDocumentEdit) Reset()
- func (x *TextDocumentEdit) String() string
- type TextDocumentIdentifier
- func (*TextDocumentIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *TextDocumentIdentifier) GetUri() *uri.URI
- func (*TextDocumentIdentifier) ProtoMessage()
- func (x *TextDocumentIdentifier) ProtoReflect() protoreflect.Message
- func (x *TextDocumentIdentifier) Reset()
- func (x *TextDocumentIdentifier) String() string
- type TextDocumentItem
- func (*TextDocumentItem) Descriptor() ([]byte, []int)deprecated
- func (x *TextDocumentItem) GetLanguageId() string
- func (x *TextDocumentItem) GetText() string
- func (x *TextDocumentItem) GetUri() *uri.URI
- func (x *TextDocumentItem) GetVersion() int32
- func (*TextDocumentItem) ProtoMessage()
- func (x *TextDocumentItem) ProtoReflect() protoreflect.Message
- func (x *TextDocumentItem) Reset()
- func (x *TextDocumentItem) String() string
- type TextDocumentPositionParams
- func (*TextDocumentPositionParams) Descriptor() ([]byte, []int)deprecated
- func (x *TextDocumentPositionParams) GetPosition() *Position
- func (x *TextDocumentPositionParams) GetTextDocument() *TextDocumentIdentifier
- func (*TextDocumentPositionParams) ProtoMessage()
- func (x *TextDocumentPositionParams) ProtoReflect() protoreflect.Message
- func (x *TextDocumentPositionParams) Reset()
- func (x *TextDocumentPositionParams) String() string
- type TextDocumentRegistrationOptions
- func (*TextDocumentRegistrationOptions) Descriptor() ([]byte, []int)deprecated
- func (m *TextDocumentRegistrationOptions) GetDocumentSelector() isTextDocumentRegistrationOptions_DocumentSelector
- func (x *TextDocumentRegistrationOptions) GetEmpty() _struct.NullValue
- func (x *TextDocumentRegistrationOptions) GetSelector() *TextDocumentRegistrationOptions_DocumentSelector
- func (*TextDocumentRegistrationOptions) ProtoMessage()
- func (x *TextDocumentRegistrationOptions) ProtoReflect() protoreflect.Message
- func (x *TextDocumentRegistrationOptions) Reset()
- func (x *TextDocumentRegistrationOptions) String() string
- type TextDocumentRegistrationOptions_DocumentSelector
- func (*TextDocumentRegistrationOptions_DocumentSelector) Descriptor() ([]byte, []int)deprecated
- func (x *TextDocumentRegistrationOptions_DocumentSelector) GetDocumentSelector() []*DocumentFilter
- func (*TextDocumentRegistrationOptions_DocumentSelector) ProtoMessage()
- func (x *TextDocumentRegistrationOptions_DocumentSelector) ProtoReflect() protoreflect.Message
- func (x *TextDocumentRegistrationOptions_DocumentSelector) Reset()
- func (x *TextDocumentRegistrationOptions_DocumentSelector) String() string
- type TextDocumentRegistrationOptions_Empty
- type TextDocumentRegistrationOptions_Selector
- type TextEdit
- type TraceValue
- type VersionedTextDocumentIdentifier
- func (*VersionedTextDocumentIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *VersionedTextDocumentIdentifier) GetTextDocumentIdentifier() *TextDocumentIdentifier
- func (x *VersionedTextDocumentIdentifier) GetVersion() bool
- func (*VersionedTextDocumentIdentifier) ProtoMessage()
- func (x *VersionedTextDocumentIdentifier) ProtoReflect() protoreflect.Message
- func (x *VersionedTextDocumentIdentifier) Reset()
- func (x *VersionedTextDocumentIdentifier) String() string
- type WorkDoneProgressBegin
- func (*WorkDoneProgressBegin) Descriptor() ([]byte, []int)deprecated
- func (x *WorkDoneProgressBegin) GetCancellable() bool
- func (x *WorkDoneProgressBegin) GetKind() string
- func (x *WorkDoneProgressBegin) GetMessage() *wrappers.StringValue
- func (x *WorkDoneProgressBegin) GetPercentage() *wrappers.Int32Value
- func (x *WorkDoneProgressBegin) GetTitle() string
- func (*WorkDoneProgressBegin) ProtoMessage()
- func (x *WorkDoneProgressBegin) ProtoReflect() protoreflect.Message
- func (x *WorkDoneProgressBegin) Reset()
- func (x *WorkDoneProgressBegin) String() string
- type WorkDoneProgressEnd
- func (*WorkDoneProgressEnd) Descriptor() ([]byte, []int)deprecated
- func (x *WorkDoneProgressEnd) GetKind() string
- func (x *WorkDoneProgressEnd) GetMessage() *wrappers.StringValue
- func (*WorkDoneProgressEnd) ProtoMessage()
- func (x *WorkDoneProgressEnd) ProtoReflect() protoreflect.Message
- func (x *WorkDoneProgressEnd) Reset()
- func (x *WorkDoneProgressEnd) String() string
- type WorkDoneProgressOptions
- func (*WorkDoneProgressOptions) Descriptor() ([]byte, []int)deprecated
- func (x *WorkDoneProgressOptions) GetWorkDoneProgress() bool
- func (*WorkDoneProgressOptions) ProtoMessage()
- func (x *WorkDoneProgressOptions) ProtoReflect() protoreflect.Message
- func (x *WorkDoneProgressOptions) Reset()
- func (x *WorkDoneProgressOptions) String() string
- type WorkDoneProgressReport
- func (*WorkDoneProgressReport) Descriptor() ([]byte, []int)deprecated
- func (x *WorkDoneProgressReport) GetCancellable() bool
- func (x *WorkDoneProgressReport) GetKind() string
- func (x *WorkDoneProgressReport) GetMessage() *wrappers.StringValue
- func (x *WorkDoneProgressReport) GetPercentage() *wrappers.Int32Value
- func (*WorkDoneProgressReport) ProtoMessage()
- func (x *WorkDoneProgressReport) ProtoReflect() protoreflect.Message
- func (x *WorkDoneProgressReport) Reset()
- func (x *WorkDoneProgressReport) String() string
- type WorkspaceEdit
- func (*WorkspaceEdit) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceEdit) GetChanges() map[string]*WorkspaceEdit_TextEdits
- func (x *WorkspaceEdit) GetCreateFiles() *WorkspaceEdit_CreateFiles
- func (x *WorkspaceEdit) GetDeleteFiles() *WorkspaceEdit_DeleteFiles
- func (m *WorkspaceEdit) GetDocumentChanges() isWorkspaceEdit_DocumentChanges
- func (x *WorkspaceEdit) GetRenameFiles() *WorkspaceEdit_RenameFiles
- func (x *WorkspaceEdit) GetTextDocumentEdits() *WorkspaceEdit_TextDocumentEdits
- func (*WorkspaceEdit) ProtoMessage()
- func (x *WorkspaceEdit) ProtoReflect() protoreflect.Message
- func (x *WorkspaceEdit) Reset()
- func (x *WorkspaceEdit) String() string
- type WorkspaceEditClientCapabilities
- func (*WorkspaceEditClientCapabilities) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceEditClientCapabilities) GetDocumentChanges() bool
- func (x *WorkspaceEditClientCapabilities) GetFailureHandling() FailureHandlingKind
- func (x *WorkspaceEditClientCapabilities) GetResourceOperations() []ResourceOperationKind
- func (*WorkspaceEditClientCapabilities) ProtoMessage()
- func (x *WorkspaceEditClientCapabilities) ProtoReflect() protoreflect.Message
- func (x *WorkspaceEditClientCapabilities) Reset()
- func (x *WorkspaceEditClientCapabilities) String() string
- type WorkspaceEdit_CreateFiles
- func (*WorkspaceEdit_CreateFiles) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceEdit_CreateFiles) GetCreateFiles() []*CreateFile
- func (*WorkspaceEdit_CreateFiles) ProtoMessage()
- func (x *WorkspaceEdit_CreateFiles) ProtoReflect() protoreflect.Message
- func (x *WorkspaceEdit_CreateFiles) Reset()
- func (x *WorkspaceEdit_CreateFiles) String() string
- type WorkspaceEdit_CreateFiles_
- type WorkspaceEdit_DeleteFiles
- func (*WorkspaceEdit_DeleteFiles) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceEdit_DeleteFiles) GetDeleteFiles() []*DeleteFile
- func (*WorkspaceEdit_DeleteFiles) ProtoMessage()
- func (x *WorkspaceEdit_DeleteFiles) ProtoReflect() protoreflect.Message
- func (x *WorkspaceEdit_DeleteFiles) Reset()
- func (x *WorkspaceEdit_DeleteFiles) String() string
- type WorkspaceEdit_DeleteFiles_
- type WorkspaceEdit_RenameFiles
- func (*WorkspaceEdit_RenameFiles) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceEdit_RenameFiles) GetRenameFiles() []*RenameFile
- func (*WorkspaceEdit_RenameFiles) ProtoMessage()
- func (x *WorkspaceEdit_RenameFiles) ProtoReflect() protoreflect.Message
- func (x *WorkspaceEdit_RenameFiles) Reset()
- func (x *WorkspaceEdit_RenameFiles) String() string
- type WorkspaceEdit_RenameFiles_
- type WorkspaceEdit_TextDocumentEdits
- func (*WorkspaceEdit_TextDocumentEdits) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceEdit_TextDocumentEdits) GetTextDocumentEdits() []*TextDocumentEdit
- func (*WorkspaceEdit_TextDocumentEdits) ProtoMessage()
- func (x *WorkspaceEdit_TextDocumentEdits) ProtoReflect() protoreflect.Message
- func (x *WorkspaceEdit_TextDocumentEdits) Reset()
- func (x *WorkspaceEdit_TextDocumentEdits) String() string
- type WorkspaceEdit_TextDocumentEdits_
- type WorkspaceEdit_TextEdits
- func (*WorkspaceEdit_TextEdits) Descriptor() ([]byte, []int)deprecated
- func (x *WorkspaceEdit_TextEdits) GetTextEdits() []*TextEdit
- func (*WorkspaceEdit_TextEdits) ProtoMessage()
- func (x *WorkspaceEdit_TextEdits) ProtoReflect() protoreflect.Message
- func (x *WorkspaceEdit_TextEdits) Reset()
- func (x *WorkspaceEdit_TextEdits) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Code_name = map[int32]string{ 0: "OK", -32700: "PARSE_ERROR", -32600: "INVALID_REQUEST", -32601: "METHOD_NOT_FOUND", -32602: "INVALID_PARAMS", -32603: "INTERNAL_ERROR", -32002: "SERVER_NOT_INITIALIZED", -32001: "UNKNOWN_ERROR_CODE", -32800: "REQUEST_CANCELLED", -32801: "CONTENT_MODIFIED", } Code_value = map[string]int32{ "OK": 0, "PARSE_ERROR": -32700, "INVALID_REQUEST": -32600, "METHOD_NOT_FOUND": -32601, "INVALID_PARAMS": -32602, "INTERNAL_ERROR": -32603, "SERVER_NOT_INITIALIZED": -32002, "UNKNOWN_ERROR_CODE": -32001, "REQUEST_CANCELLED": -32800, "CONTENT_MODIFIED": -32801, } )
Enum value maps for Code.
var ( DiagnosticSeverity_name = map[int32]string{ 0: "DIAGNOSTIC_SEVERITY_UNSPECIFIED", 1: "ERROR", 2: "WARNING", 3: "INFORMATION", 4: "HINT", } DiagnosticSeverity_value = map[string]int32{ "DIAGNOSTIC_SEVERITY_UNSPECIFIED": 0, "ERROR": 1, "WARNING": 2, "INFORMATION": 3, "HINT": 4, } )
Enum value maps for DiagnosticSeverity.
var ( DiagnosticTag_name = map[int32]string{ 0: "DIAGNOSTIC_TAG_UNSPECIFIED", 1: "UNNECESSARY", 2: "DEPRECATED", } DiagnosticTag_value = map[string]int32{ "DIAGNOSTIC_TAG_UNSPECIFIED": 0, "UNNECESSARY": 1, "DEPRECATED": 2, } )
Enum value maps for DiagnosticTag.
var ( ResourceOperationKind_name = map[int32]string{ 0: "RESOURCE_OPERATION_KIND_UNSPECIFIED", 1: "CREATE", 2: "RENAME", 3: "DELETE", } ResourceOperationKind_value = map[string]int32{ "RESOURCE_OPERATION_KIND_UNSPECIFIED": 0, "CREATE": 1, "RENAME": 2, "DELETE": 3, } )
Enum value maps for ResourceOperationKind.
var ( FailureHandlingKind_name = map[int32]string{ 0: "FAILURE_HANDLING_KIND_UNSPECIFIED", 1: "ABORT", 2: "TRANSACTIONAL", 3: "TEXT_ONLY_TRANSACTIONAL", 4: "UNDO", } FailureHandlingKind_value = map[string]int32{ "FAILURE_HANDLING_KIND_UNSPECIFIED": 0, "ABORT": 1, "TRANSACTIONAL": 2, "TEXT_ONLY_TRANSACTIONAL": 3, "UNDO": 4, } )
Enum value maps for FailureHandlingKind.
var ( MarkupKind_name = map[int32]string{ 0: "MARKUP_KIND_UNSPECIFIED", 1: "PLAIN_TEXT", 2: "MARKDOWN", } MarkupKind_value = map[string]int32{ "MARKUP_KIND_UNSPECIFIED": 0, "PLAIN_TEXT": 1, "MARKDOWN": 2, } )
Enum value maps for MarkupKind.
var ( TraceValue_name = map[int32]string{ 0: "TRACE_VALUE_UNSPECIFIED", 1: "OFF", 2: "MESSAGE", 3: "VERBOSE", } TraceValue_value = map[string]int32{ "TRACE_VALUE_UNSPECIFIED": 0, "OFF": 1, "MESSAGE": 2, "VERBOSE": 3, } )
Enum value maps for TraceValue.
var File_protocol_error_proto protoreflect.FileDescriptor
var File_protocol_protocol_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code int32
Code is the error code in case a request fails.
const ( // Conventional default for enums. Do not use this. Code_OK Code = 0 // Invalid JSON was received by the server. An error occurred on the server while parsing the JSON // text. Code_PARSE_ERROR Code = -32700 // The JSON sent is not a valid Request object. Code_INVALID_REQUEST Code = -32600 // The method does not exist / is not available. Code_METHOD_NOT_FOUND Code = -32601 // Invalid method parameter(s). Code_INVALID_PARAMS Code = -32602 // Internal JSON-RPC error. Code_INTERNAL_ERROR Code = -32603 // Server not initialized. Code_SERVER_NOT_INITIALIZED Code = -32002 // Unknown error. Code_UNKNOWN_ERROR_CODE Code = -32001 // Cancelled request. Code_REQUEST_CANCELLED Code = -32800 // Modified content. Code_CONTENT_MODIFIED Code = -32801 )
func (Code) Descriptor ¶
func (Code) Descriptor() protoreflect.EnumDescriptor
func (Code) EnumDescriptor
deprecated
func (Code) Number ¶
func (x Code) Number() protoreflect.EnumNumber
func (Code) Type ¶
func (Code) Type() protoreflect.EnumType
type Command ¶
type Command struct { // Title of the command, like `save`. Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // The identifier of the actual command handler. Command string `protobuf:"bytes,2,opt,name=command,proto3" json:"command,omitempty"` // Arguments that the command handler should be // invoked with. // (-- api-linter: core::0140::reserved-words=disabled --) Arguments []*any.Any `protobuf:"bytes,3,rep,name=arguments,proto3" json:"arguments,omitempty"` // contains filtered or unexported fields }
Command represents a reference to a command.
Provides a title which will be used to represent a command in the UI. Commands are identified by a string identifier. The recommended way to handle commands is to implement their execution on the server side if the client and server provides the corresponding capabilities. Alternatively the tool extension code could handle the command.
The protocol currently doesn’t specify a set of well-known commands.
func (*Command) Descriptor
deprecated
func (*Command) GetArguments ¶
func (*Command) GetCommand ¶
func (*Command) ProtoMessage ¶
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶
func (x *Command) ProtoReflect() protoreflect.Message
type CreateFile ¶
type CreateFile struct { // The kind of CreateFile message. // (-- api-linter: core::0192::only-leading-comments=disabled --) Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // always 'create' // The resource to create. Uri *uri.URI `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // Optional. Additional options Options *CreateFileOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
CreateFile create file operation.
func (*CreateFile) Descriptor
deprecated
func (*CreateFile) Descriptor() ([]byte, []int)
Deprecated: Use CreateFile.ProtoReflect.Descriptor instead.
func (*CreateFile) GetKind ¶
func (x *CreateFile) GetKind() string
func (*CreateFile) GetOptions ¶
func (x *CreateFile) GetOptions() *CreateFileOptions
func (*CreateFile) GetUri ¶
func (x *CreateFile) GetUri() *uri.URI
func (*CreateFile) ProtoMessage ¶
func (*CreateFile) ProtoMessage()
func (*CreateFile) ProtoReflect ¶
func (x *CreateFile) ProtoReflect() protoreflect.Message
func (*CreateFile) Reset ¶
func (x *CreateFile) Reset()
func (*CreateFile) String ¶
func (x *CreateFile) String() string
type CreateFileOptions ¶
type CreateFileOptions struct { // Optional. Overwrite existing file. Overwrite wins over `ignoreIfExists`. Overwrite bool `protobuf:"varint,1,opt,name=overwrite,proto3" json:"overwrite,omitempty"` // Optional. Ignore if exists. IgnoreIfExists bool `protobuf:"varint,2,opt,name=ignore_if_exists,json=ignoreIfExists,proto3" json:"ignore_if_exists,omitempty"` // contains filtered or unexported fields }
CreateFileOptions is the options to create a file.
func (*CreateFileOptions) Descriptor
deprecated
func (*CreateFileOptions) Descriptor() ([]byte, []int)
Deprecated: Use CreateFileOptions.ProtoReflect.Descriptor instead.
func (*CreateFileOptions) GetIgnoreIfExists ¶
func (x *CreateFileOptions) GetIgnoreIfExists() bool
func (*CreateFileOptions) GetOverwrite ¶
func (x *CreateFileOptions) GetOverwrite() bool
func (*CreateFileOptions) ProtoMessage ¶
func (*CreateFileOptions) ProtoMessage()
func (*CreateFileOptions) ProtoReflect ¶
func (x *CreateFileOptions) ProtoReflect() protoreflect.Message
func (*CreateFileOptions) Reset ¶
func (x *CreateFileOptions) Reset()
func (*CreateFileOptions) String ¶
func (x *CreateFileOptions) String() string
type DeleteFile ¶
type DeleteFile struct { // The kind of DeleteFile message. // // always 'delete' Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The file to delete. Uri *uri.URI `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // Optional. Delete options. Options *DeleteFileOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
DeleteFile delete file operation.
func (*DeleteFile) Descriptor
deprecated
func (*DeleteFile) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFile.ProtoReflect.Descriptor instead.
func (*DeleteFile) GetKind ¶
func (x *DeleteFile) GetKind() string
func (*DeleteFile) GetOptions ¶
func (x *DeleteFile) GetOptions() *DeleteFileOptions
func (*DeleteFile) GetUri ¶
func (x *DeleteFile) GetUri() *uri.URI
func (*DeleteFile) ProtoMessage ¶
func (*DeleteFile) ProtoMessage()
func (*DeleteFile) ProtoReflect ¶
func (x *DeleteFile) ProtoReflect() protoreflect.Message
func (*DeleteFile) Reset ¶
func (x *DeleteFile) Reset()
func (*DeleteFile) String ¶
func (x *DeleteFile) String() string
type DeleteFileOptions ¶
type DeleteFileOptions struct { // Optional. Delete the content recursively if a folder is denoted. Recursive bool `protobuf:"varint,1,opt,name=recursive,proto3" json:"recursive,omitempty"` // Optional. Ignore the operation if the file doesn't exist. IgnoreIfExists bool `protobuf:"varint,2,opt,name=ignore_if_exists,json=ignoreIfExists,proto3" json:"ignore_if_exists,omitempty"` // contains filtered or unexported fields }
DeleteFileOptions is the options to delete a file.
func (*DeleteFileOptions) Descriptor
deprecated
func (*DeleteFileOptions) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileOptions.ProtoReflect.Descriptor instead.
func (*DeleteFileOptions) GetIgnoreIfExists ¶
func (x *DeleteFileOptions) GetIgnoreIfExists() bool
func (*DeleteFileOptions) GetRecursive ¶
func (x *DeleteFileOptions) GetRecursive() bool
func (*DeleteFileOptions) ProtoMessage ¶
func (*DeleteFileOptions) ProtoMessage()
func (*DeleteFileOptions) ProtoReflect ¶
func (x *DeleteFileOptions) ProtoReflect() protoreflect.Message
func (*DeleteFileOptions) Reset ¶
func (x *DeleteFileOptions) Reset()
func (*DeleteFileOptions) String ¶
func (x *DeleteFileOptions) String() string
type Diagnostic ¶
type Diagnostic struct { // The range at which the message applies. Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` // Optional. The diagnostic's severity. Can be omitted. If omitted it is up to the // client to interpret diagnostics as error, warning, info or hint. Severity DiagnosticSeverity `protobuf:"varint,2,opt,name=severity,proto3,enum=protocol.DiagnosticSeverity" json:"severity,omitempty"` // Optional. The diagnostic's code, which might appear in the user interface. Code *wrappers.Int32Value `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // Optional. A human-readable string describing the source of this // diagnostic, e.g. 'typescript' or 'super lint'. Source *wrappers.StringValue `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` // The diagnostic's message. Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` // Optional. Additional metadata about the diagnostic. // // @since 3.15.0 Tags []DiagnosticTag `protobuf:"varint,6,rep,packed,name=tags,proto3,enum=protocol.DiagnosticTag" json:"tags,omitempty"` // Optional. An array of related diagnostic information, e.g. when symbol-names within // a scope collide all definitions can be marked via this property. // (-- api-linter: core::0140::abbreviations=disabled --) RelatedInformation []*DiagnosticRelatedInformation `protobuf:"bytes,7,rep,name=related_information,json=relatedInformation,proto3" json:"related_information,omitempty"` // contains filtered or unexported fields }
Diagnostic represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a resource.
func (*Diagnostic) Descriptor
deprecated
func (*Diagnostic) Descriptor() ([]byte, []int)
Deprecated: Use Diagnostic.ProtoReflect.Descriptor instead.
func (*Diagnostic) GetCode ¶
func (x *Diagnostic) GetCode() *wrappers.Int32Value
func (*Diagnostic) GetMessage ¶
func (x *Diagnostic) GetMessage() string
func (*Diagnostic) GetRange ¶
func (x *Diagnostic) GetRange() *Range
func (*Diagnostic) GetRelatedInformation ¶
func (x *Diagnostic) GetRelatedInformation() []*DiagnosticRelatedInformation
func (*Diagnostic) GetSeverity ¶
func (x *Diagnostic) GetSeverity() DiagnosticSeverity
func (*Diagnostic) GetSource ¶
func (x *Diagnostic) GetSource() *wrappers.StringValue
func (*Diagnostic) GetTags ¶
func (x *Diagnostic) GetTags() []DiagnosticTag
func (*Diagnostic) ProtoMessage ¶
func (*Diagnostic) ProtoMessage()
func (*Diagnostic) ProtoReflect ¶
func (x *Diagnostic) ProtoReflect() protoreflect.Message
func (*Diagnostic) Reset ¶
func (x *Diagnostic) Reset()
func (*Diagnostic) String ¶
func (x *Diagnostic) String() string
type DiagnosticRelatedInformation ¶
type DiagnosticRelatedInformation struct { // The location of this related diagnostic information. Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"` // The message of this related diagnostic information. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
DiagnosticRelatedInformation represents a related message and source code location for a diagnostic.
This should be used to point to code locations that cause or are related to a diagnostics, e.g when duplicating a symbol in a scope. (-- api-linter: core::0140::abbreviations=disabled --)
func (*DiagnosticRelatedInformation) Descriptor
deprecated
func (*DiagnosticRelatedInformation) Descriptor() ([]byte, []int)
Deprecated: Use DiagnosticRelatedInformation.ProtoReflect.Descriptor instead.
func (*DiagnosticRelatedInformation) GetLocation ¶
func (x *DiagnosticRelatedInformation) GetLocation() *Location
func (*DiagnosticRelatedInformation) GetMessage ¶
func (x *DiagnosticRelatedInformation) GetMessage() string
func (*DiagnosticRelatedInformation) ProtoMessage ¶
func (*DiagnosticRelatedInformation) ProtoMessage()
func (*DiagnosticRelatedInformation) ProtoReflect ¶
func (x *DiagnosticRelatedInformation) ProtoReflect() protoreflect.Message
func (*DiagnosticRelatedInformation) Reset ¶
func (x *DiagnosticRelatedInformation) Reset()
func (*DiagnosticRelatedInformation) String ¶
func (x *DiagnosticRelatedInformation) String() string
type DiagnosticSeverity ¶
type DiagnosticSeverity int32
DiagnosticSeverity represents a diagnostic severity level.
const ( // Conventional default for enums. Do not use this. DiagnosticSeverity_DIAGNOSTIC_SEVERITY_UNSPECIFIED DiagnosticSeverity = 0 // Reports an error. DiagnosticSeverity_ERROR DiagnosticSeverity = 1 // Reports a warning. DiagnosticSeverity_WARNING DiagnosticSeverity = 2 // Reports an information. // (-- api-linter: core::0140::abbreviations=disabled --) DiagnosticSeverity_INFORMATION DiagnosticSeverity = 3 // Reports a hint. DiagnosticSeverity_HINT DiagnosticSeverity = 4 )
func (DiagnosticSeverity) Descriptor ¶
func (DiagnosticSeverity) Descriptor() protoreflect.EnumDescriptor
func (DiagnosticSeverity) Enum ¶
func (x DiagnosticSeverity) Enum() *DiagnosticSeverity
func (DiagnosticSeverity) EnumDescriptor
deprecated
func (DiagnosticSeverity) EnumDescriptor() ([]byte, []int)
Deprecated: Use DiagnosticSeverity.Descriptor instead.
func (DiagnosticSeverity) Number ¶
func (x DiagnosticSeverity) Number() protoreflect.EnumNumber
func (DiagnosticSeverity) String ¶
func (x DiagnosticSeverity) String() string
func (DiagnosticSeverity) Type ¶
func (DiagnosticSeverity) Type() protoreflect.EnumType
type DiagnosticTag ¶
type DiagnosticTag int32
DiagnosticTag is the diagnostic tags.
@since 3.15.0
const ( // Conventional default for enums. Do not use this. DiagnosticTag_DIAGNOSTIC_TAG_UNSPECIFIED DiagnosticTag = 0 // Unused or unnecessary code. // // Clients are allowed to render diagnostics with this tag faded out instead of having // an error squiggle. DiagnosticTag_UNNECESSARY DiagnosticTag = 1 // Deprecated or obsolete code. // // Clients are allowed to rendered diagnostics with this tag strike through. DiagnosticTag_DEPRECATED DiagnosticTag = 2 )
func (DiagnosticTag) Descriptor ¶
func (DiagnosticTag) Descriptor() protoreflect.EnumDescriptor
func (DiagnosticTag) Enum ¶
func (x DiagnosticTag) Enum() *DiagnosticTag
func (DiagnosticTag) EnumDescriptor
deprecated
func (DiagnosticTag) EnumDescriptor() ([]byte, []int)
Deprecated: Use DiagnosticTag.Descriptor instead.
func (DiagnosticTag) Number ¶
func (x DiagnosticTag) Number() protoreflect.EnumNumber
func (DiagnosticTag) String ¶
func (x DiagnosticTag) String() string
func (DiagnosticTag) Type ¶
func (DiagnosticTag) Type() protoreflect.EnumType
type DocumentFilter ¶
type DocumentFilter struct { // Optional. A language id, like `typescript`. // // (-- api-linter: core::0143::standardized-codes=disabled --) Language *wrappers.StringValue `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"` // Optional. A URI [scheme](#uri.Scheme), like `file` or `untitled`. Scheme *wrappers.StringValue `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"` // Optional. A glob pattern, like `*.{ts,js}`. // // Glob patterns can have the following syntax: // - `*` to match one or more characters in a path segment // - `?` to match on one character in a path segment // - `**` to match any number of path segments, including none // - `{}` to group conditions (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files) // - `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to // match on `example.0`, `example.1`, …) // - `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` // to match on `example.a`, `example.b`, but not `example.0`) Pattern *wrappers.StringValue `protobuf:"bytes,3,opt,name=pattern,proto3" json:"pattern,omitempty"` // contains filtered or unexported fields }
DocumentFilter is a document filter denotes a document through properties like language, scheme or pattern. An example is a filter that applies to TypeScript files on disk. Another example is a filter the applies to JSON files with name package.json:
func (*DocumentFilter) Descriptor
deprecated
func (*DocumentFilter) Descriptor() ([]byte, []int)
Deprecated: Use DocumentFilter.ProtoReflect.Descriptor instead.
func (*DocumentFilter) GetLanguage ¶
func (x *DocumentFilter) GetLanguage() *wrappers.StringValue
func (*DocumentFilter) GetPattern ¶
func (x *DocumentFilter) GetPattern() *wrappers.StringValue
func (*DocumentFilter) GetScheme ¶
func (x *DocumentFilter) GetScheme() *wrappers.StringValue
func (*DocumentFilter) ProtoMessage ¶
func (*DocumentFilter) ProtoMessage()
func (*DocumentFilter) ProtoReflect ¶
func (x *DocumentFilter) ProtoReflect() protoreflect.Message
func (*DocumentFilter) Reset ¶
func (x *DocumentFilter) Reset()
func (*DocumentFilter) String ¶
func (x *DocumentFilter) String() string
type Error ¶
type Error struct { // A number indicating the error type that occurred. // // Which may an enum value of [Code][#code]. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // A string providing a short description of the error. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A primitive or structured value that contains additional // information about the error. Can be omitted. Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Error represents a JSON-RPC error.
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type FailureHandlingKind ¶
type FailureHandlingKind int32
const ( // Conventional default for enums. Do not use this. FailureHandlingKind_FAILURE_HANDLING_KIND_UNSPECIFIED FailureHandlingKind = 0 // Applying the workspace change is simply aborted if one of the changes provided // fails. All operations executed before the failing operation stay executed. FailureHandlingKind_ABORT FailureHandlingKind = 1 // All operations are executed transactional. That means they either all // succeed or no changes at all are applied to the workspace. FailureHandlingKind_TRANSACTIONAL FailureHandlingKind = 2 // If the workspace edit contains only textual file changes they are executed transactional. // If resource changes (create, rename or delete file) are part of the change the failure // handling strategy is abort. FailureHandlingKind_TEXT_ONLY_TRANSACTIONAL FailureHandlingKind = 3 // The client tries to undo the operations already executed. But there is no // guarantee that this is succeeding. FailureHandlingKind_UNDO FailureHandlingKind = 4 )
func (FailureHandlingKind) Descriptor ¶
func (FailureHandlingKind) Descriptor() protoreflect.EnumDescriptor
func (FailureHandlingKind) Enum ¶
func (x FailureHandlingKind) Enum() *FailureHandlingKind
func (FailureHandlingKind) EnumDescriptor
deprecated
func (FailureHandlingKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use FailureHandlingKind.Descriptor instead.
func (FailureHandlingKind) Number ¶
func (x FailureHandlingKind) Number() protoreflect.EnumNumber
func (FailureHandlingKind) String ¶
func (x FailureHandlingKind) String() string
func (FailureHandlingKind) Type ¶
func (FailureHandlingKind) Type() protoreflect.EnumType
type FileResourceChange ¶
type FileResourceChange struct { // Types that are assignable to File: // *FileResourceChange_CreateFile // *FileResourceChange_RenameFile // *FileResourceChange_DeleteFile File isFileResourceChange_File `protobuf_oneof:"file"` // contains filtered or unexported fields }
FileResourceChange allow servers to create, rename and delete files and folders via the client.
Note that the names talk about files but the operations are supposed to work on files and folders. This is in line with other naming in the Language Server Protocol (see file watchers which can watch files and folders).
New in version 3.13.
func (*FileResourceChange) Descriptor
deprecated
func (*FileResourceChange) Descriptor() ([]byte, []int)
Deprecated: Use FileResourceChange.ProtoReflect.Descriptor instead.
func (*FileResourceChange) GetCreateFile ¶
func (x *FileResourceChange) GetCreateFile() *CreateFile
func (*FileResourceChange) GetDeleteFile ¶
func (x *FileResourceChange) GetDeleteFile() *DeleteFile
func (*FileResourceChange) GetFile ¶
func (m *FileResourceChange) GetFile() isFileResourceChange_File
func (*FileResourceChange) GetRenameFile ¶
func (x *FileResourceChange) GetRenameFile() *RenameFile
func (*FileResourceChange) ProtoMessage ¶
func (*FileResourceChange) ProtoMessage()
func (*FileResourceChange) ProtoReflect ¶
func (x *FileResourceChange) ProtoReflect() protoreflect.Message
func (*FileResourceChange) Reset ¶
func (x *FileResourceChange) Reset()
func (*FileResourceChange) String ¶
func (x *FileResourceChange) String() string
type FileResourceChange_CreateFile ¶
type FileResourceChange_CreateFile struct { // CreateFile create file operation. CreateFile *CreateFile `protobuf:"bytes,1,opt,name=create_file,json=createFile,proto3,oneof"` }
type FileResourceChange_DeleteFile ¶
type FileResourceChange_DeleteFile struct { // DeleteFile delete file operation. DeleteFile *DeleteFile `protobuf:"bytes,3,opt,name=delete_file,json=deleteFile,proto3,oneof"` }
type FileResourceChange_RenameFile ¶
type FileResourceChange_RenameFile struct { // RenameFile rename file operation. RenameFile *RenameFile `protobuf:"bytes,2,opt,name=rename_file,json=renameFile,proto3,oneof"` }
type Location ¶
type Location struct { // The text document's uri. Uri *uri.URI `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` // The location's range. Range *Range `protobuf:"bytes,2,opt,name=range,proto3" json:"range,omitempty"` // contains filtered or unexported fields }
Location represents a location inside a resource, such as a line inside a text file.
func (*Location) Descriptor
deprecated
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type LocationLink ¶
type LocationLink struct { // Optional. The span of the origin of this link. // // Used as the underlined span for mouse interaction. Defaults to the word range at // the mouse position. OriginSelectionRange *Range `protobuf:"bytes,1,opt,name=origin_selection_range,json=originSelectionRange,proto3" json:"origin_selection_range,omitempty"` // The target resource identifier of this link. TargetUri *uri.URI `protobuf:"bytes,2,opt,name=target_uri,json=targetUri,proto3" json:"target_uri,omitempty"` // The full target range of this link. // // If the target for example is a symbol then target range is the range enclosing this symbol not // including leading/trailing whitespace but everything else like comments. This information is // typically used to highlight the range in the editor. TargetRange *Range `protobuf:"bytes,3,opt,name=target_range,json=targetRange,proto3" json:"target_range,omitempty"` // The range that should be selected and revealed when this link is being followed, e.g the name // of a function. Must be contained by the the `targetRange`. See also // [DocumentSymbol#range][DocumentSymbol]. TargetSelectionRange *Range `protobuf:"bytes,4,opt,name=target_selection_range,json=targetSelectionRange,proto3" json:"target_selection_range,omitempty"` // contains filtered or unexported fields }
LocationLink represents a link between a source and a target location.
func (*LocationLink) Descriptor
deprecated
func (*LocationLink) Descriptor() ([]byte, []int)
Deprecated: Use LocationLink.ProtoReflect.Descriptor instead.
func (*LocationLink) GetOriginSelectionRange ¶
func (x *LocationLink) GetOriginSelectionRange() *Range
func (*LocationLink) GetTargetRange ¶
func (x *LocationLink) GetTargetRange() *Range
func (*LocationLink) GetTargetSelectionRange ¶
func (x *LocationLink) GetTargetSelectionRange() *Range
func (*LocationLink) GetTargetUri ¶
func (x *LocationLink) GetTargetUri() *uri.URI
func (*LocationLink) ProtoMessage ¶
func (*LocationLink) ProtoMessage()
func (*LocationLink) ProtoReflect ¶
func (x *LocationLink) ProtoReflect() protoreflect.Message
func (*LocationLink) Reset ¶
func (x *LocationLink) Reset()
func (*LocationLink) String ¶
func (x *LocationLink) String() string
type MarkupContent ¶
type MarkupContent struct { // The type of the Markup. Kind MarkupKind `protobuf:"varint,1,opt,name=kind,proto3,enum=protocol.MarkupKind" json:"kind,omitempty"` // The content itself. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
MarkupContent is a MarkupContent literal represents a string value which content can be represented in different formats. Currently plaintext and markdown are supported formats. A MarkupContent is usually used in documentation properties of result literals like CompletionItem or SignatureInformation.
A `MarkupContent` literal represents a string value which content is interpreted base on its kind flag. Currently the protocol supports `plaintext` and `markdown` as markup kinds.
If the kind is `markdown` then the value can contain fenced code blocks like in GitHub issues. See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting
Here is an example how such a string can be constructed using JavaScript / TypeScript:
```markdown ```typescript
let markdown: MarkdownContent = { kind: MarkupKind.Markdown, value: [ '# Header', 'Some text', '```typescript', 'someCode();', '```' ].join('\n') };
``` ```
NOTE: clients might sanitize the return markdown. A client could decide to remove HTML from the markdown to avoid script execution.
func (*MarkupContent) Descriptor
deprecated
func (*MarkupContent) Descriptor() ([]byte, []int)
Deprecated: Use MarkupContent.ProtoReflect.Descriptor instead.
func (*MarkupContent) GetKind ¶
func (x *MarkupContent) GetKind() MarkupKind
func (*MarkupContent) GetValue ¶
func (x *MarkupContent) GetValue() string
func (*MarkupContent) ProtoMessage ¶
func (*MarkupContent) ProtoMessage()
func (*MarkupContent) ProtoReflect ¶
func (x *MarkupContent) ProtoReflect() protoreflect.Message
func (*MarkupContent) Reset ¶
func (x *MarkupContent) Reset()
func (*MarkupContent) String ¶
func (x *MarkupContent) String() string
type MarkupKind ¶
type MarkupKind int32
MarkupKind describes the content type that a client supports in various result literals like `Hover`, `ParameterInfo` or `CompletionItem`.
Please note that `MarkupKinds` must not start with a `$`. This kinds are reserved for internal usage.
const ( // Conventional default for enums. Do not use this. MarkupKind_MARKUP_KIND_UNSPECIFIED MarkupKind = 0 // Plain text is supported as a content format MarkupKind_PLAIN_TEXT MarkupKind = 1 // Markdown is supported as a content format MarkupKind_MARKDOWN MarkupKind = 2 )
func (MarkupKind) Descriptor ¶
func (MarkupKind) Descriptor() protoreflect.EnumDescriptor
func (MarkupKind) Enum ¶
func (x MarkupKind) Enum() *MarkupKind
func (MarkupKind) EnumDescriptor
deprecated
func (MarkupKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use MarkupKind.Descriptor instead.
func (MarkupKind) Number ¶
func (x MarkupKind) Number() protoreflect.EnumNumber
func (MarkupKind) String ¶
func (x MarkupKind) String() string
func (MarkupKind) Type ¶
func (MarkupKind) Type() protoreflect.EnumType
type Position ¶
type Position struct { // Line position in a document (zero-based). Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` // Character offset on a line in a document (zero-based). Assuming that the line is // represented as a string, the `character` value represents the gap between the // `character` and `character + 1`. // // If the character value is greater than the line length it defaults back to the // line length. // // The offsets are based on a UTF-16 string representation. Character int32 `protobuf:"varint,2,opt,name=character,proto3" json:"character,omitempty"` // contains filtered or unexported fields }
Position in a text document expressed as zero-based line and zero-based character offset. A position is between two characters like an ‘insert’ cursor in a editor. Special values like for example -1 to denote the end of a line are not supported.
func (*Position) Descriptor
deprecated
func (*Position) GetCharacter ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type Range ¶
type Range struct { // The range's start position. Start *Position `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` // The range's end position. End *Position `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
Range in a text document expressed as (zero-based) start and end positions.
A range is comparable to a selection in an editor. Therefore the end position is exclusive. If you want to specify a range that contains a line including the line ending character(s) then use an end position denoting the start of the next line.
func (*Range) Descriptor
deprecated
func (*Range) ProtoMessage ¶
func (*Range) ProtoMessage()
func (*Range) ProtoReflect ¶
func (x *Range) ProtoReflect() protoreflect.Message
type RenameFile ¶
type RenameFile struct { // The kind of RenameFile message. // // always 'rename' Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The old (existing) location. OldUri *uri.URI `protobuf:"bytes,2,opt,name=old_uri,json=oldUri,proto3" json:"old_uri,omitempty"` // The new location. NewUri *uri.URI `protobuf:"bytes,3,opt,name=new_uri,json=newUri,proto3" json:"new_uri,omitempty"` // Optional. Rename options. Options *RenameFileOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
RenameFile rename file operation.
func (*RenameFile) Descriptor
deprecated
func (*RenameFile) Descriptor() ([]byte, []int)
Deprecated: Use RenameFile.ProtoReflect.Descriptor instead.
func (*RenameFile) GetKind ¶
func (x *RenameFile) GetKind() string
func (*RenameFile) GetNewUri ¶
func (x *RenameFile) GetNewUri() *uri.URI
func (*RenameFile) GetOldUri ¶
func (x *RenameFile) GetOldUri() *uri.URI
func (*RenameFile) GetOptions ¶
func (x *RenameFile) GetOptions() *RenameFileOptions
func (*RenameFile) ProtoMessage ¶
func (*RenameFile) ProtoMessage()
func (*RenameFile) ProtoReflect ¶
func (x *RenameFile) ProtoReflect() protoreflect.Message
func (*RenameFile) Reset ¶
func (x *RenameFile) Reset()
func (*RenameFile) String ¶
func (x *RenameFile) String() string
type RenameFileOptions ¶
type RenameFileOptions struct { // Optional. Overwrite target if existing. Overwrite wins over `ignoreIfExists`. Overwrite bool `protobuf:"varint,1,opt,name=overwrite,proto3" json:"overwrite,omitempty"` // Optional. Ignores if target exists. IgnoreIfExists bool `protobuf:"varint,2,opt,name=ignore_if_exists,json=ignoreIfExists,proto3" json:"ignore_if_exists,omitempty"` // contains filtered or unexported fields }
RenameFileOptions is the options to rename a file.
func (*RenameFileOptions) Descriptor
deprecated
func (*RenameFileOptions) Descriptor() ([]byte, []int)
Deprecated: Use RenameFileOptions.ProtoReflect.Descriptor instead.
func (*RenameFileOptions) GetIgnoreIfExists ¶
func (x *RenameFileOptions) GetIgnoreIfExists() bool
func (*RenameFileOptions) GetOverwrite ¶
func (x *RenameFileOptions) GetOverwrite() bool
func (*RenameFileOptions) ProtoMessage ¶
func (*RenameFileOptions) ProtoMessage()
func (*RenameFileOptions) ProtoReflect ¶
func (x *RenameFileOptions) ProtoReflect() protoreflect.Message
func (*RenameFileOptions) Reset ¶
func (x *RenameFileOptions) Reset()
func (*RenameFileOptions) String ¶
func (x *RenameFileOptions) String() string
type ResourceOperationKind ¶
type ResourceOperationKind int32
ResourceOperationKind is the kind of resource operations supported by the client.
const ( // Conventional default for enums. Do not use this. ResourceOperationKind_RESOURCE_OPERATION_KIND_UNSPECIFIED ResourceOperationKind = 0 // Supports creating new files and folders. ResourceOperationKind_CREATE ResourceOperationKind = 1 // Supports renaming existing files and folders. ResourceOperationKind_RENAME ResourceOperationKind = 2 // Supports deleting existing files and folders. ResourceOperationKind_DELETE ResourceOperationKind = 3 )
func (ResourceOperationKind) Descriptor ¶
func (ResourceOperationKind) Descriptor() protoreflect.EnumDescriptor
func (ResourceOperationKind) Enum ¶
func (x ResourceOperationKind) Enum() *ResourceOperationKind
func (ResourceOperationKind) EnumDescriptor
deprecated
func (ResourceOperationKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResourceOperationKind.Descriptor instead.
func (ResourceOperationKind) Number ¶
func (x ResourceOperationKind) Number() protoreflect.EnumNumber
func (ResourceOperationKind) String ¶
func (x ResourceOperationKind) String() string
func (ResourceOperationKind) Type ¶
func (ResourceOperationKind) Type() protoreflect.EnumType
type StaticRegistrationOptions ¶
type StaticRegistrationOptions struct { // Optional. The id used to register the request. The id can be used to deregister // the request again. See also Registration#id. Id *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
StaticRegistrationOptions can be used to register a feature in the initialize result with a given server control ID to be able to un-register the feature later on. Static registration options to be returned in the initialize request.
func (*StaticRegistrationOptions) Descriptor
deprecated
func (*StaticRegistrationOptions) Descriptor() ([]byte, []int)
Deprecated: Use StaticRegistrationOptions.ProtoReflect.Descriptor instead.
func (*StaticRegistrationOptions) GetId ¶
func (x *StaticRegistrationOptions) GetId() *wrappers.StringValue
func (*StaticRegistrationOptions) ProtoMessage ¶
func (*StaticRegistrationOptions) ProtoMessage()
func (*StaticRegistrationOptions) ProtoReflect ¶
func (x *StaticRegistrationOptions) ProtoReflect() protoreflect.Message
func (*StaticRegistrationOptions) Reset ¶
func (x *StaticRegistrationOptions) Reset()
func (*StaticRegistrationOptions) String ¶
func (x *StaticRegistrationOptions) String() string
type TextDocumentEdit ¶
type TextDocumentEdit struct { // The text document to change. TextDocument *VersionedTextDocumentIdentifier `protobuf:"bytes,1,opt,name=text_document,json=textDocument,proto3" json:"text_document,omitempty"` // The edits to be applied. Edits []*TextEdit `protobuf:"bytes,2,rep,name=edits,proto3" json:"edits,omitempty"` // contains filtered or unexported fields }
TextDocumentEdit describes textual changes on a single text document.
The text document is referred to as a VersionedTextDocumentIdentifier to allow clients to check the text document version before an edit is applied. A TextDocumentEdit describes all changes on a version Si and after they are applied move the document to version Si+1. So the creator of a TextDocumentEdit doesn’t need to sort the array of edits or do any kind of ordering. However the edits must be non overlapping.
func (*TextDocumentEdit) Descriptor
deprecated
func (*TextDocumentEdit) Descriptor() ([]byte, []int)
Deprecated: Use TextDocumentEdit.ProtoReflect.Descriptor instead.
func (*TextDocumentEdit) GetEdits ¶
func (x *TextDocumentEdit) GetEdits() []*TextEdit
func (*TextDocumentEdit) GetTextDocument ¶
func (x *TextDocumentEdit) GetTextDocument() *VersionedTextDocumentIdentifier
func (*TextDocumentEdit) ProtoMessage ¶
func (*TextDocumentEdit) ProtoMessage()
func (*TextDocumentEdit) ProtoReflect ¶
func (x *TextDocumentEdit) ProtoReflect() protoreflect.Message
func (*TextDocumentEdit) Reset ¶
func (x *TextDocumentEdit) Reset()
func (*TextDocumentEdit) String ¶
func (x *TextDocumentEdit) String() string
type TextDocumentIdentifier ¶
type TextDocumentIdentifier struct { // The text document's URI. Uri *uri.URI `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` // contains filtered or unexported fields }
TextDocumentIdentifier text documents are identified using a URI. On the protocol level, URIs are passed as strings. The corresponding JSON structure looks like this: (-- api-linter: core::0140::abbreviations=disabled --)
func (*TextDocumentIdentifier) Descriptor
deprecated
func (*TextDocumentIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use TextDocumentIdentifier.ProtoReflect.Descriptor instead.
func (*TextDocumentIdentifier) GetUri ¶
func (x *TextDocumentIdentifier) GetUri() *uri.URI
func (*TextDocumentIdentifier) ProtoMessage ¶
func (*TextDocumentIdentifier) ProtoMessage()
func (*TextDocumentIdentifier) ProtoReflect ¶
func (x *TextDocumentIdentifier) ProtoReflect() protoreflect.Message
func (*TextDocumentIdentifier) Reset ¶
func (x *TextDocumentIdentifier) Reset()
func (*TextDocumentIdentifier) String ¶
func (x *TextDocumentIdentifier) String() string
type TextDocumentItem ¶
type TextDocumentItem struct { // The text document's URI. Uri *uri.URI `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` // The text document's language identifier. LanguageId string `protobuf:"bytes,2,opt,name=language_id,json=languageId,proto3" json:"language_id,omitempty"` // The version number of this document (it will increase after each // change, including undo/redo). Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` // The content of the opened text document. Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
TextDocumentItem an item to transfer a text document from the client to the server.
func (*TextDocumentItem) Descriptor
deprecated
func (*TextDocumentItem) Descriptor() ([]byte, []int)
Deprecated: Use TextDocumentItem.ProtoReflect.Descriptor instead.
func (*TextDocumentItem) GetLanguageId ¶
func (x *TextDocumentItem) GetLanguageId() string
func (*TextDocumentItem) GetText ¶
func (x *TextDocumentItem) GetText() string
func (*TextDocumentItem) GetUri ¶
func (x *TextDocumentItem) GetUri() *uri.URI
func (*TextDocumentItem) GetVersion ¶
func (x *TextDocumentItem) GetVersion() int32
func (*TextDocumentItem) ProtoMessage ¶
func (*TextDocumentItem) ProtoMessage()
func (*TextDocumentItem) ProtoReflect ¶
func (x *TextDocumentItem) ProtoReflect() protoreflect.Message
func (*TextDocumentItem) Reset ¶
func (x *TextDocumentItem) Reset()
func (*TextDocumentItem) String ¶
func (x *TextDocumentItem) String() string
type TextDocumentPositionParams ¶
type TextDocumentPositionParams struct { // The text document. TextDocument *TextDocumentIdentifier `protobuf:"bytes,1,opt,name=text_document,json=textDocument,proto3" json:"text_document,omitempty"` // The position inside the text document. Position *Position `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"` // contains filtered or unexported fields }
TextDocumentPositionParams was TextDocumentPosition in 1.0 with inlined parameters. A parameter literal used in requests to pass a text document and a position inside that document.
func (*TextDocumentPositionParams) Descriptor
deprecated
func (*TextDocumentPositionParams) Descriptor() ([]byte, []int)
Deprecated: Use TextDocumentPositionParams.ProtoReflect.Descriptor instead.
func (*TextDocumentPositionParams) GetPosition ¶
func (x *TextDocumentPositionParams) GetPosition() *Position
func (*TextDocumentPositionParams) GetTextDocument ¶
func (x *TextDocumentPositionParams) GetTextDocument() *TextDocumentIdentifier
func (*TextDocumentPositionParams) ProtoMessage ¶
func (*TextDocumentPositionParams) ProtoMessage()
func (*TextDocumentPositionParams) ProtoReflect ¶
func (x *TextDocumentPositionParams) ProtoReflect() protoreflect.Message
func (*TextDocumentPositionParams) Reset ¶
func (x *TextDocumentPositionParams) Reset()
func (*TextDocumentPositionParams) String ¶
func (x *TextDocumentPositionParams) String() string
type TextDocumentRegistrationOptions ¶
type TextDocumentRegistrationOptions struct { // A document selector to identify the scope of the registration. If set to null // the document selector provided on the client side will be used. // // Types that are assignable to DocumentSelector: // *TextDocumentRegistrationOptions_Selector // *TextDocumentRegistrationOptions_Empty DocumentSelector isTextDocumentRegistrationOptions_DocumentSelector `protobuf_oneof:"document_selector"` // contains filtered or unexported fields }
TextDocumentRegistrationOptions options to dynamically register for requests for a set of text documents.
func (*TextDocumentRegistrationOptions) Descriptor
deprecated
func (*TextDocumentRegistrationOptions) Descriptor() ([]byte, []int)
Deprecated: Use TextDocumentRegistrationOptions.ProtoReflect.Descriptor instead.
func (*TextDocumentRegistrationOptions) GetDocumentSelector ¶
func (m *TextDocumentRegistrationOptions) GetDocumentSelector() isTextDocumentRegistrationOptions_DocumentSelector
func (*TextDocumentRegistrationOptions) GetEmpty ¶
func (x *TextDocumentRegistrationOptions) GetEmpty() _struct.NullValue
func (*TextDocumentRegistrationOptions) GetSelector ¶
func (x *TextDocumentRegistrationOptions) GetSelector() *TextDocumentRegistrationOptions_DocumentSelector
func (*TextDocumentRegistrationOptions) ProtoMessage ¶
func (*TextDocumentRegistrationOptions) ProtoMessage()
func (*TextDocumentRegistrationOptions) ProtoReflect ¶
func (x *TextDocumentRegistrationOptions) ProtoReflect() protoreflect.Message
func (*TextDocumentRegistrationOptions) Reset ¶
func (x *TextDocumentRegistrationOptions) Reset()
func (*TextDocumentRegistrationOptions) String ¶
func (x *TextDocumentRegistrationOptions) String() string
type TextDocumentRegistrationOptions_DocumentSelector ¶
type TextDocumentRegistrationOptions_DocumentSelector struct { DocumentSelector []*DocumentFilter `protobuf:"bytes,1,rep,name=document_selector,json=documentSelector,proto3" json:"document_selector,omitempty"` // contains filtered or unexported fields }
DocumentSelector is a document selector is the combination of one or more document filters.
func (*TextDocumentRegistrationOptions_DocumentSelector) Descriptor
deprecated
func (*TextDocumentRegistrationOptions_DocumentSelector) Descriptor() ([]byte, []int)
Deprecated: Use TextDocumentRegistrationOptions_DocumentSelector.ProtoReflect.Descriptor instead.
func (*TextDocumentRegistrationOptions_DocumentSelector) GetDocumentSelector ¶
func (x *TextDocumentRegistrationOptions_DocumentSelector) GetDocumentSelector() []*DocumentFilter
func (*TextDocumentRegistrationOptions_DocumentSelector) ProtoMessage ¶
func (*TextDocumentRegistrationOptions_DocumentSelector) ProtoMessage()
func (*TextDocumentRegistrationOptions_DocumentSelector) ProtoReflect ¶
func (x *TextDocumentRegistrationOptions_DocumentSelector) ProtoReflect() protoreflect.Message
func (*TextDocumentRegistrationOptions_DocumentSelector) Reset ¶
func (x *TextDocumentRegistrationOptions_DocumentSelector) Reset()
func (*TextDocumentRegistrationOptions_DocumentSelector) String ¶
func (x *TextDocumentRegistrationOptions_DocumentSelector) String() string
type TextDocumentRegistrationOptions_Selector ¶
type TextDocumentRegistrationOptions_Selector struct {
Selector *TextDocumentRegistrationOptions_DocumentSelector `protobuf:"bytes,1,opt,name=selector,proto3,oneof"`
}
type TextEdit ¶
type TextEdit struct { // The range of the text document to be manipulated. To insert // text into a document create a range where start === end. Range *Range `protobuf:"bytes,1,opt,name=range,proto3" json:"range,omitempty"` // The string to be inserted. For delete operations use an // empty string. NewText string `protobuf:"bytes,2,opt,name=new_text,json=newText,proto3" json:"new_text,omitempty"` // contains filtered or unexported fields }
TextEdit is a textual edit applicable to a text document.
func (*TextEdit) Descriptor
deprecated
func (*TextEdit) GetNewText ¶
func (*TextEdit) ProtoMessage ¶
func (*TextEdit) ProtoMessage()
func (*TextEdit) ProtoReflect ¶
func (x *TextEdit) ProtoReflect() protoreflect.Message
type TraceValue ¶
type TraceValue int32
TraceValue represents the level of verbosity with which the server systematically reports its execution trace using $/logTrace notifications. The initial trace value is set by the client at initialization and can be modified later using the $/setTrace notification.
const ( // Conventional default for enums. Do not use this. TraceValue_TRACE_VALUE_UNSPECIFIED TraceValue = 0 // trace is off. TraceValue_OFF TraceValue = 1 // message trace level. TraceValue_MESSAGE TraceValue = 2 // verbose trace level. TraceValue_VERBOSE TraceValue = 3 )
func (TraceValue) Descriptor ¶
func (TraceValue) Descriptor() protoreflect.EnumDescriptor
func (TraceValue) Enum ¶
func (x TraceValue) Enum() *TraceValue
func (TraceValue) EnumDescriptor
deprecated
func (TraceValue) EnumDescriptor() ([]byte, []int)
Deprecated: Use TraceValue.Descriptor instead.
func (TraceValue) Number ¶
func (x TraceValue) Number() protoreflect.EnumNumber
func (TraceValue) String ¶
func (x TraceValue) String() string
func (TraceValue) Type ¶
func (TraceValue) Type() protoreflect.EnumType
type VersionedTextDocumentIdentifier ¶
type VersionedTextDocumentIdentifier struct { // TextDocumentIdentifier text documents are identified using a URI. On the protocol level, URIs // are passed as strings. TextDocumentIdentifier *TextDocumentIdentifier `` /* 129-byte string literal not displayed */ // Optional. The version number of this document. If a versioned text document identifier // is sent from the server to the client and the file is not open in the editor // (the server has not received an open notification before) the server can send // `null` to indicate that the version is known and the content on disk is the // master (as speced with document content ownership). // // The version number of a document will increase after each change, including // undo/redo. The number doesn't need to be consecutive. Version bool `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
(-- api-linter: core::0140::abbreviations=disabled --)
func (*VersionedTextDocumentIdentifier) Descriptor
deprecated
func (*VersionedTextDocumentIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use VersionedTextDocumentIdentifier.ProtoReflect.Descriptor instead.
func (*VersionedTextDocumentIdentifier) GetTextDocumentIdentifier ¶
func (x *VersionedTextDocumentIdentifier) GetTextDocumentIdentifier() *TextDocumentIdentifier
func (*VersionedTextDocumentIdentifier) GetVersion ¶
func (x *VersionedTextDocumentIdentifier) GetVersion() bool
func (*VersionedTextDocumentIdentifier) ProtoMessage ¶
func (*VersionedTextDocumentIdentifier) ProtoMessage()
func (*VersionedTextDocumentIdentifier) ProtoReflect ¶
func (x *VersionedTextDocumentIdentifier) ProtoReflect() protoreflect.Message
func (*VersionedTextDocumentIdentifier) Reset ¶
func (x *VersionedTextDocumentIdentifier) Reset()
func (*VersionedTextDocumentIdentifier) String ¶
func (x *VersionedTextDocumentIdentifier) String() string
type WorkDoneProgressBegin ¶
type WorkDoneProgressBegin struct { // WorkDoneProgressBegin kind. // // always 'begin' Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // Mandatory title of the progress operation. Used to briefly inform about // the kind of operation being performed. // // Examples: "Indexing" or "Linking dependencies". Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // Optional. Controls if a cancel button should show to allow the user to cancel the // long running operation. Clients that don't support cancellation are allowed // to ignore the setting. Cancellable bool `protobuf:"varint,3,opt,name=cancellable,proto3" json:"cancellable,omitempty"` // Optional, more detailed associated progress message. Contains // complementary information to the `title`. // // Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". // If unset, the previous progress message (if any) is still valid. Message *wrappers.StringValue `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` // Optional progress percentage to display (value 100 is considered 100%). // If not provided infinite progress is assumed and clients are allowed // to ignore the `percentage` value in subsequent in report notifications. // // The value should be steadily rising. Clients are free to ignore values // that are not following this rule. Percentage *wrappers.Int32Value `protobuf:"bytes,5,opt,name=percentage,proto3" json:"percentage,omitempty"` // contains filtered or unexported fields }
WorkDoneProgressBegin to start progress reporting a $/progress notification with the payload must be sent.
@since 3.15.0
func (*WorkDoneProgressBegin) Descriptor
deprecated
func (*WorkDoneProgressBegin) Descriptor() ([]byte, []int)
Deprecated: Use WorkDoneProgressBegin.ProtoReflect.Descriptor instead.
func (*WorkDoneProgressBegin) GetCancellable ¶
func (x *WorkDoneProgressBegin) GetCancellable() bool
func (*WorkDoneProgressBegin) GetKind ¶
func (x *WorkDoneProgressBegin) GetKind() string
func (*WorkDoneProgressBegin) GetMessage ¶
func (x *WorkDoneProgressBegin) GetMessage() *wrappers.StringValue
func (*WorkDoneProgressBegin) GetPercentage ¶
func (x *WorkDoneProgressBegin) GetPercentage() *wrappers.Int32Value
func (*WorkDoneProgressBegin) GetTitle ¶
func (x *WorkDoneProgressBegin) GetTitle() string
func (*WorkDoneProgressBegin) ProtoMessage ¶
func (*WorkDoneProgressBegin) ProtoMessage()
func (*WorkDoneProgressBegin) ProtoReflect ¶
func (x *WorkDoneProgressBegin) ProtoReflect() protoreflect.Message
func (*WorkDoneProgressBegin) Reset ¶
func (x *WorkDoneProgressBegin) Reset()
func (*WorkDoneProgressBegin) String ¶
func (x *WorkDoneProgressBegin) String() string
type WorkDoneProgressEnd ¶
type WorkDoneProgressEnd struct { // WorkDoneProgressEnd kind. // // always 'end' Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // Optional, a final message indicating to for example indicate the outcome // of the operation. Message *wrappers.StringValue `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
WorkDoneProgressEnd signaling the end of a progress reporting is done using the payload.
func (*WorkDoneProgressEnd) Descriptor
deprecated
func (*WorkDoneProgressEnd) Descriptor() ([]byte, []int)
Deprecated: Use WorkDoneProgressEnd.ProtoReflect.Descriptor instead.
func (*WorkDoneProgressEnd) GetKind ¶
func (x *WorkDoneProgressEnd) GetKind() string
func (*WorkDoneProgressEnd) GetMessage ¶
func (x *WorkDoneProgressEnd) GetMessage() *wrappers.StringValue
func (*WorkDoneProgressEnd) ProtoMessage ¶
func (*WorkDoneProgressEnd) ProtoMessage()
func (*WorkDoneProgressEnd) ProtoReflect ¶
func (x *WorkDoneProgressEnd) ProtoReflect() protoreflect.Message
func (*WorkDoneProgressEnd) Reset ¶
func (x *WorkDoneProgressEnd) Reset()
func (*WorkDoneProgressEnd) String ¶
func (x *WorkDoneProgressEnd) String() string
type WorkDoneProgressOptions ¶
type WorkDoneProgressOptions struct { // Optional. WorkDoneProgress bool `protobuf:"varint,1,opt,name=work_done_progress,json=workDoneProgress,proto3" json:"work_done_progress,omitempty"` // contains filtered or unexported fields }
WorkDoneProgressOptions options to signal work done progress support in server capabilities.
func (*WorkDoneProgressOptions) Descriptor
deprecated
func (*WorkDoneProgressOptions) Descriptor() ([]byte, []int)
Deprecated: Use WorkDoneProgressOptions.ProtoReflect.Descriptor instead.
func (*WorkDoneProgressOptions) GetWorkDoneProgress ¶
func (x *WorkDoneProgressOptions) GetWorkDoneProgress() bool
func (*WorkDoneProgressOptions) ProtoMessage ¶
func (*WorkDoneProgressOptions) ProtoMessage()
func (*WorkDoneProgressOptions) ProtoReflect ¶
func (x *WorkDoneProgressOptions) ProtoReflect() protoreflect.Message
func (*WorkDoneProgressOptions) Reset ¶
func (x *WorkDoneProgressOptions) Reset()
func (*WorkDoneProgressOptions) String ¶
func (x *WorkDoneProgressOptions) String() string
type WorkDoneProgressReport ¶
type WorkDoneProgressReport struct { // WorkDoneProgressReport kind. // // always 'report' Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // Optional. Controls enablement state of a cancel button. This property is only valid if a cancel // button got requested in the `WorkDoneProgressStart` payload. // // Clients that don't support cancellation or don't support control the button's // enablement state are allowed to ignore the setting. Cancellable bool `protobuf:"varint,2,opt,name=cancellable,proto3" json:"cancellable,omitempty"` // Optional, more detailed associated progress message. Contains // complementary information to the `title`. // // Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". // If unset, the previous progress message (if any) is still valid. Message *wrappers.StringValue `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // Optional progress percentage to display (value 100 is considered 100%). // If not provided infinite progress is assumed and clients are allowed // to ignore the `percentage` value in subsequent in report notifications. // // The value should be steadily rising. Clients are free to ignore values // that are not following this rule. Percentage *wrappers.Int32Value `protobuf:"bytes,4,opt,name=percentage,proto3" json:"percentage,omitempty"` // contains filtered or unexported fields }
WorkDoneProgressReport reporting progress is done using the payload.
func (*WorkDoneProgressReport) Descriptor
deprecated
func (*WorkDoneProgressReport) Descriptor() ([]byte, []int)
Deprecated: Use WorkDoneProgressReport.ProtoReflect.Descriptor instead.
func (*WorkDoneProgressReport) GetCancellable ¶
func (x *WorkDoneProgressReport) GetCancellable() bool
func (*WorkDoneProgressReport) GetKind ¶
func (x *WorkDoneProgressReport) GetKind() string
func (*WorkDoneProgressReport) GetMessage ¶
func (x *WorkDoneProgressReport) GetMessage() *wrappers.StringValue
func (*WorkDoneProgressReport) GetPercentage ¶
func (x *WorkDoneProgressReport) GetPercentage() *wrappers.Int32Value
func (*WorkDoneProgressReport) ProtoMessage ¶
func (*WorkDoneProgressReport) ProtoMessage()
func (*WorkDoneProgressReport) ProtoReflect ¶
func (x *WorkDoneProgressReport) ProtoReflect() protoreflect.Message
func (*WorkDoneProgressReport) Reset ¶
func (x *WorkDoneProgressReport) Reset()
func (*WorkDoneProgressReport) String ¶
func (x *WorkDoneProgressReport) String() string
type WorkspaceEdit ¶
type WorkspaceEdit struct { // Holds changes to existing resources. // // The map key is uri.URI // (-- api-linter: core::0192::only-leading-comments=disabled --) Changes map[string]*WorkspaceEdit_TextEdits `` /* 155-byte string literal not displayed */ // document_changes Depending on the client capability // `workspace.workspaceEdit.resourceOperations` document changes are either an array of // `TextDocumentEdit`s to express changes to n different text documents where each text document // edit addresses a specific version of a text document. Or it can contain above // `TextDocumentEdit`s mixed with create, rename and delete file / folder operations. // // Whether a client supports versioned document edits is expressed via // `workspace.workspaceEdit.documentChanges` client capability. // // If a client neither supports `documentChanges` nor `workspace.workspaceEdit.resourceOperations` // then only plain `TextEdit`s using the `changes` property are supported. // // Types that are assignable to DocumentChanges: // *WorkspaceEdit_TextDocumentEdits_ // *WorkspaceEdit_CreateFiles_ // *WorkspaceEdit_RenameFiles_ // *WorkspaceEdit_DeleteFiles_ DocumentChanges isWorkspaceEdit_DocumentChanges `protobuf_oneof:"document_changes"` // contains filtered or unexported fields }
WorkspaceEdit a workspace edit represents changes to many resources managed in the workspace. The edit should either provide changes or documentChanges. If the client can handle versioned document edits and if documentChanges are present, the latter are preferred over changes.
func (*WorkspaceEdit) Descriptor
deprecated
func (*WorkspaceEdit) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceEdit.ProtoReflect.Descriptor instead.
func (*WorkspaceEdit) GetChanges ¶
func (x *WorkspaceEdit) GetChanges() map[string]*WorkspaceEdit_TextEdits
func (*WorkspaceEdit) GetCreateFiles ¶
func (x *WorkspaceEdit) GetCreateFiles() *WorkspaceEdit_CreateFiles
func (*WorkspaceEdit) GetDeleteFiles ¶
func (x *WorkspaceEdit) GetDeleteFiles() *WorkspaceEdit_DeleteFiles
func (*WorkspaceEdit) GetDocumentChanges ¶
func (m *WorkspaceEdit) GetDocumentChanges() isWorkspaceEdit_DocumentChanges
func (*WorkspaceEdit) GetRenameFiles ¶
func (x *WorkspaceEdit) GetRenameFiles() *WorkspaceEdit_RenameFiles
func (*WorkspaceEdit) GetTextDocumentEdits ¶
func (x *WorkspaceEdit) GetTextDocumentEdits() *WorkspaceEdit_TextDocumentEdits
func (*WorkspaceEdit) ProtoMessage ¶
func (*WorkspaceEdit) ProtoMessage()
func (*WorkspaceEdit) ProtoReflect ¶
func (x *WorkspaceEdit) ProtoReflect() protoreflect.Message
func (*WorkspaceEdit) Reset ¶
func (x *WorkspaceEdit) Reset()
func (*WorkspaceEdit) String ¶
func (x *WorkspaceEdit) String() string
type WorkspaceEditClientCapabilities ¶
type WorkspaceEditClientCapabilities struct { // Optional. The client supports versioned document changes in `WorkspaceEdit`s. DocumentChanges bool `protobuf:"varint,1,opt,name=document_changes,json=documentChanges,proto3" json:"document_changes,omitempty"` // The resource operations the client supports. Clients should at least // support 'create', 'rename' and 'delete' files and folders. // // @since 3.13.0 ResourceOperations []ResourceOperationKind `` /* 159-byte string literal not displayed */ // Optional. The failure handling strategy of a client if applying the workspace edit // fails. // // @since 3.13.0 FailureHandling FailureHandlingKind `` /* 141-byte string literal not displayed */ // contains filtered or unexported fields }
WorkspaceEditClientCapabilities ResourceOperationKind and FailureHandlingKind and the client capability workspace.workspaceEdit.resourceOperations as well as workspace.workspaceEdit.failureHandling.
New in version 3.13.
The capabilities of a workspace edit has evolved over the time. Clients can describe their support using the following client capability: - property path (optional): workspace.workspaceEdit - property type: WorkspaceEditClientCapabilities defined as follows.
func (*WorkspaceEditClientCapabilities) Descriptor
deprecated
func (*WorkspaceEditClientCapabilities) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceEditClientCapabilities.ProtoReflect.Descriptor instead.
func (*WorkspaceEditClientCapabilities) GetDocumentChanges ¶
func (x *WorkspaceEditClientCapabilities) GetDocumentChanges() bool
func (*WorkspaceEditClientCapabilities) GetFailureHandling ¶
func (x *WorkspaceEditClientCapabilities) GetFailureHandling() FailureHandlingKind
func (*WorkspaceEditClientCapabilities) GetResourceOperations ¶
func (x *WorkspaceEditClientCapabilities) GetResourceOperations() []ResourceOperationKind
func (*WorkspaceEditClientCapabilities) ProtoMessage ¶
func (*WorkspaceEditClientCapabilities) ProtoMessage()
func (*WorkspaceEditClientCapabilities) ProtoReflect ¶
func (x *WorkspaceEditClientCapabilities) ProtoReflect() protoreflect.Message
func (*WorkspaceEditClientCapabilities) Reset ¶
func (x *WorkspaceEditClientCapabilities) Reset()
func (*WorkspaceEditClientCapabilities) String ¶
func (x *WorkspaceEditClientCapabilities) String() string
type WorkspaceEdit_CreateFiles ¶
type WorkspaceEdit_CreateFiles struct { CreateFiles []*CreateFile `protobuf:"bytes,1,rep,name=create_files,json=createFiles,proto3" json:"create_files,omitempty"` // contains filtered or unexported fields }
func (*WorkspaceEdit_CreateFiles) Descriptor
deprecated
func (*WorkspaceEdit_CreateFiles) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceEdit_CreateFiles.ProtoReflect.Descriptor instead.
func (*WorkspaceEdit_CreateFiles) GetCreateFiles ¶
func (x *WorkspaceEdit_CreateFiles) GetCreateFiles() []*CreateFile
func (*WorkspaceEdit_CreateFiles) ProtoMessage ¶
func (*WorkspaceEdit_CreateFiles) ProtoMessage()
func (*WorkspaceEdit_CreateFiles) ProtoReflect ¶
func (x *WorkspaceEdit_CreateFiles) ProtoReflect() protoreflect.Message
func (*WorkspaceEdit_CreateFiles) Reset ¶
func (x *WorkspaceEdit_CreateFiles) Reset()
func (*WorkspaceEdit_CreateFiles) String ¶
func (x *WorkspaceEdit_CreateFiles) String() string
type WorkspaceEdit_CreateFiles_ ¶
type WorkspaceEdit_CreateFiles_ struct {
CreateFiles *WorkspaceEdit_CreateFiles `protobuf:"bytes,3,opt,name=create_files,json=createFiles,proto3,oneof"`
}
type WorkspaceEdit_DeleteFiles ¶
type WorkspaceEdit_DeleteFiles struct { DeleteFiles []*DeleteFile `protobuf:"bytes,1,rep,name=delete_files,json=deleteFiles,proto3" json:"delete_files,omitempty"` // contains filtered or unexported fields }
func (*WorkspaceEdit_DeleteFiles) Descriptor
deprecated
func (*WorkspaceEdit_DeleteFiles) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceEdit_DeleteFiles.ProtoReflect.Descriptor instead.
func (*WorkspaceEdit_DeleteFiles) GetDeleteFiles ¶
func (x *WorkspaceEdit_DeleteFiles) GetDeleteFiles() []*DeleteFile
func (*WorkspaceEdit_DeleteFiles) ProtoMessage ¶
func (*WorkspaceEdit_DeleteFiles) ProtoMessage()
func (*WorkspaceEdit_DeleteFiles) ProtoReflect ¶
func (x *WorkspaceEdit_DeleteFiles) ProtoReflect() protoreflect.Message
func (*WorkspaceEdit_DeleteFiles) Reset ¶
func (x *WorkspaceEdit_DeleteFiles) Reset()
func (*WorkspaceEdit_DeleteFiles) String ¶
func (x *WorkspaceEdit_DeleteFiles) String() string
type WorkspaceEdit_DeleteFiles_ ¶
type WorkspaceEdit_DeleteFiles_ struct {
DeleteFiles *WorkspaceEdit_DeleteFiles `protobuf:"bytes,5,opt,name=delete_files,json=deleteFiles,proto3,oneof"`
}
type WorkspaceEdit_RenameFiles ¶
type WorkspaceEdit_RenameFiles struct { RenameFiles []*RenameFile `protobuf:"bytes,1,rep,name=rename_files,json=renameFiles,proto3" json:"rename_files,omitempty"` // contains filtered or unexported fields }
func (*WorkspaceEdit_RenameFiles) Descriptor
deprecated
func (*WorkspaceEdit_RenameFiles) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceEdit_RenameFiles.ProtoReflect.Descriptor instead.
func (*WorkspaceEdit_RenameFiles) GetRenameFiles ¶
func (x *WorkspaceEdit_RenameFiles) GetRenameFiles() []*RenameFile
func (*WorkspaceEdit_RenameFiles) ProtoMessage ¶
func (*WorkspaceEdit_RenameFiles) ProtoMessage()
func (*WorkspaceEdit_RenameFiles) ProtoReflect ¶
func (x *WorkspaceEdit_RenameFiles) ProtoReflect() protoreflect.Message
func (*WorkspaceEdit_RenameFiles) Reset ¶
func (x *WorkspaceEdit_RenameFiles) Reset()
func (*WorkspaceEdit_RenameFiles) String ¶
func (x *WorkspaceEdit_RenameFiles) String() string
type WorkspaceEdit_RenameFiles_ ¶
type WorkspaceEdit_RenameFiles_ struct {
RenameFiles *WorkspaceEdit_RenameFiles `protobuf:"bytes,4,opt,name=rename_files,json=renameFiles,proto3,oneof"`
}
type WorkspaceEdit_TextDocumentEdits ¶
type WorkspaceEdit_TextDocumentEdits struct { TextDocumentEdits []*TextDocumentEdit `protobuf:"bytes,1,rep,name=text_document_edits,json=textDocumentEdits,proto3" json:"text_document_edits,omitempty"` // contains filtered or unexported fields }
func (*WorkspaceEdit_TextDocumentEdits) Descriptor
deprecated
func (*WorkspaceEdit_TextDocumentEdits) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceEdit_TextDocumentEdits.ProtoReflect.Descriptor instead.
func (*WorkspaceEdit_TextDocumentEdits) GetTextDocumentEdits ¶
func (x *WorkspaceEdit_TextDocumentEdits) GetTextDocumentEdits() []*TextDocumentEdit
func (*WorkspaceEdit_TextDocumentEdits) ProtoMessage ¶
func (*WorkspaceEdit_TextDocumentEdits) ProtoMessage()
func (*WorkspaceEdit_TextDocumentEdits) ProtoReflect ¶
func (x *WorkspaceEdit_TextDocumentEdits) ProtoReflect() protoreflect.Message
func (*WorkspaceEdit_TextDocumentEdits) Reset ¶
func (x *WorkspaceEdit_TextDocumentEdits) Reset()
func (*WorkspaceEdit_TextDocumentEdits) String ¶
func (x *WorkspaceEdit_TextDocumentEdits) String() string
type WorkspaceEdit_TextDocumentEdits_ ¶
type WorkspaceEdit_TextDocumentEdits_ struct {
TextDocumentEdits *WorkspaceEdit_TextDocumentEdits `protobuf:"bytes,2,opt,name=text_document_edits,json=textDocumentEdits,proto3,oneof"`
}
type WorkspaceEdit_TextEdits ¶
type WorkspaceEdit_TextEdits struct { TextEdits []*TextEdit `protobuf:"bytes,1,rep,name=text_edits,json=textEdits,proto3" json:"text_edits,omitempty"` // contains filtered or unexported fields }
func (*WorkspaceEdit_TextEdits) Descriptor
deprecated
func (*WorkspaceEdit_TextEdits) Descriptor() ([]byte, []int)
Deprecated: Use WorkspaceEdit_TextEdits.ProtoReflect.Descriptor instead.
func (*WorkspaceEdit_TextEdits) GetTextEdits ¶
func (x *WorkspaceEdit_TextEdits) GetTextEdits() []*TextEdit
func (*WorkspaceEdit_TextEdits) ProtoMessage ¶
func (*WorkspaceEdit_TextEdits) ProtoMessage()
func (*WorkspaceEdit_TextEdits) ProtoReflect ¶
func (x *WorkspaceEdit_TextEdits) ProtoReflect() protoreflect.Message
func (*WorkspaceEdit_TextEdits) Reset ¶
func (x *WorkspaceEdit_TextEdits) Reset()
func (*WorkspaceEdit_TextEdits) String ¶
func (x *WorkspaceEdit_TextEdits) String() string