2019-05-13 10:27:26 -06:00
|
|
|
|
// Package protocol contains data types and code for LSP jsonrpcs
|
2019-03-11 10:17:05 -06:00
|
|
|
|
// generated automatically from vscode-languageserver-node
|
2019-07-11 12:53:13 -06:00
|
|
|
|
// commit: 8801c20b667945f455d7e023c71d2f741caeda25
|
2019-07-15 10:10:48 -06:00
|
|
|
|
// last fetched Sat Jul 13 2019 18:33:10 GMT-0700 (Pacific Daylight Time)
|
2019-03-11 10:17:05 -06:00
|
|
|
|
package protocol
|
|
|
|
|
|
2019-05-13 10:27:26 -06:00
|
|
|
|
// Code generated (see typescript/README.md) DO NOT EDIT.
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// WorkspaceFolder is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type WorkspaceFolder struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*URI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The associated URI for this workspace folder.
|
|
|
|
|
*/
|
|
|
|
|
URI string `json:"uri"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Name defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The name of the workspace folder. Used to refer to this
|
|
|
|
|
* workspace folder in thge user interface.
|
|
|
|
|
*/
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidChangeWorkspaceFoldersParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters of a `workspace/didChangeWorkspaceFolders` notification.
|
|
|
|
|
*/
|
|
|
|
|
type DidChangeWorkspaceFoldersParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Event defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The actual workspace folder change event.
|
|
|
|
|
*/
|
|
|
|
|
Event WorkspaceFoldersChangeEvent `json:"event"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WorkspaceFoldersChangeEvent defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The workspace folder change event.
|
|
|
|
|
*/
|
|
|
|
|
type WorkspaceFoldersChangeEvent struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Added defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The array of added workspace folders
|
|
|
|
|
*/
|
|
|
|
|
Added []WorkspaceFolder `json:"added"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Removed defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The array of the removed workspace folders
|
|
|
|
|
*/
|
|
|
|
|
Removed []WorkspaceFolder `json:"removed"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ConfigurationItem is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type ConfigurationItem struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ScopeURI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The scope to get the configuration section for.
|
|
|
|
|
*/
|
|
|
|
|
ScopeURI string `json:"scopeUri,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Section defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The configuration section asked for.
|
|
|
|
|
*/
|
|
|
|
|
Section string `json:"section,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ConfigurationParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters of a configuration request.
|
|
|
|
|
*/
|
|
|
|
|
type ConfigurationParams struct {
|
|
|
|
|
|
|
|
|
|
// Items is
|
|
|
|
|
Items []ConfigurationItem `json:"items"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ColorProviderOptions is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type ColorProviderOptions struct {
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentColorParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Parameters for a [DocumentColorRequest](#DocumentColorRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentColorParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ColorPresentationParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Parameters for a [ColorPresentationRequest](#ColorPresentationRequest).
|
|
|
|
|
*/
|
|
|
|
|
type ColorPresentationParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Color defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The color to request presentations for.
|
|
|
|
|
*/
|
|
|
|
|
Color Color `json:"color"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range where the color would be inserted. Serves as a context.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// FoldingRangeProviderOptions is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type FoldingRangeProviderOptions struct {
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FoldingRange defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents a folding range.
|
|
|
|
|
*/
|
|
|
|
|
type FoldingRange struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*StartLine defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The zero-based line number from where the folded range starts.
|
|
|
|
|
*/
|
|
|
|
|
StartLine float64 `json:"startLine"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*StartCharacter defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.
|
|
|
|
|
*/
|
|
|
|
|
StartCharacter float64 `json:"startCharacter,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*EndLine defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The zero-based line number where the folded range ends.
|
|
|
|
|
*/
|
|
|
|
|
EndLine float64 `json:"endLine"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*EndCharacter defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.
|
|
|
|
|
*/
|
|
|
|
|
EndCharacter float64 `json:"endCharacter,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Describes the kind of the folding range such as `comment' or 'region'. The kind
|
|
|
|
|
* is used to categorize folding ranges and used by commands like 'Fold all comments'. See
|
|
|
|
|
* [FoldingRangeKind](#FoldingRangeKind) for an enumeration of standardized kinds.
|
|
|
|
|
*/
|
|
|
|
|
Kind string `json:"kind,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FoldingRangeParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
|
|
|
|
|
*/
|
|
|
|
|
type FoldingRangeParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-11 12:53:13 -06:00
|
|
|
|
// SelectionRangeProviderOptions is
|
|
|
|
|
type SelectionRangeProviderOptions struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*SelectionRangeParams defined:
|
|
|
|
|
* A parameter literal used in selection range requests.
|
|
|
|
|
*/
|
|
|
|
|
type SelectionRangeParams struct {
|
|
|
|
|
|
|
|
|
|
/*TextDocument defined:
|
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
|
|
|
|
/*Positions defined:
|
|
|
|
|
* The positions inside the text document.
|
|
|
|
|
*/
|
|
|
|
|
Positions []Position `json:"positions"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Registration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* General parameters to to register for an notification or to register a provider.
|
|
|
|
|
*/
|
|
|
|
|
type Registration struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ID defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The id used to register the request. The id can be used to deregister
|
|
|
|
|
* the request again.
|
|
|
|
|
*/
|
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Method defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The method to register for.
|
|
|
|
|
*/
|
|
|
|
|
Method string `json:"method"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RegisterOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Options necessary for the registration.
|
|
|
|
|
*/
|
|
|
|
|
RegisterOptions interface{} `json:"registerOptions,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// RegistrationParams is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type RegistrationParams struct {
|
|
|
|
|
|
|
|
|
|
// Registrations is
|
|
|
|
|
Registrations []Registration `json:"registrations"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Unregistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* General parameters to unregister a request or notification.
|
|
|
|
|
*/
|
|
|
|
|
type Unregistration struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ID defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The id used to unregister the request or notification. Usually an id
|
|
|
|
|
* provided during the register request.
|
|
|
|
|
*/
|
|
|
|
|
ID string `json:"id"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Method defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The method to unregister for.
|
|
|
|
|
*/
|
|
|
|
|
Method string `json:"method"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// UnregistrationParams is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type UnregistrationParams struct {
|
|
|
|
|
|
|
|
|
|
// Unregisterations is
|
|
|
|
|
Unregisterations []Unregistration `json:"unregisterations"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentPositionParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A parameter literal used in requests to pass a text document and a position inside that
|
|
|
|
|
* document.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentPositionParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Position defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The position inside the text document.
|
|
|
|
|
*/
|
|
|
|
|
Position Position `json:"position"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WorkspaceClientCapabilities defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Workspace specific client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
type WorkspaceClientCapabilities struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ApplyEdit defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client supports applying batch edits
|
|
|
|
|
* to the workspace by supporting the request
|
|
|
|
|
* 'workspace/applyEdit'
|
|
|
|
|
*/
|
|
|
|
|
ApplyEdit bool `json:"applyEdit,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WorkspaceEdit defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to `WorkspaceEdit`s
|
|
|
|
|
*/
|
|
|
|
|
WorkspaceEdit *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentChanges defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client supports versioned document changes in `WorkspaceEdit`s
|
|
|
|
|
*/
|
|
|
|
|
DocumentChanges bool `json:"documentChanges,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ResourceOperations defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The resource operations the client supports. Clients should at least
|
|
|
|
|
* support 'create', 'rename' and 'delete' files and folders.
|
|
|
|
|
*/
|
|
|
|
|
ResourceOperations []ResourceOperationKind `json:"resourceOperations,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FailureHandling defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The failure handling strategy of a client if applying the workspace edit
|
|
|
|
|
* failes.
|
|
|
|
|
*/
|
2019-04-08 07:16:48 -06:00
|
|
|
|
FailureHandling FailureHandlingKind `json:"failureHandling,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
} `json:"workspaceEdit,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidChangeConfiguration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `workspace/didChangeConfiguration` notification.
|
|
|
|
|
*/
|
|
|
|
|
DidChangeConfiguration *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Did change configuration notification supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"didChangeConfiguration,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidChangeWatchedFiles defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `workspace/didChangeWatchedFiles` notification.
|
|
|
|
|
*/
|
|
|
|
|
DidChangeWatchedFiles *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Did change watched files notification supports dynamic registration. Please note
|
|
|
|
|
* that the current protocol doesn't support static configuration for file changes
|
|
|
|
|
* from the server side.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"didChangeWatchedFiles,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Symbol defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `workspace/symbol` request.
|
|
|
|
|
*/
|
|
|
|
|
Symbol *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Symbol request supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SymbolKind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Specific capabilities for the `SymbolKind` in the `workspace/symbol` request.
|
|
|
|
|
*/
|
|
|
|
|
SymbolKind *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ValueSet defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The symbol kind values the client supports. When this
|
|
|
|
|
* property exists the client also guarantees that it will
|
|
|
|
|
* handle values outside its set gracefully and falls back
|
|
|
|
|
* to a default value when unknown.
|
|
|
|
|
*
|
|
|
|
|
* If this property is not present the client only supports
|
|
|
|
|
* the symbol kinds from `File` to `Array` as defined in
|
|
|
|
|
* the initial version of the protocol.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []SymbolKind `json:"valueSet,omitempty"`
|
|
|
|
|
} `json:"symbolKind,omitempty"`
|
|
|
|
|
} `json:"symbol,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ExecuteCommand defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `workspace/executeCommand` request.
|
|
|
|
|
*/
|
|
|
|
|
ExecuteCommand *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Execute command supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"executeCommand,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentClientCapabilities defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Text document specific client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentClientCapabilities struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Synchronization defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Defines which synchronization capabilities the client supports.
|
|
|
|
|
*/
|
|
|
|
|
Synchronization *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether text document synchronization supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WillSave defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client supports sending will save notifications.
|
|
|
|
|
*/
|
|
|
|
|
WillSave bool `json:"willSave,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WillSaveWaitUntil defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client supports sending a will save request and
|
|
|
|
|
* waits for a response providing text edits which will
|
|
|
|
|
* be applied to the document before it is saved.
|
|
|
|
|
*/
|
|
|
|
|
WillSaveWaitUntil bool `json:"willSaveWaitUntil,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidSave defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client supports did save notifications.
|
|
|
|
|
*/
|
|
|
|
|
DidSave bool `json:"didSave,omitempty"`
|
|
|
|
|
} `json:"synchronization,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Completion defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/completion`
|
|
|
|
|
*/
|
|
|
|
|
Completion *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether completion supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CompletionItem defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client supports the following `CompletionItem` specific
|
|
|
|
|
* capabilities.
|
|
|
|
|
*/
|
|
|
|
|
CompletionItem *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SnippetSupport defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Client supports snippets as insert text.
|
|
|
|
|
*
|
|
|
|
|
* A snippet can define tab stops and placeholders with `$1`, `$2`
|
|
|
|
|
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
|
|
|
|
|
* the end of the snippet. Placeholders with equal identifiers are linked,
|
|
|
|
|
* that is typing in one will update others too.
|
|
|
|
|
*/
|
|
|
|
|
SnippetSupport bool `json:"snippetSupport,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CommitCharactersSupport defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Client supports commit characters on a completion item.
|
|
|
|
|
*/
|
|
|
|
|
CommitCharactersSupport bool `json:"commitCharactersSupport,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentationFormat defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Client supports the follow content formats for the documentation
|
|
|
|
|
* property. The order describes the preferred format of the client.
|
|
|
|
|
*/
|
|
|
|
|
DocumentationFormat []MarkupKind `json:"documentationFormat,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DeprecatedSupport defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Client supports the deprecated property on a completion item.
|
|
|
|
|
*/
|
|
|
|
|
DeprecatedSupport bool `json:"deprecatedSupport,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*PreselectSupport defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Client supports the preselect property on a completion item.
|
|
|
|
|
*/
|
|
|
|
|
PreselectSupport bool `json:"preselectSupport,omitempty"`
|
|
|
|
|
} `json:"completionItem,omitempty"`
|
|
|
|
|
|
|
|
|
|
// CompletionItemKind is
|
|
|
|
|
CompletionItemKind *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ValueSet defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The completion item kind values the client supports. When this
|
|
|
|
|
* property exists the client also guarantees that it will
|
|
|
|
|
* handle values outside its set gracefully and falls back
|
|
|
|
|
* to a default value when unknown.
|
|
|
|
|
*
|
|
|
|
|
* If this property is not present the client only supports
|
|
|
|
|
* the completion items kinds from `Text` to `Reference` as defined in
|
|
|
|
|
* the initial version of the protocol.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []CompletionItemKind `json:"valueSet,omitempty"`
|
|
|
|
|
} `json:"completionItemKind,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ContextSupport defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client supports to send additional context information for a
|
|
|
|
|
* `textDocument/completion` requestion.
|
|
|
|
|
*/
|
|
|
|
|
ContextSupport bool `json:"contextSupport,omitempty"`
|
|
|
|
|
} `json:"completion,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Hover defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/hover`
|
|
|
|
|
*/
|
|
|
|
|
Hover *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether hover supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ContentFormat defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Client supports the follow content formats for the content
|
|
|
|
|
* property. The order describes the preferred format of the client.
|
|
|
|
|
*/
|
|
|
|
|
ContentFormat []MarkupKind `json:"contentFormat,omitempty"`
|
|
|
|
|
} `json:"hover,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SignatureHelp defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/signatureHelp`
|
|
|
|
|
*/
|
|
|
|
|
SignatureHelp *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether signature help supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SignatureInformation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client supports the following `SignatureInformation`
|
|
|
|
|
* specific properties.
|
|
|
|
|
*/
|
|
|
|
|
SignatureInformation *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentationFormat defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Client supports the follow content formats for the documentation
|
|
|
|
|
* property. The order describes the preferred format of the client.
|
|
|
|
|
*/
|
|
|
|
|
DocumentationFormat []MarkupKind `json:"documentationFormat,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ParameterInformation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Client capabilities specific to parameter information.
|
|
|
|
|
*/
|
|
|
|
|
ParameterInformation *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*LabelOffsetSupport defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client supports processing label offsets instead of a
|
|
|
|
|
* simple label string.
|
|
|
|
|
*/
|
|
|
|
|
LabelOffsetSupport bool `json:"labelOffsetSupport,omitempty"`
|
|
|
|
|
} `json:"parameterInformation,omitempty"`
|
|
|
|
|
} `json:"signatureInformation,omitempty"`
|
|
|
|
|
} `json:"signatureHelp,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*References defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/references`
|
|
|
|
|
*/
|
|
|
|
|
References *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether references supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"references,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentHighlight defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/documentHighlight`
|
|
|
|
|
*/
|
|
|
|
|
DocumentHighlight *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether document highlight supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"documentHighlight,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentSymbol defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/documentSymbol`
|
|
|
|
|
*/
|
|
|
|
|
DocumentSymbol *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether document symbol supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SymbolKind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Specific capabilities for the `SymbolKind`.
|
|
|
|
|
*/
|
|
|
|
|
SymbolKind *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ValueSet defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The symbol kind values the client supports. When this
|
|
|
|
|
* property exists the client also guarantees that it will
|
|
|
|
|
* handle values outside its set gracefully and falls back
|
|
|
|
|
* to a default value when unknown.
|
|
|
|
|
*
|
|
|
|
|
* If this property is not present the client only supports
|
|
|
|
|
* the symbol kinds from `File` to `Array` as defined in
|
|
|
|
|
* the initial version of the protocol.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []SymbolKind `json:"valueSet,omitempty"`
|
|
|
|
|
} `json:"symbolKind,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*HierarchicalDocumentSymbolSupport defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client support hierarchical document symbols.
|
|
|
|
|
*/
|
|
|
|
|
HierarchicalDocumentSymbolSupport bool `json:"hierarchicalDocumentSymbolSupport,omitempty"`
|
|
|
|
|
} `json:"documentSymbol,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Formatting defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/formatting`
|
|
|
|
|
*/
|
|
|
|
|
Formatting *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether formatting supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"formatting,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RangeFormatting defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/rangeFormatting`
|
|
|
|
|
*/
|
|
|
|
|
RangeFormatting *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether range formatting supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"rangeFormatting,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*OnTypeFormatting defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/onTypeFormatting`
|
|
|
|
|
*/
|
|
|
|
|
OnTypeFormatting *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether on type formatting supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"onTypeFormatting,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Definition defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/definition`
|
|
|
|
|
*/
|
|
|
|
|
Definition *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether definition supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*LinkSupport defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client supports additional metadata in the form of definition links.
|
|
|
|
|
*/
|
|
|
|
|
LinkSupport bool `json:"linkSupport,omitempty"`
|
|
|
|
|
} `json:"definition,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeAction defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/codeAction`
|
|
|
|
|
*/
|
|
|
|
|
CodeAction *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Whether code action supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeActionLiteralSupport defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client support code action literals as a valid
|
|
|
|
|
* response of the `textDocument/codeAction` request.
|
|
|
|
|
*/
|
|
|
|
|
CodeActionLiteralSupport *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeActionKind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The code action kind is support with the following value
|
|
|
|
|
* set.
|
|
|
|
|
*/
|
|
|
|
|
CodeActionKind struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ValueSet defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The code action kind values the client supports. When this
|
|
|
|
|
* property exists the client also guarantees that it will
|
|
|
|
|
* handle values outside its set gracefully and falls back
|
|
|
|
|
* to a default value when unknown.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []CodeActionKind `json:"valueSet"`
|
|
|
|
|
} `json:"codeActionKind"`
|
|
|
|
|
} `json:"codeActionLiteralSupport,omitempty"`
|
|
|
|
|
} `json:"codeAction,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeLens defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Capabilities specific to the `textDocument/codeLens`
|
|
|
|
|
*/
|
|
|
|
|
CodeLens *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether code lens supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"codeLens,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*DocumentLink defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/documentLink`
|
|
|
|
|
*/
|
|
|
|
|
DocumentLink *struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether document link supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"documentLink,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*Rename defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/rename`
|
|
|
|
|
*/
|
|
|
|
|
Rename *struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether rename supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*PrepareSupport defined:
|
|
|
|
|
* Client supports testing for validity of rename operations
|
|
|
|
|
* before execution.
|
|
|
|
|
*/
|
|
|
|
|
PrepareSupport bool `json:"prepareSupport,omitempty"`
|
|
|
|
|
} `json:"rename,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*PublishDiagnostics defined:
|
|
|
|
|
* Capabilities specific to `textDocument/publishDiagnostics`.
|
|
|
|
|
*/
|
|
|
|
|
PublishDiagnostics *struct {
|
|
|
|
|
|
|
|
|
|
/*RelatedInformation defined:
|
|
|
|
|
* Whether the clients accepts diagnostics with related information.
|
|
|
|
|
*/
|
|
|
|
|
RelatedInformation bool `json:"relatedInformation,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*TagSupport defined:
|
|
|
|
|
* Client supports the tag property to provide meta data about a diagnostic.
|
|
|
|
|
*/
|
|
|
|
|
TagSupport bool `json:"tagSupport,omitempty"`
|
|
|
|
|
} `json:"publishDiagnostics,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-05-21 05:54:00 -06:00
|
|
|
|
/*WindowClientCapabilities defined:
|
|
|
|
|
* Window specific client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
type WindowClientCapabilities struct {
|
|
|
|
|
|
|
|
|
|
/*Progress defined:
|
|
|
|
|
* Whether client supports handling progress notifications.
|
|
|
|
|
*/
|
|
|
|
|
Progress bool `json:"progress,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ClientCapabilities is
|
|
|
|
|
type ClientCapabilities struct {
|
|
|
|
|
|
|
|
|
|
/*Workspace defined:
|
|
|
|
|
* Workspace specific client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
Workspace struct {
|
|
|
|
|
|
|
|
|
|
/*ApplyEdit defined:
|
|
|
|
|
* The client supports applying batch edits
|
|
|
|
|
* to the workspace by supporting the request
|
|
|
|
|
* 'workspace/applyEdit'
|
|
|
|
|
*/
|
|
|
|
|
ApplyEdit bool `json:"applyEdit,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*WorkspaceEdit defined:
|
|
|
|
|
* Capabilities specific to `WorkspaceEdit`s
|
|
|
|
|
*/
|
|
|
|
|
WorkspaceEdit struct {
|
|
|
|
|
|
|
|
|
|
/*DocumentChanges defined:
|
|
|
|
|
* The client supports versioned document changes in `WorkspaceEdit`s
|
|
|
|
|
*/
|
|
|
|
|
DocumentChanges bool `json:"documentChanges,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*ResourceOperations defined:
|
|
|
|
|
* The resource operations the client supports. Clients should at least
|
|
|
|
|
* support 'create', 'rename' and 'delete' files and folders.
|
|
|
|
|
*/
|
|
|
|
|
ResourceOperations []ResourceOperationKind `json:"resourceOperations,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*FailureHandling defined:
|
|
|
|
|
* The failure handling strategy of a client if applying the workspace edit
|
|
|
|
|
* failes.
|
|
|
|
|
*/
|
|
|
|
|
FailureHandling FailureHandlingKind `json:"failureHandling,omitempty"`
|
|
|
|
|
} `json:"workspaceEdit,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*DidChangeConfiguration defined:
|
|
|
|
|
* Capabilities specific to the `workspace/didChangeConfiguration` notification.
|
|
|
|
|
*/
|
|
|
|
|
DidChangeConfiguration struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Did change configuration notification supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"didChangeConfiguration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*DidChangeWatchedFiles defined:
|
|
|
|
|
* Capabilities specific to the `workspace/didChangeWatchedFiles` notification.
|
|
|
|
|
*/
|
|
|
|
|
DidChangeWatchedFiles struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Did change watched files notification supports dynamic registration. Please note
|
|
|
|
|
* that the current protocol doesn't support static configuration for file changes
|
|
|
|
|
* from the server side.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"didChangeWatchedFiles,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*Symbol defined:
|
|
|
|
|
* Capabilities specific to the `workspace/symbol` request.
|
|
|
|
|
*/
|
|
|
|
|
Symbol struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Symbol request supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*SymbolKind defined:
|
|
|
|
|
* Specific capabilities for the `SymbolKind` in the `workspace/symbol` request.
|
|
|
|
|
*/
|
|
|
|
|
SymbolKind struct {
|
|
|
|
|
|
|
|
|
|
/*ValueSet defined:
|
|
|
|
|
* The symbol kind values the client supports. When this
|
|
|
|
|
* property exists the client also guarantees that it will
|
|
|
|
|
* handle values outside its set gracefully and falls back
|
|
|
|
|
* to a default value when unknown.
|
|
|
|
|
*
|
|
|
|
|
* If this property is not present the client only supports
|
|
|
|
|
* the symbol kinds from `File` to `Array` as defined in
|
|
|
|
|
* the initial version of the protocol.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []SymbolKind `json:"valueSet,omitempty"`
|
|
|
|
|
} `json:"symbolKind,omitempty"`
|
|
|
|
|
} `json:"symbol,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*ExecuteCommand defined:
|
|
|
|
|
* Capabilities specific to the `workspace/executeCommand` request.
|
|
|
|
|
*/
|
|
|
|
|
ExecuteCommand struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Execute command supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"executeCommand,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*WorkspaceFolders defined:
|
|
|
|
|
* The client has support for workspace folders
|
|
|
|
|
*/
|
|
|
|
|
WorkspaceFolders bool `json:"workspaceFolders,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*Configuration defined:
|
|
|
|
|
* The client supports `workspace/configuration` requests.
|
|
|
|
|
*/
|
|
|
|
|
Configuration bool `json:"configuration,omitempty"`
|
|
|
|
|
} `json:"workspace,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*TextDocument defined:
|
|
|
|
|
* Text document specific client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument struct {
|
|
|
|
|
|
|
|
|
|
/*Synchronization defined:
|
|
|
|
|
* Defines which synchronization capabilities the client supports.
|
|
|
|
|
*/
|
|
|
|
|
Synchronization struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether text document synchronization supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*WillSave defined:
|
|
|
|
|
* The client supports sending will save notifications.
|
|
|
|
|
*/
|
|
|
|
|
WillSave bool `json:"willSave,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*WillSaveWaitUntil defined:
|
|
|
|
|
* The client supports sending a will save request and
|
|
|
|
|
* waits for a response providing text edits which will
|
|
|
|
|
* be applied to the document before it is saved.
|
|
|
|
|
*/
|
|
|
|
|
WillSaveWaitUntil bool `json:"willSaveWaitUntil,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*DidSave defined:
|
|
|
|
|
* The client supports did save notifications.
|
|
|
|
|
*/
|
|
|
|
|
DidSave bool `json:"didSave,omitempty"`
|
|
|
|
|
} `json:"synchronization,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*Completion defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/completion`
|
|
|
|
|
*/
|
|
|
|
|
Completion struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether completion supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*CompletionItem defined:
|
|
|
|
|
* The client supports the following `CompletionItem` specific
|
|
|
|
|
* capabilities.
|
|
|
|
|
*/
|
|
|
|
|
CompletionItem struct {
|
|
|
|
|
|
|
|
|
|
/*SnippetSupport defined:
|
|
|
|
|
* Client supports snippets as insert text.
|
|
|
|
|
*
|
|
|
|
|
* A snippet can define tab stops and placeholders with `$1`, `$2`
|
|
|
|
|
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
|
|
|
|
|
* the end of the snippet. Placeholders with equal identifiers are linked,
|
|
|
|
|
* that is typing in one will update others too.
|
|
|
|
|
*/
|
|
|
|
|
SnippetSupport bool `json:"snippetSupport,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*CommitCharactersSupport defined:
|
|
|
|
|
* Client supports commit characters on a completion item.
|
|
|
|
|
*/
|
|
|
|
|
CommitCharactersSupport bool `json:"commitCharactersSupport,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*DocumentationFormat defined:
|
|
|
|
|
* Client supports the follow content formats for the documentation
|
|
|
|
|
* property. The order describes the preferred format of the client.
|
|
|
|
|
*/
|
|
|
|
|
DocumentationFormat []MarkupKind `json:"documentationFormat,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*DeprecatedSupport defined:
|
|
|
|
|
* Client supports the deprecated property on a completion item.
|
|
|
|
|
*/
|
|
|
|
|
DeprecatedSupport bool `json:"deprecatedSupport,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*PreselectSupport defined:
|
|
|
|
|
* Client supports the preselect property on a completion item.
|
|
|
|
|
*/
|
|
|
|
|
PreselectSupport bool `json:"preselectSupport,omitempty"`
|
|
|
|
|
} `json:"completionItem,omitempty"`
|
|
|
|
|
|
|
|
|
|
// CompletionItemKind is
|
|
|
|
|
CompletionItemKind struct {
|
|
|
|
|
|
|
|
|
|
/*ValueSet defined:
|
|
|
|
|
* The completion item kind values the client supports. When this
|
|
|
|
|
* property exists the client also guarantees that it will
|
|
|
|
|
* handle values outside its set gracefully and falls back
|
|
|
|
|
* to a default value when unknown.
|
|
|
|
|
*
|
|
|
|
|
* If this property is not present the client only supports
|
|
|
|
|
* the completion items kinds from `Text` to `Reference` as defined in
|
|
|
|
|
* the initial version of the protocol.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []CompletionItemKind `json:"valueSet,omitempty"`
|
|
|
|
|
} `json:"completionItemKind,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*ContextSupport defined:
|
|
|
|
|
* The client supports to send additional context information for a
|
|
|
|
|
* `textDocument/completion` requestion.
|
|
|
|
|
*/
|
|
|
|
|
ContextSupport bool `json:"contextSupport,omitempty"`
|
|
|
|
|
} `json:"completion,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*Hover defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/hover`
|
|
|
|
|
*/
|
|
|
|
|
Hover struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether hover supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*ContentFormat defined:
|
|
|
|
|
* Client supports the follow content formats for the content
|
|
|
|
|
* property. The order describes the preferred format of the client.
|
|
|
|
|
*/
|
|
|
|
|
ContentFormat []MarkupKind `json:"contentFormat,omitempty"`
|
|
|
|
|
} `json:"hover,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*SignatureHelp defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/signatureHelp`
|
|
|
|
|
*/
|
|
|
|
|
SignatureHelp struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether signature help supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*SignatureInformation defined:
|
|
|
|
|
* The client supports the following `SignatureInformation`
|
|
|
|
|
* specific properties.
|
|
|
|
|
*/
|
|
|
|
|
SignatureInformation struct {
|
|
|
|
|
|
|
|
|
|
/*DocumentationFormat defined:
|
|
|
|
|
* Client supports the follow content formats for the documentation
|
|
|
|
|
* property. The order describes the preferred format of the client.
|
|
|
|
|
*/
|
|
|
|
|
DocumentationFormat []MarkupKind `json:"documentationFormat,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*ParameterInformation defined:
|
|
|
|
|
* Client capabilities specific to parameter information.
|
|
|
|
|
*/
|
|
|
|
|
ParameterInformation struct {
|
|
|
|
|
|
|
|
|
|
/*LabelOffsetSupport defined:
|
|
|
|
|
* The client supports processing label offsets instead of a
|
|
|
|
|
* simple label string.
|
|
|
|
|
*/
|
|
|
|
|
LabelOffsetSupport bool `json:"labelOffsetSupport,omitempty"`
|
|
|
|
|
} `json:"parameterInformation,omitempty"`
|
|
|
|
|
} `json:"signatureInformation,omitempty"`
|
|
|
|
|
} `json:"signatureHelp,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*References defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/references`
|
|
|
|
|
*/
|
|
|
|
|
References struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether references supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"references,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*DocumentHighlight defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/documentHighlight`
|
|
|
|
|
*/
|
|
|
|
|
DocumentHighlight struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether document highlight supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"documentHighlight,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*DocumentSymbol defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/documentSymbol`
|
|
|
|
|
*/
|
|
|
|
|
DocumentSymbol struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether document symbol supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*SymbolKind defined:
|
|
|
|
|
* Specific capabilities for the `SymbolKind`.
|
|
|
|
|
*/
|
|
|
|
|
SymbolKind struct {
|
|
|
|
|
|
|
|
|
|
/*ValueSet defined:
|
|
|
|
|
* The symbol kind values the client supports. When this
|
|
|
|
|
* property exists the client also guarantees that it will
|
|
|
|
|
* handle values outside its set gracefully and falls back
|
|
|
|
|
* to a default value when unknown.
|
|
|
|
|
*
|
|
|
|
|
* If this property is not present the client only supports
|
|
|
|
|
* the symbol kinds from `File` to `Array` as defined in
|
|
|
|
|
* the initial version of the protocol.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []SymbolKind `json:"valueSet,omitempty"`
|
|
|
|
|
} `json:"symbolKind,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*HierarchicalDocumentSymbolSupport defined:
|
|
|
|
|
* The client support hierarchical document symbols.
|
|
|
|
|
*/
|
|
|
|
|
HierarchicalDocumentSymbolSupport bool `json:"hierarchicalDocumentSymbolSupport,omitempty"`
|
|
|
|
|
} `json:"documentSymbol,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*Formatting defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/formatting`
|
|
|
|
|
*/
|
|
|
|
|
Formatting struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether formatting supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"formatting,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*RangeFormatting defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/rangeFormatting`
|
|
|
|
|
*/
|
|
|
|
|
RangeFormatting struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether range formatting supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"rangeFormatting,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*OnTypeFormatting defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/onTypeFormatting`
|
|
|
|
|
*/
|
|
|
|
|
OnTypeFormatting struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether on type formatting supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"onTypeFormatting,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*Definition defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/definition`
|
|
|
|
|
*/
|
|
|
|
|
Definition struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether definition supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*LinkSupport defined:
|
|
|
|
|
* The client supports additional metadata in the form of definition links.
|
|
|
|
|
*/
|
|
|
|
|
LinkSupport bool `json:"linkSupport,omitempty"`
|
|
|
|
|
} `json:"definition,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*CodeAction defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/codeAction`
|
|
|
|
|
*/
|
|
|
|
|
CodeAction struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether code action supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*CodeActionLiteralSupport defined:
|
|
|
|
|
* The client support code action literals as a valid
|
|
|
|
|
* response of the `textDocument/codeAction` request.
|
|
|
|
|
*/
|
|
|
|
|
CodeActionLiteralSupport struct {
|
|
|
|
|
|
|
|
|
|
/*CodeActionKind defined:
|
|
|
|
|
* The code action kind is support with the following value
|
|
|
|
|
* set.
|
|
|
|
|
*/
|
|
|
|
|
CodeActionKind struct {
|
|
|
|
|
|
|
|
|
|
/*ValueSet defined:
|
|
|
|
|
* The code action kind values the client supports. When this
|
|
|
|
|
* property exists the client also guarantees that it will
|
|
|
|
|
* handle values outside its set gracefully and falls back
|
|
|
|
|
* to a default value when unknown.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []CodeActionKind `json:"valueSet"`
|
|
|
|
|
} `json:"codeActionKind"`
|
|
|
|
|
} `json:"codeActionLiteralSupport,omitempty"`
|
|
|
|
|
} `json:"codeAction,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*CodeLens defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/codeLens`
|
|
|
|
|
*/
|
|
|
|
|
CodeLens struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether code lens supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"codeLens,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*DocumentLink defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/documentLink`
|
|
|
|
|
*/
|
|
|
|
|
DocumentLink struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether document link supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"documentLink,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*Rename defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/rename`
|
|
|
|
|
*/
|
|
|
|
|
Rename struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether rename supports dynamic registration.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*PrepareSupport defined:
|
|
|
|
|
* Client supports testing for validity of rename operations
|
|
|
|
|
* before execution.
|
|
|
|
|
*/
|
|
|
|
|
PrepareSupport bool `json:"prepareSupport,omitempty"`
|
|
|
|
|
} `json:"rename,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*PublishDiagnostics defined:
|
|
|
|
|
* Capabilities specific to `textDocument/publishDiagnostics`.
|
|
|
|
|
*/
|
|
|
|
|
PublishDiagnostics struct {
|
|
|
|
|
|
|
|
|
|
/*RelatedInformation defined:
|
|
|
|
|
* Whether the clients accepts diagnostics with related information.
|
|
|
|
|
*/
|
|
|
|
|
RelatedInformation bool `json:"relatedInformation,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*TagSupport defined:
|
|
|
|
|
* Client supports the tag property to provide meta data about a diagnostic.
|
|
|
|
|
*/
|
|
|
|
|
TagSupport bool `json:"tagSupport,omitempty"`
|
|
|
|
|
} `json:"publishDiagnostics,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*Implementation defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/implementation`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-04-08 07:16:48 -06:00
|
|
|
|
Implementation struct {
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
|
|
|
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
|
|
|
* return value for the corresponding server capability as well.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*LinkSupport defined:
|
|
|
|
|
* The client supports additional metadata in the form of definition links.
|
|
|
|
|
*/
|
|
|
|
|
LinkSupport bool `json:"linkSupport,omitempty"`
|
|
|
|
|
} `json:"implementation,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*TypeDefinition defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/typeDefinition`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-04-08 07:16:48 -06:00
|
|
|
|
TypeDefinition struct {
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
|
|
|
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
|
|
|
* return value for the corresponding server capability as well.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*LinkSupport defined:
|
|
|
|
|
* The client supports additional metadata in the form of definition links.
|
|
|
|
|
*/
|
|
|
|
|
LinkSupport bool `json:"linkSupport,omitempty"`
|
|
|
|
|
} `json:"typeDefinition,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ColorProvider defined:
|
|
|
|
|
* Capabilities specific to the colorProvider
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-04-08 07:16:48 -06:00
|
|
|
|
ColorProvider struct {
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
|
|
|
* the client supports the new `(ColorProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
|
|
|
* return value for the corresponding server capability as well.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"colorProvider,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FoldingRange defined:
|
|
|
|
|
* Capabilities specific to `textDocument/foldingRange` requests
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-04-08 07:16:48 -06:00
|
|
|
|
FoldingRange struct {
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether implementation supports dynamic registration for folding range providers. If this is set to `true`
|
|
|
|
|
* the client supports the new `(FoldingRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
|
|
|
* return value for the corresponding server capability as well.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*RangeLimit defined:
|
|
|
|
|
* The maximum number of folding ranges that the client prefers to receive per document. The value serves as a
|
|
|
|
|
* hint, servers are free to follow the limit.
|
|
|
|
|
*/
|
|
|
|
|
RangeLimit float64 `json:"rangeLimit,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*LineFoldingOnly defined:
|
|
|
|
|
* If set, the client signals that it only supports folding complete lines. If set, client will
|
|
|
|
|
* ignore specified `startCharacter` and `endCharacter` properties in a FoldingRange.
|
|
|
|
|
*/
|
|
|
|
|
LineFoldingOnly bool `json:"lineFoldingOnly,omitempty"`
|
|
|
|
|
} `json:"foldingRange,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*Declaration defined:
|
|
|
|
|
* Capabilities specific to the `textDocument/declaration`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-04-08 07:16:48 -06:00
|
|
|
|
Declaration struct {
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether declaration supports dynamic registration. If this is set to `true`
|
|
|
|
|
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
|
|
|
* return value for the corresponding server capability as well.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*LinkSupport defined:
|
|
|
|
|
* The client supports additional metadata in the form of declaration links.
|
|
|
|
|
*/
|
|
|
|
|
LinkSupport bool `json:"linkSupport,omitempty"`
|
|
|
|
|
} `json:"declaration,omitempty"`
|
2019-07-11 12:53:13 -06:00
|
|
|
|
|
|
|
|
|
/*SelectionRange defined:
|
|
|
|
|
* Capabilities specific to `textDocument/selectionRange` requests
|
|
|
|
|
*/
|
|
|
|
|
SelectionRange struct {
|
|
|
|
|
|
|
|
|
|
/*DynamicRegistration defined:
|
|
|
|
|
* Whether implementation supports dynamic registration for selection range providers. If this is set to `true`
|
|
|
|
|
* the client supports the new `(SelectionRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
|
|
|
* return value for the corresponding server capability as well.
|
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
} `json:"selectionRange,omitempty"`
|
2019-04-08 07:16:48 -06:00
|
|
|
|
} `json:"textDocument,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-05-21 05:54:00 -06:00
|
|
|
|
/*Window defined:
|
|
|
|
|
* Window specific client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
Window WindowClientCapabilities `json:"window,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Experimental defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Experimental client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
Experimental interface{} `json:"experimental,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*StaticRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Static registration options to be returned in the initialize
|
|
|
|
|
* request.
|
|
|
|
|
*/
|
|
|
|
|
type StaticRegistrationOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ID defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The id used to register the request. The id can be used to deregister
|
|
|
|
|
* the request again. See also Registration#id.
|
|
|
|
|
*/
|
|
|
|
|
ID string `json:"id,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* General text document registration options.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentRegistrationOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentSelector defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
DocumentSelector DocumentSelector `json:"documentSelector"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CompletionOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Completion options.
|
|
|
|
|
*/
|
|
|
|
|
type CompletionOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TriggerCharacters defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Most tools trigger completion request automatically without explicitly requesting
|
|
|
|
|
* it using a keyboard shortcut (e.g. Ctrl+Space). Typically they do so when the user
|
|
|
|
|
* starts to type an identifier. For example if the user types `c` in a JavaScript file
|
|
|
|
|
* code complete will automatically pop up present `console` besides others as a
|
|
|
|
|
* completion item. Characters that make up identifiers don't need to be listed here.
|
|
|
|
|
*
|
|
|
|
|
* If code complete should automatically be trigger on characters not being valid inside
|
|
|
|
|
* an identifier (for example `.` in JavaScript) list them in `triggerCharacters`.
|
|
|
|
|
*/
|
|
|
|
|
TriggerCharacters []string `json:"triggerCharacters,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*AllCommitCharacters defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The list of all possible characters that commit a completion. This field can be used
|
|
|
|
|
* if clients don't support individual commmit characters per completion item. See
|
|
|
|
|
* `ClientCapabilities.textDocument.completion.completionItem.commitCharactersSupport`
|
|
|
|
|
*/
|
|
|
|
|
AllCommitCharacters []string `json:"allCommitCharacters,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ResolveProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides support to resolve additional
|
|
|
|
|
* information for a completion item.
|
|
|
|
|
*/
|
|
|
|
|
ResolveProvider bool `json:"resolveProvider,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SignatureHelpOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Signature help options.
|
|
|
|
|
*/
|
|
|
|
|
type SignatureHelpOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TriggerCharacters defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The characters that trigger signature help
|
|
|
|
|
* automatically.
|
|
|
|
|
*/
|
|
|
|
|
TriggerCharacters []string `json:"triggerCharacters,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeActionOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Code Action options.
|
|
|
|
|
*/
|
|
|
|
|
type CodeActionOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeActionKinds defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* CodeActionKinds that this server may return.
|
|
|
|
|
*
|
|
|
|
|
* The list of kinds may be generic, such as `CodeActionKind.Refactor`, or the server
|
|
|
|
|
* may list out every specific kind they provide.
|
|
|
|
|
*/
|
|
|
|
|
CodeActionKinds []CodeActionKind `json:"codeActionKinds,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeLensOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Code Lens options.
|
|
|
|
|
*/
|
|
|
|
|
type CodeLensOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ResolveProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Code lens has a resolve provider as well.
|
|
|
|
|
*/
|
|
|
|
|
ResolveProvider bool `json:"resolveProvider,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentOnTypeFormattingOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Format document on type options
|
|
|
|
|
*/
|
|
|
|
|
type DocumentOnTypeFormattingOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FirstTriggerCharacter defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A character on which formatting should be triggered, like `}`.
|
|
|
|
|
*/
|
|
|
|
|
FirstTriggerCharacter string `json:"firstTriggerCharacter"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*MoreTriggerCharacter defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* More trigger characters.
|
|
|
|
|
*/
|
|
|
|
|
MoreTriggerCharacter []string `json:"moreTriggerCharacter,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RenameOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Rename options
|
|
|
|
|
*/
|
|
|
|
|
type RenameOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*PrepareProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Renames should be checked and tested before being executed.
|
|
|
|
|
*/
|
|
|
|
|
PrepareProvider bool `json:"prepareProvider,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentLinkOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Document link options
|
|
|
|
|
*/
|
|
|
|
|
type DocumentLinkOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ResolveProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Document links have a resolve provider as well.
|
|
|
|
|
*/
|
|
|
|
|
ResolveProvider bool `json:"resolveProvider,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ExecuteCommandOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Execute command options.
|
|
|
|
|
*/
|
|
|
|
|
type ExecuteCommandOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Commands defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The commands to be executed on the server
|
|
|
|
|
*/
|
|
|
|
|
Commands []string `json:"commands"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SaveOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Save options.
|
|
|
|
|
*/
|
|
|
|
|
type SaveOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*IncludeText defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client is supposed to include the content on save.
|
|
|
|
|
*/
|
|
|
|
|
IncludeText bool `json:"includeText,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// TextDocumentSyncOptions is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type TextDocumentSyncOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*OpenClose defined:
|
2019-05-21 05:54:00 -06:00
|
|
|
|
* Open and close notifications are sent to the server. If omitted open close notification should not
|
|
|
|
|
* be sent.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
OpenClose bool `json:"openClose,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Change defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full
|
2019-05-21 05:54:00 -06:00
|
|
|
|
* and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
Change TextDocumentSyncKind `json:"change,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WillSave defined:
|
2019-05-21 05:54:00 -06:00
|
|
|
|
* If present will save notifications are sent to the server. If omitted the notification should not be
|
|
|
|
|
* sent.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
WillSave bool `json:"willSave,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WillSaveWaitUntil defined:
|
2019-05-21 05:54:00 -06:00
|
|
|
|
* If present will save wait until requests are sent to the server. If omitted the request should not be
|
|
|
|
|
* sent.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
WillSaveWaitUntil bool `json:"willSaveWaitUntil,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Save defined:
|
2019-05-21 05:54:00 -06:00
|
|
|
|
* If present save notifications are sent to the server. If omitted the notification should not be
|
|
|
|
|
* sent.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
Save *SaveOptions `json:"save,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ServerCapabilities is
|
|
|
|
|
type ServerCapabilities struct {
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentSync defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Defines how text documents are synced. Is either a detailed structure defining each notification or
|
|
|
|
|
* for backwards compatibility the TextDocumentSyncKind number.
|
|
|
|
|
*/
|
|
|
|
|
TextDocumentSync interface{} `json:"textDocumentSync,omitempty"` // TextDocumentSyncOptions | TextDocumentSyncKind
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*HoverProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides hover support.
|
|
|
|
|
*/
|
|
|
|
|
HoverProvider bool `json:"hoverProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CompletionProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides completion support.
|
|
|
|
|
*/
|
|
|
|
|
CompletionProvider *CompletionOptions `json:"completionProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SignatureHelpProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides signature help support.
|
|
|
|
|
*/
|
|
|
|
|
SignatureHelpProvider *SignatureHelpOptions `json:"signatureHelpProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DefinitionProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides goto definition support.
|
|
|
|
|
*/
|
|
|
|
|
DefinitionProvider bool `json:"definitionProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ReferencesProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides find references support.
|
|
|
|
|
*/
|
|
|
|
|
ReferencesProvider bool `json:"referencesProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentHighlightProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides document highlight support.
|
|
|
|
|
*/
|
|
|
|
|
DocumentHighlightProvider bool `json:"documentHighlightProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentSymbolProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides document symbol support.
|
|
|
|
|
*/
|
|
|
|
|
DocumentSymbolProvider bool `json:"documentSymbolProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WorkspaceSymbolProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides workspace symbol support.
|
|
|
|
|
*/
|
|
|
|
|
WorkspaceSymbolProvider bool `json:"workspaceSymbolProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeActionProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides code actions. CodeActionOptions may only be
|
|
|
|
|
* specified if the client states that it supports
|
|
|
|
|
* `codeActionLiteralSupport` in its initial `initialize` request.
|
|
|
|
|
*/
|
2019-08-14 13:24:21 -06:00
|
|
|
|
CodeActionProvider interface{} `json:"codeActionProvider,omitempty"` // boolean | CodeActionOptions
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeLensProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides code lens.
|
|
|
|
|
*/
|
|
|
|
|
CodeLensProvider *CodeLensOptions `json:"codeLensProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentFormattingProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides document formatting.
|
|
|
|
|
*/
|
|
|
|
|
DocumentFormattingProvider bool `json:"documentFormattingProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentRangeFormattingProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides document range formatting.
|
|
|
|
|
*/
|
|
|
|
|
DocumentRangeFormattingProvider bool `json:"documentRangeFormattingProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentOnTypeFormattingProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides document formatting on typing.
|
|
|
|
|
*/
|
|
|
|
|
DocumentOnTypeFormattingProvider *struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FirstTriggerCharacter defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A character on which formatting should be triggered, like `}`.
|
|
|
|
|
*/
|
|
|
|
|
FirstTriggerCharacter string `json:"firstTriggerCharacter"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*MoreTriggerCharacter defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* More trigger characters.
|
|
|
|
|
*/
|
|
|
|
|
MoreTriggerCharacter []string `json:"moreTriggerCharacter,omitempty"`
|
|
|
|
|
} `json:"documentOnTypeFormattingProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RenameProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides rename support. RenameOptions may only be
|
|
|
|
|
* specified if the client states that it supports
|
|
|
|
|
* `prepareSupport` in its initial `initialize` request.
|
|
|
|
|
*/
|
2019-06-20 09:29:44 -06:00
|
|
|
|
RenameProvider interface{} `json:"renameProvider,omitempty"` // boolean | RenameOptions
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentLinkProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides document link support.
|
|
|
|
|
*/
|
|
|
|
|
DocumentLinkProvider *DocumentLinkOptions `json:"documentLinkProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ExecuteCommandProvider defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The server provides execute command support.
|
|
|
|
|
*/
|
|
|
|
|
ExecuteCommandProvider *ExecuteCommandOptions `json:"executeCommandProvider,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Experimental defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Experimental server capabilities.
|
|
|
|
|
*/
|
|
|
|
|
Experimental interface{} `json:"experimental,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ImplementationProvider defined:
|
|
|
|
|
* The server provides Goto Implementation support.
|
|
|
|
|
*/
|
|
|
|
|
ImplementationProvider bool `json:"implementationProvider,omitempty"` // boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions)
|
|
|
|
|
|
|
|
|
|
/*TypeDefinitionProvider defined:
|
|
|
|
|
* The server provides Goto Type Definition support.
|
|
|
|
|
*/
|
|
|
|
|
TypeDefinitionProvider bool `json:"typeDefinitionProvider,omitempty"` // boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions)
|
|
|
|
|
|
|
|
|
|
/*Workspace defined:
|
|
|
|
|
* The workspace server capabilities
|
|
|
|
|
*/
|
|
|
|
|
Workspace *struct {
|
|
|
|
|
|
|
|
|
|
// WorkspaceFolders is
|
|
|
|
|
WorkspaceFolders *struct {
|
|
|
|
|
|
|
|
|
|
/*Supported defined:
|
|
|
|
|
* The Server has support for workspace folders
|
|
|
|
|
*/
|
|
|
|
|
Supported bool `json:"supported,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*ChangeNotifications defined:
|
|
|
|
|
* Whether the server wants to receive workspace folder
|
|
|
|
|
* change notifications.
|
|
|
|
|
*
|
|
|
|
|
* If a strings is provided the string is treated as a ID
|
|
|
|
|
* under which the notification is registed on the client
|
|
|
|
|
* side. The ID can be used to unregister for these events
|
|
|
|
|
* using the `client/unregisterCapability` request.
|
|
|
|
|
*/
|
|
|
|
|
ChangeNotifications string `json:"changeNotifications,omitempty"` // string | boolean
|
|
|
|
|
} `json:"workspaceFolders,omitempty"`
|
|
|
|
|
} `json:"workspace,omitempty"`
|
|
|
|
|
|
|
|
|
|
/*ColorProvider defined:
|
|
|
|
|
* The server provides color provider support.
|
|
|
|
|
*/
|
|
|
|
|
ColorProvider bool `json:"colorProvider,omitempty"` // boolean | ColorProviderOptions | (ColorProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)
|
|
|
|
|
|
|
|
|
|
/*FoldingRangeProvider defined:
|
|
|
|
|
* The server provides folding provider support.
|
|
|
|
|
*/
|
|
|
|
|
FoldingRangeProvider bool `json:"foldingRangeProvider,omitempty"` // boolean | FoldingRangeProviderOptions | (FoldingRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)
|
|
|
|
|
|
|
|
|
|
/*DeclarationProvider defined:
|
|
|
|
|
* The server provides Goto Type Definition support.
|
|
|
|
|
*/
|
|
|
|
|
DeclarationProvider bool `json:"declarationProvider,omitempty"` // boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions)
|
2019-07-11 12:53:13 -06:00
|
|
|
|
|
|
|
|
|
/*SelectionRangeProvider defined:
|
|
|
|
|
* The server provides selection range support.
|
|
|
|
|
*/
|
|
|
|
|
SelectionRangeProvider bool `json:"selectionRangeProvider,omitempty"` // boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions & SelectionRangeProviderOptions)
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// InitializeParams is
|
|
|
|
|
type InitializeParams struct {
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ProcessID defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The process Id of the parent process that started
|
|
|
|
|
* the server.
|
|
|
|
|
*/
|
|
|
|
|
ProcessID float64 `json:"processId"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RootPath defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The rootPath of the workspace. Is null
|
|
|
|
|
* if no folder is open.
|
|
|
|
|
*
|
|
|
|
|
* @deprecated in favour of rootUri.
|
|
|
|
|
*/
|
|
|
|
|
RootPath string `json:"rootPath,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RootURI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The rootUri of the workspace. Is null if no
|
|
|
|
|
* folder is open. If both `rootPath` and `rootUri` are set
|
|
|
|
|
* `rootUri` wins.
|
|
|
|
|
*
|
|
|
|
|
* @deprecated in favour of workspaceFolders.
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
RootURI DocumentUri `json:"rootUri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Capabilities defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The capabilities provided by the client (editor or tool)
|
|
|
|
|
*/
|
|
|
|
|
Capabilities ClientCapabilities `json:"capabilities"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*InitializationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* User provided initialization options.
|
|
|
|
|
*/
|
|
|
|
|
InitializationOptions interface{} `json:"initializationOptions,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Trace defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The initial trace setting. If omitted trace is disabled ('off').
|
|
|
|
|
*/
|
|
|
|
|
Trace string `json:"trace,omitempty"` // 'off' | 'messages' | 'verbose'
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WorkspaceFolders defined:
|
|
|
|
|
* The actual configured workspace folders.
|
|
|
|
|
*/
|
|
|
|
|
WorkspaceFolders []WorkspaceFolder `json:"workspaceFolders"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*InitializeResult defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The result returned from an initialize request.
|
|
|
|
|
*/
|
|
|
|
|
type InitializeResult struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Capabilities defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The capabilities the language server provides.
|
|
|
|
|
*/
|
|
|
|
|
Capabilities ServerCapabilities `json:"capabilities"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Custom defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Custom initialization results.
|
|
|
|
|
*/
|
|
|
|
|
Custom map[string]interface{} `json:"custom"` // [custom: string]: any;
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// InitializedParams is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type InitializedParams struct {
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// DidChangeConfigurationRegistrationOptions is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type DidChangeConfigurationRegistrationOptions struct {
|
|
|
|
|
|
|
|
|
|
// Section is
|
|
|
|
|
Section string `json:"section,omitempty"` // string | string[]
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidChangeConfigurationParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters of a change configuration notification.
|
|
|
|
|
*/
|
|
|
|
|
type DidChangeConfigurationParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Settings defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The actual changed settings
|
|
|
|
|
*/
|
|
|
|
|
Settings interface{} `json:"settings"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ShowMessageParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters of a notification message.
|
|
|
|
|
*/
|
|
|
|
|
type ShowMessageParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Type defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The message type. See {@link MessageType}
|
|
|
|
|
*/
|
|
|
|
|
Type MessageType `json:"type"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Message defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The actual message
|
|
|
|
|
*/
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// MessageActionItem is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type MessageActionItem struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Title defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A short title like 'Retry', 'Open Log' etc.
|
|
|
|
|
*/
|
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ShowMessageRequestParams is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type ShowMessageRequestParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Type defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The message type. See {@link MessageType}
|
|
|
|
|
*/
|
|
|
|
|
Type MessageType `json:"type"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Message defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The actual message
|
|
|
|
|
*/
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Actions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The message action items to present.
|
|
|
|
|
*/
|
|
|
|
|
Actions []MessageActionItem `json:"actions,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*LogMessageParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The log message parameters.
|
|
|
|
|
*/
|
|
|
|
|
type LogMessageParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Type defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The message type. See {@link MessageType}
|
|
|
|
|
*/
|
|
|
|
|
Type MessageType `json:"type"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Message defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The actual message
|
|
|
|
|
*/
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidOpenTextDocumentParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters send in a open text document notification
|
|
|
|
|
*/
|
|
|
|
|
type DidOpenTextDocumentParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document that was opened.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentItem `json:"textDocument"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidChangeTextDocumentParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The change text document notification's parameters.
|
|
|
|
|
*/
|
|
|
|
|
type DidChangeTextDocumentParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document that did change. The version number points
|
|
|
|
|
* to the version after all provided content changes have
|
|
|
|
|
* been applied.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument VersionedTextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ContentChanges defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The actual content changes. The content changes describe single state changes
|
|
|
|
|
* to the document. So if there are two content changes c1 and c2 for a document
|
|
|
|
|
* in state S then c1 move the document to S' and c2 to S''.
|
|
|
|
|
*/
|
|
|
|
|
ContentChanges []TextDocumentContentChangeEvent `json:"contentChanges"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentChangeRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Describe options to be used when registered for text document change events.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentChangeRegistrationOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SyncKind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* How documents are synced to the server.
|
|
|
|
|
*/
|
|
|
|
|
SyncKind TextDocumentSyncKind `json:"syncKind"`
|
2019-04-08 07:16:48 -06:00
|
|
|
|
TextDocumentRegistrationOptions
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidCloseTextDocumentParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters send in a close text document notification
|
|
|
|
|
*/
|
|
|
|
|
type DidCloseTextDocumentParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document that was closed.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidSaveTextDocumentParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters send in a save text document notification
|
|
|
|
|
*/
|
|
|
|
|
type DidSaveTextDocumentParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document that was closed.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument VersionedTextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Text defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Optional the content when saved. Depends on the includeText value
|
|
|
|
|
* when the save notification was requested.
|
|
|
|
|
*/
|
|
|
|
|
Text string `json:"text,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentSaveRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Save registration options.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentSaveRegistrationOptions struct {
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
SaveOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WillSaveTextDocumentParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters send in a will save text document notification.
|
|
|
|
|
*/
|
|
|
|
|
type WillSaveTextDocumentParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document that will be saved.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Reason defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The 'TextDocumentSaveReason'.
|
|
|
|
|
*/
|
|
|
|
|
Reason TextDocumentSaveReason `json:"reason"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidChangeWatchedFilesParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The watched files change notification's parameters.
|
|
|
|
|
*/
|
|
|
|
|
type DidChangeWatchedFilesParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Changes defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The actual file events.
|
|
|
|
|
*/
|
|
|
|
|
Changes []FileEvent `json:"changes"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FileEvent defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An event describing a file change.
|
|
|
|
|
*/
|
|
|
|
|
type FileEvent struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*URI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The file's uri.
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
URI DocumentUri `json:"uri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Type defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The change type.
|
|
|
|
|
*/
|
|
|
|
|
Type FileChangeType `json:"type"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DidChangeWatchedFilesRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Describe options to be used when registered for text document change events.
|
|
|
|
|
*/
|
|
|
|
|
type DidChangeWatchedFilesRegistrationOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Watchers defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The watchers to register.
|
|
|
|
|
*/
|
|
|
|
|
Watchers []FileSystemWatcher `json:"watchers"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// FileSystemWatcher is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type FileSystemWatcher struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*GlobPattern defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The glob pattern to watch. 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`)
|
|
|
|
|
*/
|
|
|
|
|
GlobPattern string `json:"globPattern"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The kind of events of interest. If omitted it defaults
|
|
|
|
|
* to WatchKind.Create | WatchKind.Change | WatchKind.Delete
|
|
|
|
|
* which is 7.
|
|
|
|
|
*/
|
|
|
|
|
Kind float64 `json:"kind,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*PublishDiagnosticsParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The publish diagnostic notification's parameters.
|
|
|
|
|
*/
|
|
|
|
|
type PublishDiagnosticsParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*URI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The URI for which diagnostic information is reported.
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
URI DocumentUri `json:"uri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Version defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Optional the version number of the document the diagnostics are published for.
|
2019-07-11 12:53:13 -06:00
|
|
|
|
*
|
|
|
|
|
* @since 3.15
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
Version float64 `json:"version,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Diagnostics defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An array of diagnostic information items.
|
|
|
|
|
*/
|
|
|
|
|
Diagnostics []Diagnostic `json:"diagnostics"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CompletionRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Completion registration options.
|
|
|
|
|
*/
|
|
|
|
|
type CompletionRegistrationOptions struct {
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
CompletionOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CompletionContext defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Contains additional information about the context in which a completion request is triggered.
|
|
|
|
|
*/
|
|
|
|
|
type CompletionContext struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TriggerKind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* How the completion was triggered.
|
|
|
|
|
*/
|
|
|
|
|
TriggerKind CompletionTriggerKind `json:"triggerKind"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TriggerCharacter defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The trigger character (a single character) that has trigger code complete.
|
|
|
|
|
* Is undefined if `triggerKind !== CompletionTriggerKind.TriggerCharacter`
|
|
|
|
|
*/
|
|
|
|
|
TriggerCharacter string `json:"triggerCharacter,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CompletionParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Completion parameters
|
|
|
|
|
*/
|
|
|
|
|
type CompletionParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Context defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The completion context. This is only available it the client specifies
|
|
|
|
|
* to send this using `ClientCapabilities.textDocument.completion.contextSupport === true`
|
|
|
|
|
*/
|
|
|
|
|
Context *CompletionContext `json:"context,omitempty"`
|
2019-04-08 07:16:48 -06:00
|
|
|
|
TextDocumentPositionParams
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SignatureHelpRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Signature help registration options.
|
|
|
|
|
*/
|
|
|
|
|
type SignatureHelpRegistrationOptions struct {
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
SignatureHelpOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ReferenceParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Parameters for a [ReferencesRequest](#ReferencesRequest).
|
|
|
|
|
*/
|
|
|
|
|
type ReferenceParams struct {
|
|
|
|
|
|
|
|
|
|
// Context is
|
|
|
|
|
Context ReferenceContext `json:"context"`
|
2019-04-08 07:16:48 -06:00
|
|
|
|
TextDocumentPositionParams
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeActionParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Params for the CodeActionRequest
|
|
|
|
|
*/
|
|
|
|
|
type CodeActionParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document in which the command was invoked.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range for which the command was invoked.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Context defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Context carrying additional information.
|
|
|
|
|
*/
|
|
|
|
|
Context CodeActionContext `json:"context"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// CodeActionRegistrationOptions is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type CodeActionRegistrationOptions struct {
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
CodeActionOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeLensParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Params for the Code Lens request.
|
|
|
|
|
*/
|
|
|
|
|
type CodeLensParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document to request code lens for.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeLensRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Code Lens registration options.
|
|
|
|
|
*/
|
|
|
|
|
type CodeLensRegistrationOptions struct {
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
CodeLensOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// DocumentFormattingParams is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type DocumentFormattingParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document to format.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Options defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The format options
|
|
|
|
|
*/
|
|
|
|
|
Options FormattingOptions `json:"options"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// DocumentRangeFormattingParams is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type DocumentRangeFormattingParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document to format.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range to format
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Options defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The format options
|
|
|
|
|
*/
|
|
|
|
|
Options FormattingOptions `json:"options"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// DocumentOnTypeFormattingParams is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type DocumentOnTypeFormattingParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document to format.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Position defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The position at which this request was send.
|
|
|
|
|
*/
|
|
|
|
|
Position Position `json:"position"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Ch defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The character that has been typed.
|
|
|
|
|
*/
|
|
|
|
|
Ch string `json:"ch"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Options defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The format options.
|
|
|
|
|
*/
|
|
|
|
|
Options FormattingOptions `json:"options"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentOnTypeFormattingRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Format document on type options
|
|
|
|
|
*/
|
|
|
|
|
type DocumentOnTypeFormattingRegistrationOptions struct {
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
DocumentOnTypeFormattingOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// RenameParams is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type RenameParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document to rename.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Position defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The position at which this request was sent.
|
|
|
|
|
*/
|
|
|
|
|
Position Position `json:"position"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*NewName defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The new name of the symbol. If the given name is not valid the
|
|
|
|
|
* request must return a [ResponseError](#ResponseError) with an
|
|
|
|
|
* appropriate message set.
|
|
|
|
|
*/
|
|
|
|
|
NewName string `json:"newName"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RenameRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Rename registration options.
|
|
|
|
|
*/
|
|
|
|
|
type RenameRegistrationOptions struct {
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
RenameOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// DocumentLinkParams is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type DocumentLinkParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document to provide document links for.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentLinkRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Document link registration options
|
|
|
|
|
*/
|
|
|
|
|
type DocumentLinkRegistrationOptions struct {
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
DocumentLinkOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ExecuteCommandParams is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type ExecuteCommandParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Command defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The identifier of the actual command handler.
|
|
|
|
|
*/
|
|
|
|
|
Command string `json:"command"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Arguments defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Arguments that the command should be invoked with.
|
|
|
|
|
*/
|
|
|
|
|
Arguments []interface{} `json:"arguments,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ExecuteCommandRegistrationOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Execute command registration options.
|
|
|
|
|
*/
|
|
|
|
|
type ExecuteCommandRegistrationOptions struct {
|
|
|
|
|
ExecuteCommandOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ApplyWorkspaceEditParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters passed via a apply workspace edit request.
|
|
|
|
|
*/
|
|
|
|
|
type ApplyWorkspaceEditParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Label defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An optional label of the workspace edit. This label is
|
|
|
|
|
* presented in the user interface for example on an undo
|
|
|
|
|
* stack to undo the workspace edit.
|
|
|
|
|
*/
|
|
|
|
|
Label string `json:"label,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Edit defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The edits to apply.
|
|
|
|
|
*/
|
|
|
|
|
Edit WorkspaceEdit `json:"edit"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ApplyWorkspaceEditResponse defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A response returned from the apply workspace edit request.
|
|
|
|
|
*/
|
|
|
|
|
type ApplyWorkspaceEditResponse struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Applied defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Indicates whether the edit was applied or not.
|
|
|
|
|
*/
|
|
|
|
|
Applied bool `json:"applied"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FailureReason defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An optional textual description for why the edit was not applied.
|
|
|
|
|
* This may be used by the server for diagnostic logging or to provide
|
|
|
|
|
* a suitable error for a request that triggered the edit.
|
|
|
|
|
*/
|
|
|
|
|
FailureReason string `json:"failureReason,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FailedChange defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Depending on the client's failure handling strategy `failedChange` might
|
|
|
|
|
* contain the index of the change that failed. This property is only available
|
|
|
|
|
* if the client signals a `failureHandlingStrategy` in its client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
FailedChange float64 `json:"failedChange,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Position defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Position in a text document expressed as zero-based line and character offset.
|
|
|
|
|
* The offsets are based on a UTF-16 string representation. So a string of the form
|
|
|
|
|
* `a𐐀b` the character offset of the character `a` is 0, the character offset of `𐐀`
|
|
|
|
|
* is 1 and the character offset of b is 3 since `𐐀` is represented using two code
|
|
|
|
|
* units in UTF-16.
|
|
|
|
|
*
|
|
|
|
|
* Positions are line end character agnostic. So you can not specify a position that
|
|
|
|
|
* denotes `\r|\n` or `\n|` where `|` represents the character offset.
|
|
|
|
|
*/
|
|
|
|
|
type Position struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Line defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Line position in a document (zero-based).
|
|
|
|
|
* If a line number is greater than the number of lines in a document, it defaults back to the number of lines in the document.
|
|
|
|
|
* If a line number is negative, it defaults to 0.
|
|
|
|
|
*/
|
|
|
|
|
Line float64 `json:"line"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Character defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* 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.
|
|
|
|
|
* If a line number is negative, it defaults to 0.
|
|
|
|
|
*/
|
|
|
|
|
Character float64 `json:"character"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A range in a text document expressed as (zero-based) start and end positions.
|
|
|
|
|
*
|
|
|
|
|
* 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.
|
|
|
|
|
* For example:
|
|
|
|
|
* ```ts
|
|
|
|
|
* {
|
|
|
|
|
* start: { line: 5, character: 23 }
|
|
|
|
|
* end : { line 6, character : 0 }
|
|
|
|
|
* }
|
|
|
|
|
* ```
|
|
|
|
|
*/
|
|
|
|
|
type Range struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Start defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range's start position
|
|
|
|
|
*/
|
|
|
|
|
Start Position `json:"start"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*End defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range's end position.
|
|
|
|
|
*/
|
|
|
|
|
End Position `json:"end"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Location defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents a location inside a resource, such as a line
|
|
|
|
|
* inside a text file.
|
|
|
|
|
*/
|
|
|
|
|
type Location struct {
|
|
|
|
|
|
|
|
|
|
// URI is
|
2019-07-11 12:53:13 -06:00
|
|
|
|
URI DocumentUri `json:"uri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
|
|
|
|
// Range is
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*LocationLink defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents the connection of two locations. Provides additional metadata over normal [locations](#Location),
|
|
|
|
|
* including an origin range.
|
|
|
|
|
*/
|
|
|
|
|
type LocationLink struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*OriginSelectionRange defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Span of the origin of this link.
|
|
|
|
|
*
|
|
|
|
|
* Used as the underlined span for mouse definition hover. Defaults to the word range at
|
|
|
|
|
* the definition position.
|
|
|
|
|
*/
|
|
|
|
|
OriginSelectionRange *Range `json:"originSelectionRange,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TargetURI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The target resource identifier of this link.
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
TargetURI DocumentUri `json:"targetUri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TargetRange defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* 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 `json:"targetRange"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TargetSelectionRange defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* 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`
|
|
|
|
|
*/
|
|
|
|
|
TargetSelectionRange Range `json:"targetSelectionRange"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Color defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents a color in RGBA space.
|
|
|
|
|
*/
|
|
|
|
|
type Color struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Red defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The red component of this color in the range [0-1].
|
|
|
|
|
*/
|
|
|
|
|
Red float64 `json:"red"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Green defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The green component of this color in the range [0-1].
|
|
|
|
|
*/
|
|
|
|
|
Green float64 `json:"green"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Blue defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The blue component of this color in the range [0-1].
|
|
|
|
|
*/
|
|
|
|
|
Blue float64 `json:"blue"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Alpha defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The alpha component of this color in the range [0-1].
|
|
|
|
|
*/
|
|
|
|
|
Alpha float64 `json:"alpha"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ColorInformation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents a color range from a document.
|
|
|
|
|
*/
|
|
|
|
|
type ColorInformation struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range in the document where this color appers.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Color defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The actual color value for this color range.
|
|
|
|
|
*/
|
|
|
|
|
Color Color `json:"color"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ColorPresentation is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type ColorPresentation struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Label defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The label of this color presentation. It will be shown on the color
|
|
|
|
|
* picker header. By default this is also the text that is inserted when selecting
|
|
|
|
|
* this color presentation.
|
|
|
|
|
*/
|
|
|
|
|
Label string `json:"label"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextEdit defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An [edit](#TextEdit) which is applied to a document when selecting
|
|
|
|
|
* this presentation for the color. When `falsy` the [label](#ColorPresentation.label)
|
|
|
|
|
* is used.
|
|
|
|
|
*/
|
|
|
|
|
TextEdit *TextEdit `json:"textEdit,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*AdditionalTextEdits defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An optional array of additional [text edits](#TextEdit) that are applied when
|
|
|
|
|
* selecting this color presentation. Edits must not overlap with the main [edit](#ColorPresentation.textEdit) nor with themselves.
|
|
|
|
|
*/
|
|
|
|
|
AdditionalTextEdits []TextEdit `json:"additionalTextEdits,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DiagnosticRelatedInformation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents a related message and source code location for a diagnostic. This should be
|
|
|
|
|
* used to point to code locations that cause or related to a diagnostics, e.g when duplicating
|
|
|
|
|
* a symbol in a scope.
|
|
|
|
|
*/
|
|
|
|
|
type DiagnosticRelatedInformation struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Location defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The location of this related diagnostic information.
|
|
|
|
|
*/
|
|
|
|
|
Location Location `json:"location"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Message defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The message of this related diagnostic information.
|
|
|
|
|
*/
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Diagnostic defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents a diagnostic, such as a compiler error or warning. Diagnostic objects
|
|
|
|
|
* are only valid in the scope of a resource.
|
|
|
|
|
*/
|
|
|
|
|
type Diagnostic struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range at which the message applies
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Severity defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* 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 `json:"severity,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Code defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The diagnostic's code, which usually appear in the user interface.
|
|
|
|
|
*/
|
|
|
|
|
Code interface{} `json:"code,omitempty"` // number | string
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Source defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A human-readable string describing the source of this
|
|
|
|
|
* diagnostic, e.g. 'typescript' or 'super lint'. It usually
|
|
|
|
|
* appears in the user interface.
|
|
|
|
|
*/
|
|
|
|
|
Source string `json:"source,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Message defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The diagnostic's message. It usually appears in the user interface
|
|
|
|
|
*/
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Tags defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Additional metadata about the diagnostic.
|
|
|
|
|
*/
|
|
|
|
|
Tags []DiagnosticTag `json:"tags,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RelatedInformation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An array of related diagnostic information, e.g. when symbol-names within
|
|
|
|
|
* a scope collide all definitions can be marked via this property.
|
|
|
|
|
*/
|
|
|
|
|
RelatedInformation []DiagnosticRelatedInformation `json:"relatedInformation,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Command defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents a reference to a command. Provides a title which
|
|
|
|
|
* will be used to represent a command in the UI and, optionally,
|
|
|
|
|
* an array of arguments which will be passed to the command handler
|
|
|
|
|
* function when invoked.
|
|
|
|
|
*/
|
|
|
|
|
type Command struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Title defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Title of the command, like `save`.
|
|
|
|
|
*/
|
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Command defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The identifier of the actual command handler.
|
|
|
|
|
*/
|
|
|
|
|
Command string `json:"command"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Arguments defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Arguments that the command handler should be
|
|
|
|
|
* invoked with.
|
|
|
|
|
*/
|
|
|
|
|
Arguments []interface{} `json:"arguments,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextEdit defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A text edit applicable to a text document.
|
|
|
|
|
*/
|
|
|
|
|
type TextEdit struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range of the text document to be manipulated. To insert
|
|
|
|
|
* text into a document create a range where start === end.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*NewText defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The string to be inserted. For delete operations use an
|
|
|
|
|
* empty string.
|
|
|
|
|
*/
|
|
|
|
|
NewText string `json:"newText"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentEdit defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Describes textual changes on a text document.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentEdit struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The text document to change.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument VersionedTextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Edits defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The edits to be applied.
|
|
|
|
|
*/
|
|
|
|
|
Edits []TextEdit `json:"edits"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ResourceOperation is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type ResourceOperation struct {
|
|
|
|
|
|
|
|
|
|
// Kind is
|
|
|
|
|
Kind string `json:"kind"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CreateFileOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Options to create a file.
|
|
|
|
|
*/
|
|
|
|
|
type CreateFileOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Overwrite defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Overwrite existing file. Overwrite wins over `ignoreIfExists`
|
|
|
|
|
*/
|
|
|
|
|
Overwrite bool `json:"overwrite,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*IgnoreIfExists defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Ignore if exists.
|
|
|
|
|
*/
|
|
|
|
|
IgnoreIfExists bool `json:"ignoreIfExists,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CreateFile defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Create file operation.
|
|
|
|
|
*/
|
|
|
|
|
type CreateFile struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A create
|
|
|
|
|
*/
|
|
|
|
|
Kind string `json:"kind"` // 'create'
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*URI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The resource to create.
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
URI DocumentUri `json:"uri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Options defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Additional options
|
|
|
|
|
*/
|
|
|
|
|
Options *CreateFileOptions `json:"options,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RenameFileOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Rename file options
|
|
|
|
|
*/
|
|
|
|
|
type RenameFileOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Overwrite defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Overwrite target if existing. Overwrite wins over `ignoreIfExists`
|
|
|
|
|
*/
|
|
|
|
|
Overwrite bool `json:"overwrite,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*IgnoreIfExists defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Ignores if target exists.
|
|
|
|
|
*/
|
|
|
|
|
IgnoreIfExists bool `json:"ignoreIfExists,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RenameFile defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Rename file operation
|
|
|
|
|
*/
|
|
|
|
|
type RenameFile struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A rename
|
|
|
|
|
*/
|
|
|
|
|
Kind string `json:"kind"` // 'rename'
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*OldURI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The old (existing) location.
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
OldURI DocumentUri `json:"oldUri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*NewURI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The new location.
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
NewURI DocumentUri `json:"newUri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Options defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Rename options.
|
|
|
|
|
*/
|
|
|
|
|
Options *RenameFileOptions `json:"options,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DeleteFileOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Delete file options
|
|
|
|
|
*/
|
|
|
|
|
type DeleteFileOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Recursive defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Delete the content recursively if a folder is denoted.
|
|
|
|
|
*/
|
|
|
|
|
Recursive bool `json:"recursive,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*IgnoreIfNotExists defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Ignore the operation if the file doesn't exist.
|
|
|
|
|
*/
|
|
|
|
|
IgnoreIfNotExists bool `json:"ignoreIfNotExists,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DeleteFile defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Delete file operation
|
|
|
|
|
*/
|
|
|
|
|
type DeleteFile struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A delete
|
|
|
|
|
*/
|
|
|
|
|
Kind string `json:"kind"` // 'delete'
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*URI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The file to delete.
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
URI DocumentUri `json:"uri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Options defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Delete options.
|
|
|
|
|
*/
|
|
|
|
|
Options *DeleteFileOptions `json:"options,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WorkspaceEdit defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A workspace edit represents changes to many resources managed in the workspace. The edit
|
|
|
|
|
* should either provide `changes` or `documentChanges`. If documentChanges are present
|
|
|
|
|
* they are preferred over `changes` if the client can handle versioned document edits.
|
|
|
|
|
*/
|
|
|
|
|
type WorkspaceEdit struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Changes defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Holds changes to existing resources.
|
|
|
|
|
*/
|
|
|
|
|
Changes *map[string][]TextEdit `json:"changes,omitempty"` // [uri: string]: TextEdit[];
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentChanges defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
DocumentChanges []TextDocumentEdit `json:"documentChanges,omitempty"` // (TextDocumentEdit | CreateFile | RenameFile | DeleteFile)
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextEditChange defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A change to capture text edits for existing resources.
|
|
|
|
|
*/
|
|
|
|
|
type TextEditChange struct {
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentIdentifier defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A literal to identify a text document in the client.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentIdentifier struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*URI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The text document's uri.
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
URI DocumentUri `json:"uri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*VersionedTextDocumentIdentifier defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An identifier to denote a specific version of a text document.
|
|
|
|
|
*/
|
|
|
|
|
type VersionedTextDocumentIdentifier struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Version defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* 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 unknown and the content on disk is the
|
|
|
|
|
* truth (as speced with document content ownership).
|
|
|
|
|
*/
|
|
|
|
|
Version float64 `json:"version"`
|
2019-04-08 07:16:48 -06:00
|
|
|
|
TextDocumentIdentifier
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentItem defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An item to transfer a text document from the client to the
|
|
|
|
|
* server.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentItem struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*URI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The text document's uri.
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
URI DocumentUri `json:"uri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*LanguageID defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The text document's language identifier
|
|
|
|
|
*/
|
|
|
|
|
LanguageID string `json:"languageId"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Version defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The version number of this document (it will increase after each
|
|
|
|
|
* change, including undo/redo).
|
|
|
|
|
*/
|
|
|
|
|
Version float64 `json:"version"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Text defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The content of the opened text document.
|
|
|
|
|
*/
|
|
|
|
|
Text string `json:"text"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*MarkupContent defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* 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:
|
|
|
|
|
* ```ts
|
|
|
|
|
* let markdown: MarkdownContent = {
|
|
|
|
|
* kind: MarkupKind.Markdown,
|
|
|
|
|
* value: [
|
|
|
|
|
* '# Header',
|
|
|
|
|
* 'Some text',
|
|
|
|
|
* '```typescript',
|
|
|
|
|
* 'someCode();',
|
|
|
|
|
* '```'
|
|
|
|
|
* ].join('\n')
|
|
|
|
|
* };
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* *Please Note* that clients might sanitize the return markdown. A client could decide to
|
|
|
|
|
* remove HTML from the markdown to avoid script execution.
|
|
|
|
|
*/
|
|
|
|
|
type MarkupContent struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The type of the Markup
|
|
|
|
|
*/
|
|
|
|
|
Kind MarkupKind `json:"kind"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Value defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The content itself
|
|
|
|
|
*/
|
|
|
|
|
Value string `json:"value"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CompletionItem defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A completion item represents a text snippet that is
|
|
|
|
|
* proposed to complete text that is being typed.
|
|
|
|
|
*/
|
|
|
|
|
type CompletionItem struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Label defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The label of this completion item. By default
|
|
|
|
|
* also the text that is inserted when selecting
|
|
|
|
|
* this completion.
|
|
|
|
|
*/
|
|
|
|
|
Label string `json:"label"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The kind of this completion item. Based of the kind
|
|
|
|
|
* an icon is chosen by the editor.
|
|
|
|
|
*/
|
|
|
|
|
Kind CompletionItemKind `json:"kind,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Detail defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A human-readable string with additional information
|
|
|
|
|
* about this item, like type or symbol information.
|
|
|
|
|
*/
|
|
|
|
|
Detail string `json:"detail,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Documentation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A human-readable string that represents a doc-comment.
|
|
|
|
|
*/
|
|
|
|
|
Documentation string `json:"documentation,omitempty"` // string | MarkupContent
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Deprecated defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Indicates if this item is deprecated.
|
|
|
|
|
*/
|
|
|
|
|
Deprecated bool `json:"deprecated,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Preselect defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Select this item when showing.
|
|
|
|
|
*
|
|
|
|
|
* *Note* that only one completion item can be selected and that the
|
|
|
|
|
* tool / client decides which item that is. The rule is that the *first*
|
|
|
|
|
* item of those that match best is selected.
|
|
|
|
|
*/
|
|
|
|
|
Preselect bool `json:"preselect,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SortText defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A string that should be used when comparing this item
|
|
|
|
|
* with other items. When `falsy` the [label](#CompletionItem.label)
|
|
|
|
|
* is used.
|
|
|
|
|
*/
|
|
|
|
|
SortText string `json:"sortText,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FilterText defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A string that should be used when filtering a set of
|
|
|
|
|
* completion items. When `falsy` the [label](#CompletionItem.label)
|
|
|
|
|
* is used.
|
|
|
|
|
*/
|
|
|
|
|
FilterText string `json:"filterText,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*InsertText defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A string that should be inserted into a document when selecting
|
|
|
|
|
* this completion. When `falsy` the [label](#CompletionItem.label)
|
|
|
|
|
* is used.
|
|
|
|
|
*
|
|
|
|
|
* The `insertText` is subject to interpretation by the client side.
|
|
|
|
|
* Some tools might not take the string literally. For example
|
|
|
|
|
* VS Code when code complete is requested in this example `con<cursor position>`
|
|
|
|
|
* and a completion item with an `insertText` of `console` is provided it
|
|
|
|
|
* will only insert `sole`. Therefore it is recommended to use `textEdit` instead
|
|
|
|
|
* since it avoids additional client side interpretation.
|
|
|
|
|
*/
|
|
|
|
|
InsertText string `json:"insertText,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*InsertTextFormat defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The format of the insert text. The format applies to both the `insertText` property
|
|
|
|
|
* and the `newText` property of a provided `textEdit`.
|
|
|
|
|
*/
|
|
|
|
|
InsertTextFormat InsertTextFormat `json:"insertTextFormat,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextEdit defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An [edit](#TextEdit) which is applied to a document when selecting
|
|
|
|
|
* this completion. When an edit is provided the value of
|
|
|
|
|
* [insertText](#CompletionItem.insertText) is ignored.
|
|
|
|
|
*
|
|
|
|
|
* *Note:* The text edit's range must be a [single line] and it must contain the position
|
|
|
|
|
* at which completion has been requested.
|
|
|
|
|
*/
|
|
|
|
|
TextEdit *TextEdit `json:"textEdit,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*AdditionalTextEdits defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An optional array of additional [text edits](#TextEdit) that are applied when
|
|
|
|
|
* selecting this completion. Edits must not overlap (including the same insert position)
|
|
|
|
|
* with the main [edit](#CompletionItem.textEdit) nor with themselves.
|
|
|
|
|
*
|
|
|
|
|
* Additional text edits should be used to change text unrelated to the current cursor position
|
|
|
|
|
* (for example adding an import statement at the top of the file if the completion item will
|
|
|
|
|
* insert an unqualified type).
|
|
|
|
|
*/
|
|
|
|
|
AdditionalTextEdits []TextEdit `json:"additionalTextEdits,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CommitCharacters defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An optional set of characters that when pressed while this completion is active will accept it first and
|
|
|
|
|
* then type that character. *Note* that all commit characters should have `length=1` and that superfluous
|
|
|
|
|
* characters will be ignored.
|
|
|
|
|
*/
|
|
|
|
|
CommitCharacters []string `json:"commitCharacters,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Command defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An optional [command](#Command) that is executed *after* inserting this completion. *Note* that
|
|
|
|
|
* additional modifications to the current document should be described with the
|
|
|
|
|
* [additionalTextEdits](#CompletionItem.additionalTextEdits)-property.
|
|
|
|
|
*/
|
|
|
|
|
Command *Command `json:"command,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Data defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An data entry field that is preserved on a completion item between
|
|
|
|
|
* a [CompletionRequest](#CompletionRequest) and a [CompletionResolveRequest]
|
|
|
|
|
* (#CompletionResolveRequest)
|
|
|
|
|
*/
|
|
|
|
|
Data interface{} `json:"data,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CompletionList defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents a collection of [completion items](#CompletionItem) to be presented
|
|
|
|
|
* in the editor.
|
|
|
|
|
*/
|
|
|
|
|
type CompletionList struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*IsIncomplete defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* This list it not complete. Further typing results in recomputing this list.
|
|
|
|
|
*/
|
|
|
|
|
IsIncomplete bool `json:"isIncomplete"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Items defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The completion items.
|
|
|
|
|
*/
|
|
|
|
|
Items []CompletionItem `json:"items"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Hover defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The result of a hover request.
|
|
|
|
|
*/
|
|
|
|
|
type Hover struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Contents defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The hover's content
|
|
|
|
|
*/
|
|
|
|
|
Contents MarkupContent `json:"contents"` // MarkupContent | MarkedString | MarkedString[]
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An optional range
|
|
|
|
|
*/
|
|
|
|
|
Range *Range `json:"range,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ParameterInformation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents a parameter of a callable-signature. A parameter can
|
|
|
|
|
* have a label and a doc-comment.
|
|
|
|
|
*/
|
|
|
|
|
type ParameterInformation struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Label defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The label of this parameter information.
|
|
|
|
|
*
|
|
|
|
|
* Either a string or an inclusive start and exclusive end offsets within its containing
|
|
|
|
|
* signature label. (see SignatureInformation.label). The offsets are based on a UTF-16
|
|
|
|
|
* string representation as `Position` and `Range` does.
|
|
|
|
|
*
|
|
|
|
|
* *Note*: a label of type string should be a substring of its containing signature label.
|
|
|
|
|
* Its intended use case is to highlight the parameter label part in the `SignatureInformation.label`.
|
|
|
|
|
*/
|
|
|
|
|
Label string `json:"label"` // string | [number, number]
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Documentation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The human-readable doc-comment of this signature. Will be shown
|
|
|
|
|
* in the UI but can be omitted.
|
|
|
|
|
*/
|
|
|
|
|
Documentation string `json:"documentation,omitempty"` // string | MarkupContent
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SignatureInformation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents the signature of something callable. A signature
|
|
|
|
|
* can have a label, like a function-name, a doc-comment, and
|
|
|
|
|
* a set of parameters.
|
|
|
|
|
*/
|
|
|
|
|
type SignatureInformation struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Label defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The label of this signature. Will be shown in
|
|
|
|
|
* the UI.
|
|
|
|
|
*/
|
|
|
|
|
Label string `json:"label"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Documentation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The human-readable doc-comment of this signature. Will be shown
|
|
|
|
|
* in the UI but can be omitted.
|
|
|
|
|
*/
|
|
|
|
|
Documentation string `json:"documentation,omitempty"` // string | MarkupContent
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Parameters defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters of this signature.
|
|
|
|
|
*/
|
|
|
|
|
Parameters []ParameterInformation `json:"parameters,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SignatureHelp defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Signature help represents the signature of something
|
|
|
|
|
* callable. There can be multiple signature but only one
|
|
|
|
|
* active and only one active parameter.
|
|
|
|
|
*/
|
|
|
|
|
type SignatureHelp struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Signatures defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* One or more signatures.
|
|
|
|
|
*/
|
|
|
|
|
Signatures []SignatureInformation `json:"signatures"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ActiveSignature defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The active signature. Set to `null` if no
|
|
|
|
|
* signatures exist.
|
|
|
|
|
*/
|
|
|
|
|
ActiveSignature float64 `json:"activeSignature"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ActiveParameter defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The active parameter of the active signature. Set to `null`
|
|
|
|
|
* if the active signature has no parameters.
|
|
|
|
|
*/
|
|
|
|
|
ActiveParameter float64 `json:"activeParameter"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ReferenceContext defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Value-object that contains additional information when
|
|
|
|
|
* requesting references.
|
|
|
|
|
*/
|
|
|
|
|
type ReferenceContext struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*IncludeDeclaration defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Include the declaration of the current symbol.
|
|
|
|
|
*/
|
|
|
|
|
IncludeDeclaration bool `json:"includeDeclaration"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentHighlight defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A document highlight is a range inside a text document which deserves
|
|
|
|
|
* special attention. Usually a document highlight is visualized by changing
|
|
|
|
|
* the background color of its range.
|
|
|
|
|
*/
|
|
|
|
|
type DocumentHighlight struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range this highlight applies to.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The highlight kind, default is [text](#DocumentHighlightKind.Text).
|
|
|
|
|
*/
|
|
|
|
|
Kind *DocumentHighlightKind `json:"kind,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SymbolInformation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents information about programming constructs like variables, classes,
|
|
|
|
|
* interfaces etc.
|
|
|
|
|
*/
|
|
|
|
|
type SymbolInformation struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Name defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The name of this symbol.
|
|
|
|
|
*/
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The kind of this symbol.
|
|
|
|
|
*/
|
|
|
|
|
Kind SymbolKind `json:"kind"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Deprecated defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Indicates if this symbol is deprecated.
|
|
|
|
|
*/
|
|
|
|
|
Deprecated bool `json:"deprecated,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Location defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The location of this symbol. The location's range is used by a tool
|
|
|
|
|
* to reveal the location in the editor. If the symbol is selected in the
|
|
|
|
|
* tool the range's start information is used to position the cursor. So
|
|
|
|
|
* the range usually spans more than the actual symbol's name and does
|
|
|
|
|
* normally include thinks like visibility modifiers.
|
|
|
|
|
*
|
|
|
|
|
* The range doesn't have to denote a node range in the sense of a abstract
|
|
|
|
|
* syntax tree. It can therefore not be used to re-construct a hierarchy of
|
|
|
|
|
* the symbols.
|
|
|
|
|
*/
|
|
|
|
|
Location Location `json:"location"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*ContainerName defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The name of the symbol containing this symbol. This information is for
|
|
|
|
|
* user interface purposes (e.g. to render a qualifier in the user interface
|
|
|
|
|
* if necessary). It can't be used to re-infer a hierarchy for the document
|
|
|
|
|
* symbols.
|
|
|
|
|
*/
|
|
|
|
|
ContainerName string `json:"containerName,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentSymbol defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Represents programming constructs like variables, classes, interfaces etc.
|
|
|
|
|
* that appear in a document. Document symbols can be hierarchical and they
|
|
|
|
|
* have two ranges: one that encloses its definition and one that points to
|
|
|
|
|
* its most interesting range, e.g. the range of an identifier.
|
|
|
|
|
*/
|
|
|
|
|
type DocumentSymbol struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Name defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The name of this symbol. Will be displayed in the user interface and therefore must not be
|
|
|
|
|
* an empty string or a string only consisting of white spaces.
|
|
|
|
|
*/
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Detail defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* More detail for this symbol, e.g the signature of a function.
|
|
|
|
|
*/
|
|
|
|
|
Detail string `json:"detail,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The kind of this symbol.
|
|
|
|
|
*/
|
|
|
|
|
Kind SymbolKind `json:"kind"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Deprecated defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Indicates if this symbol is deprecated.
|
|
|
|
|
*/
|
|
|
|
|
Deprecated bool `json:"deprecated,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range enclosing this symbol not including leading/trailing whitespace but everything else
|
|
|
|
|
* like comments. This information is typically used to determine if the the clients cursor is
|
|
|
|
|
* inside the symbol to reveal in the symbol in the UI.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SelectionRange defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
|
|
|
|
|
* Must be contained by the the `range`.
|
|
|
|
|
*/
|
|
|
|
|
SelectionRange Range `json:"selectionRange"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Children defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Children of this symbol, e.g. properties of a class.
|
|
|
|
|
*/
|
|
|
|
|
Children []DocumentSymbol `json:"children,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentSymbolParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Parameters for a [DocumentSymbolRequest](#DocumentSymbolRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentSymbolParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*WorkspaceSymbolParams defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The parameters of a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
|
|
|
*/
|
|
|
|
|
type WorkspaceSymbolParams struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Query defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A non-empty query string
|
|
|
|
|
*/
|
|
|
|
|
Query string `json:"query"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeActionContext defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Contains additional diagnostic information about the context in which
|
|
|
|
|
* a [code action](#CodeActionProvider.provideCodeActions) is run.
|
|
|
|
|
*/
|
|
|
|
|
type CodeActionContext struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Diagnostics defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An array of diagnostics known on the client side overlapping the range provided to the
|
|
|
|
|
* `textDocument/codeAction` request. They are provied so that the server knows which
|
|
|
|
|
* errors are currently presented to the user for the given range. There is no guarantee
|
|
|
|
|
* that these accurately reflect the error state of the resource. The primary parameter
|
|
|
|
|
* to compute code actions is the provided range.
|
|
|
|
|
*/
|
|
|
|
|
Diagnostics []Diagnostic `json:"diagnostics"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Only defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Requested kind of actions to return.
|
|
|
|
|
*
|
|
|
|
|
* Actions not of this kind are filtered out by the client before being shown. So servers
|
|
|
|
|
* can omit computing them.
|
|
|
|
|
*/
|
|
|
|
|
Only []CodeActionKind `json:"only,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeAction defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A code action represents a change that can be performed in code, e.g. to fix a problem or
|
|
|
|
|
* to refactor code.
|
|
|
|
|
*
|
|
|
|
|
* A CodeAction must set either `edit` and/or a `command`. If both are supplied, the `edit` is applied first, then the `command` is executed.
|
|
|
|
|
*/
|
|
|
|
|
type CodeAction struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Title defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A short, human-readable, title for this code action.
|
|
|
|
|
*/
|
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Kind defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The kind of the code action.
|
|
|
|
|
*
|
|
|
|
|
* Used to filter code actions.
|
|
|
|
|
*/
|
|
|
|
|
Kind CodeActionKind `json:"kind,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Diagnostics defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The diagnostics that this code action resolves.
|
|
|
|
|
*/
|
|
|
|
|
Diagnostics []Diagnostic `json:"diagnostics,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Edit defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The workspace edit this code action performs.
|
|
|
|
|
*/
|
|
|
|
|
Edit *WorkspaceEdit `json:"edit,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Command defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A command this code action executes. If a code action
|
|
|
|
|
* provides a edit and a command, first the edit is
|
|
|
|
|
* executed and then the command.
|
|
|
|
|
*/
|
|
|
|
|
Command *Command `json:"command,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*CodeLens defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A code lens represents a [command](#Command) that should be shown along with
|
|
|
|
|
* source text, like the number of references, a way to run tests, etc.
|
|
|
|
|
*
|
|
|
|
|
* A code lens is _unresolved_ when no command is associated to it. For performance
|
|
|
|
|
* reasons the creation of a code lens and resolving should be done to two stages.
|
|
|
|
|
*/
|
|
|
|
|
type CodeLens struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range in which this code lens is valid. Should only span a single line.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Command defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The command this code lens represents.
|
|
|
|
|
*/
|
|
|
|
|
Command *Command `json:"command,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Data defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An data entry field that is preserved on a code lens item between
|
|
|
|
|
* a [CodeLensRequest](#CodeLensRequest) and a [CodeLensResolveRequest]
|
|
|
|
|
* (#CodeLensResolveRequest)
|
|
|
|
|
*/
|
|
|
|
|
Data interface{} `json:"data,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FormattingOptions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Value-object describing what options formatting should use.
|
|
|
|
|
*/
|
|
|
|
|
type FormattingOptions struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TabSize defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Size of a tab in spaces.
|
|
|
|
|
*/
|
|
|
|
|
TabSize float64 `json:"tabSize"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*InsertSpaces defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Prefer spaces over tabs.
|
|
|
|
|
*/
|
|
|
|
|
InsertSpaces bool `json:"insertSpaces"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TrimTrailingWhitespace defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Trim trailing whitespaces on a line.
|
|
|
|
|
*/
|
|
|
|
|
TrimTrailingWhitespace bool `json:"trimTrailingWhitespace,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*InsertFinalNewline defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Insert a newline character at the end of the file if one does not exist.
|
|
|
|
|
*/
|
|
|
|
|
InsertFinalNewline bool `json:"insertFinalNewline,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TrimFinalNewlines defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Trim all newlines after the final newline at the end of the file.
|
|
|
|
|
*/
|
|
|
|
|
TrimFinalNewlines bool `json:"trimFinalNewlines,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Key defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Signature for further properties.
|
|
|
|
|
*/
|
|
|
|
|
Key map[string]bool `json:"key"` // [key: string]: boolean | number | string | undefined;
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*DocumentLink defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A document link is a range in a text document that links to an internal or external resource, like another
|
|
|
|
|
* text document or a web site.
|
|
|
|
|
*/
|
|
|
|
|
type DocumentLink struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range this link applies to.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Target defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The uri this link points to.
|
|
|
|
|
*/
|
|
|
|
|
Target string `json:"target,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Data defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A data entry field that is preserved on a document link between a
|
|
|
|
|
* DocumentLinkRequest and a DocumentLinkResolveRequest.
|
|
|
|
|
*/
|
|
|
|
|
Data interface{} `json:"data,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-11 12:53:13 -06:00
|
|
|
|
/*SelectionRange defined:
|
|
|
|
|
* A selection range represents a part of a selection hierarchy. A selection range
|
|
|
|
|
* may have a parent selection range that contains it.
|
|
|
|
|
*/
|
|
|
|
|
type SelectionRange struct {
|
|
|
|
|
|
|
|
|
|
/*Range defined:
|
|
|
|
|
* The [range](#Range) of this selection range.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
|
|
|
|
|
/*Parent defined:
|
|
|
|
|
* The parent selection range containing this range. Therefore `parent.range` must contain `this.range`.
|
|
|
|
|
*/
|
|
|
|
|
Parent *SelectionRange `json:"parent,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocument defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A simple text document. Not to be implemented.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocument struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*URI defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The associated URI for this document. Most documents have the __file__-scheme, indicating that they
|
|
|
|
|
* represent files on disk. However, some documents may have other schemes indicating that they are not
|
|
|
|
|
* available on disk.
|
|
|
|
|
*
|
|
|
|
|
* @readonly
|
|
|
|
|
*/
|
2019-07-11 12:53:13 -06:00
|
|
|
|
URI DocumentUri `json:"uri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*LanguageID defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The identifier of the language associated with this document.
|
|
|
|
|
*
|
|
|
|
|
* @readonly
|
|
|
|
|
*/
|
|
|
|
|
LanguageID string `json:"languageId"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Version defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The version number of this document (it will increase after each
|
|
|
|
|
* change, including undo/redo).
|
|
|
|
|
*
|
|
|
|
|
* @readonly
|
|
|
|
|
*/
|
|
|
|
|
Version float64 `json:"version"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*LineCount defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The number of lines in this document.
|
|
|
|
|
*
|
|
|
|
|
* @readonly
|
|
|
|
|
*/
|
|
|
|
|
LineCount float64 `json:"lineCount"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentChangeEvent defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Event to signal changes to a simple text document.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentChangeEvent struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Document defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document that has changed.
|
|
|
|
|
*/
|
|
|
|
|
Document TextDocument `json:"document"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// TextDocumentWillSaveEvent is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
type TextDocumentWillSaveEvent struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Document defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The document that will be saved
|
|
|
|
|
*/
|
|
|
|
|
Document TextDocument `json:"document"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Reason defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The reason why save was triggered.
|
|
|
|
|
*/
|
|
|
|
|
Reason TextDocumentSaveReason `json:"reason"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextDocumentContentChangeEvent defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An event describing a change to a text document. If range and rangeLength are omitted
|
|
|
|
|
* the new text is considered to be the full content of the document.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentContentChangeEvent struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Range defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The range of the document that changed.
|
|
|
|
|
*/
|
|
|
|
|
Range *Range `json:"range,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RangeLength defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The length of the range that got replaced.
|
|
|
|
|
*/
|
|
|
|
|
RangeLength float64 `json:"rangeLength,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Text defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The new text of the document.
|
|
|
|
|
*/
|
|
|
|
|
Text string `json:"text"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-04-23 08:05:23 -06:00
|
|
|
|
// SetTraceParams is
|
|
|
|
|
type SetTraceParams struct {
|
|
|
|
|
|
|
|
|
|
// Value is
|
|
|
|
|
Value TraceValues `json:"value"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LogTraceParams is
|
|
|
|
|
type LogTraceParams struct {
|
|
|
|
|
|
|
|
|
|
// Message is
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
|
|
|
|
|
// Verbose is
|
|
|
|
|
Verbose string `json:"verbose,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Tracer is
|
|
|
|
|
type Tracer struct {
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-11 10:17:05 -06:00
|
|
|
|
// FoldingRangeKind defines constants
|
|
|
|
|
type FoldingRangeKind string
|
|
|
|
|
|
|
|
|
|
// ResourceOperationKind defines constants
|
|
|
|
|
type ResourceOperationKind string
|
|
|
|
|
|
|
|
|
|
// FailureHandlingKind defines constants
|
|
|
|
|
type FailureHandlingKind string
|
|
|
|
|
|
|
|
|
|
// TextDocumentSyncKind defines constants
|
|
|
|
|
type TextDocumentSyncKind float64
|
|
|
|
|
|
|
|
|
|
// InitializeError defines constants
|
|
|
|
|
type InitializeError float64
|
|
|
|
|
|
|
|
|
|
// MessageType defines constants
|
|
|
|
|
type MessageType float64
|
|
|
|
|
|
|
|
|
|
// FileChangeType defines constants
|
|
|
|
|
type FileChangeType float64
|
|
|
|
|
|
|
|
|
|
// WatchKind defines constants
|
|
|
|
|
type WatchKind float64
|
|
|
|
|
|
|
|
|
|
// CompletionTriggerKind defines constants
|
|
|
|
|
type CompletionTriggerKind float64
|
|
|
|
|
|
|
|
|
|
// DiagnosticSeverity defines constants
|
|
|
|
|
type DiagnosticSeverity float64
|
|
|
|
|
|
|
|
|
|
// DiagnosticTag defines constants
|
|
|
|
|
type DiagnosticTag float64
|
|
|
|
|
|
|
|
|
|
// MarkupKind defines constants
|
|
|
|
|
type MarkupKind string
|
|
|
|
|
|
|
|
|
|
// CompletionItemKind defines constants
|
|
|
|
|
type CompletionItemKind float64
|
|
|
|
|
|
|
|
|
|
// InsertTextFormat defines constants
|
|
|
|
|
type InsertTextFormat float64
|
|
|
|
|
|
|
|
|
|
// DocumentHighlightKind defines constants
|
|
|
|
|
type DocumentHighlightKind float64
|
|
|
|
|
|
|
|
|
|
// SymbolKind defines constants
|
|
|
|
|
type SymbolKind float64
|
|
|
|
|
|
|
|
|
|
// CodeActionKind defines constants
|
|
|
|
|
type CodeActionKind string
|
|
|
|
|
|
|
|
|
|
// TextDocumentSaveReason defines constants
|
|
|
|
|
type TextDocumentSaveReason float64
|
|
|
|
|
|
2019-04-23 08:05:23 -06:00
|
|
|
|
// ErrorCodes defines constants
|
|
|
|
|
type ErrorCodes float64
|
|
|
|
|
|
|
|
|
|
// Touch defines constants
|
|
|
|
|
type Touch float64
|
|
|
|
|
|
|
|
|
|
// Trace defines constants
|
|
|
|
|
type Trace string
|
|
|
|
|
|
|
|
|
|
// TraceFormat defines constants
|
|
|
|
|
type TraceFormat string
|
|
|
|
|
|
|
|
|
|
// ConnectionErrors defines constants
|
|
|
|
|
type ConnectionErrors float64
|
|
|
|
|
|
|
|
|
|
// ConnectionState defines constants
|
|
|
|
|
type ConnectionState float64
|
|
|
|
|
|
2019-03-11 10:17:05 -06:00
|
|
|
|
const (
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Comment defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Folding range for a comment
|
|
|
|
|
*/
|
|
|
|
|
Comment FoldingRangeKind = "comment"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Imports defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Folding range for a imports or includes
|
|
|
|
|
*/
|
|
|
|
|
Imports FoldingRangeKind = "imports"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Region defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Folding range for a region (e.g. `#region`)
|
|
|
|
|
*/
|
|
|
|
|
Region FoldingRangeKind = "region"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Create defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Supports creating new files and folders.
|
|
|
|
|
*/
|
|
|
|
|
Create ResourceOperationKind = "create"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Rename defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Supports renaming existing files and folders.
|
|
|
|
|
*/
|
|
|
|
|
Rename ResourceOperationKind = "rename"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Delete defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Supports deleting existing files and folders.
|
|
|
|
|
*/
|
|
|
|
|
Delete ResourceOperationKind = "delete"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Abort defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Applying the workspace change is simply aborted if one of the changes provided
|
|
|
|
|
* fails. All operations executed before the failing operation stay executed.
|
|
|
|
|
*/
|
|
|
|
|
Abort FailureHandlingKind = "abort"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Transactional defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* All operations are executed transactional. That means they either all
|
|
|
|
|
* succeed or no changes at all are applied to the workspace.
|
|
|
|
|
*/
|
|
|
|
|
Transactional FailureHandlingKind = "transactional"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TextOnlyTransactional defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* 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 startegy is abort.
|
|
|
|
|
*/
|
|
|
|
|
TextOnlyTransactional FailureHandlingKind = "textOnlyTransactional"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Undo defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client tries to undo the operations already executed. But there is no
|
|
|
|
|
* guaruntee that this is succeeding.
|
|
|
|
|
*/
|
|
|
|
|
Undo FailureHandlingKind = "undo"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*None defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Documents should not be synced at all.
|
|
|
|
|
*/
|
|
|
|
|
None TextDocumentSyncKind = 0
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Full defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Documents are synced by always sending the full content
|
|
|
|
|
* of the document.
|
|
|
|
|
*/
|
|
|
|
|
Full TextDocumentSyncKind = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Incremental defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Documents are synced by sending the full content on open.
|
|
|
|
|
* After that only incremental updates to the document are
|
|
|
|
|
* send.
|
|
|
|
|
*/
|
|
|
|
|
Incremental TextDocumentSyncKind = 2
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*UnknownProtocolVersion defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* If the protocol version provided by the client can't be handled by the server.
|
|
|
|
|
* @deprecated This initialize error got replaced by client capabilities. There is
|
|
|
|
|
* no version handshake in version 3.0x
|
|
|
|
|
*/
|
|
|
|
|
UnknownProtocolVersion InitializeError = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Error defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An error message.
|
|
|
|
|
*/
|
|
|
|
|
Error MessageType = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Warning defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A warning message.
|
|
|
|
|
*/
|
|
|
|
|
Warning MessageType = 2
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Info defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An information message.
|
|
|
|
|
*/
|
|
|
|
|
Info MessageType = 3
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Log defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A log message.
|
|
|
|
|
*/
|
|
|
|
|
Log MessageType = 4
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Created defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The file got created.
|
|
|
|
|
*/
|
|
|
|
|
Created FileChangeType = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Changed defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The file got changed.
|
|
|
|
|
*/
|
|
|
|
|
Changed FileChangeType = 2
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Deleted defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The file got deleted.
|
|
|
|
|
*/
|
|
|
|
|
Deleted FileChangeType = 3
|
|
|
|
|
|
2019-07-15 10:10:48 -06:00
|
|
|
|
/*WatchCreate defined:
|
|
|
|
|
* Interested in create events.
|
|
|
|
|
*/
|
|
|
|
|
WatchCreate WatchKind = 1
|
|
|
|
|
|
|
|
|
|
/*WatchChange defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Interested in change events
|
|
|
|
|
*/
|
2019-07-15 10:10:48 -06:00
|
|
|
|
WatchChange WatchKind = 2
|
|
|
|
|
|
|
|
|
|
/*WatchDelete defined:
|
|
|
|
|
* Interested in delete events
|
|
|
|
|
*/
|
|
|
|
|
WatchDelete WatchKind = 4
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Invoked defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Completion was triggered by typing an identifier (24x7 code
|
|
|
|
|
* complete), manual invocation (e.g Ctrl+Space) or via API.
|
|
|
|
|
*/
|
|
|
|
|
Invoked CompletionTriggerKind = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TriggerCharacter defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Completion was triggered by a trigger character specified by
|
|
|
|
|
* the `triggerCharacters` properties of the `CompletionRegistrationOptions`.
|
|
|
|
|
*/
|
|
|
|
|
TriggerCharacter CompletionTriggerKind = 2
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*TriggerForIncompleteCompletions defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Completion was re-triggered as current completion list is incomplete
|
|
|
|
|
*/
|
|
|
|
|
TriggerForIncompleteCompletions CompletionTriggerKind = 3
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SeverityError defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Reports an error.
|
|
|
|
|
*/
|
|
|
|
|
SeverityError DiagnosticSeverity = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SeverityWarning defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Reports a warning.
|
|
|
|
|
*/
|
|
|
|
|
SeverityWarning DiagnosticSeverity = 2
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SeverityInformation defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Reports an information.
|
|
|
|
|
*/
|
|
|
|
|
SeverityInformation DiagnosticSeverity = 3
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SeverityHint defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Reports a hint.
|
|
|
|
|
*/
|
|
|
|
|
SeverityHint DiagnosticSeverity = 4
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Unnecessary defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Unused or unnecessary code.
|
|
|
|
|
*
|
|
|
|
|
* Clients are allowed to render diagnostics with this tag faded out instead of having
|
|
|
|
|
* an error squiggle.
|
|
|
|
|
*/
|
|
|
|
|
Unnecessary DiagnosticTag = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*PlainText defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Plain text is supported as a content format
|
|
|
|
|
*/
|
|
|
|
|
PlainText MarkupKind = "plaintext"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Markdown defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Markdown is supported as a content format
|
|
|
|
|
*/
|
|
|
|
|
Markdown MarkupKind = "markdown"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// TextCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
TextCompletion CompletionItemKind = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// MethodCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
MethodCompletion CompletionItemKind = 2
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// FunctionCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
FunctionCompletion CompletionItemKind = 3
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ConstructorCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
ConstructorCompletion CompletionItemKind = 4
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// FieldCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
FieldCompletion CompletionItemKind = 5
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// VariableCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
VariableCompletion CompletionItemKind = 6
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ClassCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
ClassCompletion CompletionItemKind = 7
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// InterfaceCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
InterfaceCompletion CompletionItemKind = 8
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ModuleCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
ModuleCompletion CompletionItemKind = 9
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// PropertyCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
PropertyCompletion CompletionItemKind = 10
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// UnitCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
UnitCompletion CompletionItemKind = 11
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ValueCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
ValueCompletion CompletionItemKind = 12
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// EnumCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
EnumCompletion CompletionItemKind = 13
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// KeywordCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
KeywordCompletion CompletionItemKind = 14
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// SnippetCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
SnippetCompletion CompletionItemKind = 15
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ColorCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
ColorCompletion CompletionItemKind = 16
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// FileCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
FileCompletion CompletionItemKind = 17
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ReferenceCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
ReferenceCompletion CompletionItemKind = 18
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// FolderCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
FolderCompletion CompletionItemKind = 19
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// EnumMemberCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
EnumMemberCompletion CompletionItemKind = 20
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// ConstantCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
ConstantCompletion CompletionItemKind = 21
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// StructCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
StructCompletion CompletionItemKind = 22
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// EventCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
EventCompletion CompletionItemKind = 23
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// OperatorCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
OperatorCompletion CompletionItemKind = 24
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// TypeParameterCompletion is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
TypeParameterCompletion CompletionItemKind = 25
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*PlainTextTextFormat defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The primary text to be inserted is treated as a plain string.
|
|
|
|
|
*/
|
|
|
|
|
PlainTextTextFormat InsertTextFormat = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SnippetTextFormat defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The primary text to be inserted is treated as a snippet.
|
|
|
|
|
*
|
|
|
|
|
* A snippet can define tab stops and placeholders with `$1`, `$2`
|
|
|
|
|
* and `${3:foo}`. `$0` defines the final tab stop, it defaults to
|
|
|
|
|
* the end of the snippet. Placeholders with equal identifiers are linked,
|
|
|
|
|
* that is typing in one will update others too.
|
|
|
|
|
*
|
|
|
|
|
* See also: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/snippet/common/snippet.md
|
|
|
|
|
*/
|
|
|
|
|
SnippetTextFormat InsertTextFormat = 2
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Text defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* A textual occurrence.
|
|
|
|
|
*/
|
|
|
|
|
Text DocumentHighlightKind = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Read defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Read-access of a symbol, like reading a variable.
|
|
|
|
|
*/
|
|
|
|
|
Read DocumentHighlightKind = 2
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Write defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Write-access of a symbol, like writing to a variable.
|
|
|
|
|
*/
|
|
|
|
|
Write DocumentHighlightKind = 3
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// File is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
File SymbolKind = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Module is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Module SymbolKind = 2
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Namespace is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Namespace SymbolKind = 3
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Package is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Package SymbolKind = 4
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Class is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Class SymbolKind = 5
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Method is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Method SymbolKind = 6
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Property is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Property SymbolKind = 7
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Field is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Field SymbolKind = 8
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Constructor is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Constructor SymbolKind = 9
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Enum is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Enum SymbolKind = 10
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Interface is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Interface SymbolKind = 11
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Function is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Function SymbolKind = 12
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Variable is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Variable SymbolKind = 13
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Constant is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Constant SymbolKind = 14
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// String is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
String SymbolKind = 15
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Number is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Number SymbolKind = 16
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Boolean is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Boolean SymbolKind = 17
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Array is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Array SymbolKind = 18
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Object is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Object SymbolKind = 19
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Key is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Key SymbolKind = 20
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Null is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Null SymbolKind = 21
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// EnumMember is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
EnumMember SymbolKind = 22
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Struct is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Struct SymbolKind = 23
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Event is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Event SymbolKind = 24
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// Operator is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Operator SymbolKind = 25
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
// TypeParameter is
|
2019-03-11 10:17:05 -06:00
|
|
|
|
TypeParameter SymbolKind = 26
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*QuickFix defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Base kind for quickfix actions: 'quickfix'
|
|
|
|
|
*/
|
|
|
|
|
QuickFix CodeActionKind = "quickfix"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Refactor defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Base kind for refactoring actions: 'refactor'
|
|
|
|
|
*/
|
|
|
|
|
Refactor CodeActionKind = "refactor"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RefactorExtract defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Base kind for refactoring extraction actions: 'refactor.extract'
|
|
|
|
|
*
|
|
|
|
|
* Example extract actions:
|
|
|
|
|
*
|
|
|
|
|
* - Extract method
|
|
|
|
|
* - Extract function
|
|
|
|
|
* - Extract variable
|
|
|
|
|
* - Extract interface from class
|
|
|
|
|
* - ...
|
|
|
|
|
*/
|
|
|
|
|
RefactorExtract CodeActionKind = "refactor.extract"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RefactorInline defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Base kind for refactoring inline actions: 'refactor.inline'
|
|
|
|
|
*
|
|
|
|
|
* Example inline actions:
|
|
|
|
|
*
|
|
|
|
|
* - Inline function
|
|
|
|
|
* - Inline variable
|
|
|
|
|
* - Inline constant
|
|
|
|
|
* - ...
|
|
|
|
|
*/
|
|
|
|
|
RefactorInline CodeActionKind = "refactor.inline"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*RefactorRewrite defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Base kind for refactoring rewrite actions: 'refactor.rewrite'
|
|
|
|
|
*
|
|
|
|
|
* Example rewrite actions:
|
|
|
|
|
*
|
|
|
|
|
* - Convert JavaScript function to class
|
|
|
|
|
* - Add or remove parameter
|
|
|
|
|
* - Encapsulate field
|
|
|
|
|
* - Make method static
|
|
|
|
|
* - Move method to base class
|
|
|
|
|
* - ...
|
|
|
|
|
*/
|
|
|
|
|
RefactorRewrite CodeActionKind = "refactor.rewrite"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Source defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Base kind for source actions: `source`
|
|
|
|
|
*
|
|
|
|
|
* Source code actions apply to the entire file.
|
|
|
|
|
*/
|
|
|
|
|
Source CodeActionKind = "source"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*SourceOrganizeImports defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Base kind for an organize imports source action: `source.organizeImports`
|
|
|
|
|
*/
|
|
|
|
|
SourceOrganizeImports CodeActionKind = "source.organizeImports"
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Manual defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Manually triggered, e.g. by the user pressing save, by starting debugging,
|
|
|
|
|
* or by an API call.
|
|
|
|
|
*/
|
|
|
|
|
Manual TextDocumentSaveReason = 1
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*AfterDelay defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Automatic after a delay.
|
|
|
|
|
*/
|
|
|
|
|
AfterDelay TextDocumentSaveReason = 2
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*FocusOut defined:
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* When the editor lost focus.
|
|
|
|
|
*/
|
|
|
|
|
FocusOut TextDocumentSaveReason = 3
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
|
|
|
|
// MessageWriteError is
|
|
|
|
|
MessageWriteError ErrorCodes = 1
|
|
|
|
|
|
|
|
|
|
// MessageReadError is
|
|
|
|
|
MessageReadError ErrorCodes = 2
|
|
|
|
|
|
|
|
|
|
// First is
|
|
|
|
|
First Touch = 1
|
|
|
|
|
|
|
|
|
|
// Last is
|
|
|
|
|
Last Touch = 2
|
|
|
|
|
|
|
|
|
|
// JSON is
|
|
|
|
|
JSON TraceFormat = "json"
|
|
|
|
|
|
|
|
|
|
/*Closed defined:
|
|
|
|
|
* The connection is closed.
|
|
|
|
|
*/
|
|
|
|
|
Closed ConnectionErrors = 1
|
|
|
|
|
|
|
|
|
|
/*Disposed defined:
|
|
|
|
|
* The connection got disposed.
|
|
|
|
|
*/
|
|
|
|
|
Disposed ConnectionErrors = 2
|
|
|
|
|
|
|
|
|
|
/*AlreadyListening defined:
|
|
|
|
|
* The connection is already in listening mode.
|
|
|
|
|
*/
|
|
|
|
|
AlreadyListening ConnectionErrors = 3
|
|
|
|
|
|
|
|
|
|
// New is
|
|
|
|
|
New ConnectionState = 1
|
|
|
|
|
|
|
|
|
|
// Listening is
|
|
|
|
|
Listening ConnectionState = 2
|
2019-03-11 10:17:05 -06:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// DocumentFilter is a type
|
|
|
|
|
/**
|
|
|
|
|
* A document filter denotes a document by different properties like
|
|
|
|
|
* the [language](#TextDocument.languageId), the [scheme](#Uri.scheme) of
|
|
|
|
|
* its resource, or a glob-pattern that is applied to the [path](#TextDocument.fileName).
|
|
|
|
|
*
|
|
|
|
|
* 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`)
|
|
|
|
|
*
|
|
|
|
|
* @sample A language filter that applies to typescript files on disk: `{ language: 'typescript', scheme: 'file' }`
|
|
|
|
|
* @sample A language filter that applies to all package.json paths: `{ language: 'json', pattern: '**package.json' }`
|
|
|
|
|
*/
|
|
|
|
|
type DocumentFilter struct {
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Language defined: A language id, like `typescript`. */
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Language string `json:"language,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Scheme defined: A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Scheme string `json:"scheme,omitempty"`
|
|
|
|
|
|
2019-04-08 07:16:48 -06:00
|
|
|
|
/*Pattern defined: A glob pattern, like `*.{ts,js}`. */
|
2019-03-11 10:17:05 -06:00
|
|
|
|
Pattern string `json:"pattern,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// DocumentSelector is a type
|
|
|
|
|
/**
|
|
|
|
|
* A document selector is the combination of one or many document filters.
|
|
|
|
|
*
|
|
|
|
|
* @sample `let sel:DocumentSelector = [{ language: 'typescript' }, { language: 'json', pattern: '**∕tsconfig.json' }]`;
|
|
|
|
|
*/
|
|
|
|
|
type DocumentSelector []DocumentFilter
|
|
|
|
|
|
2019-07-11 12:53:13 -06:00
|
|
|
|
// DocumentURI is a type
|
|
|
|
|
/**
|
|
|
|
|
* A tagging type for string properties that are actually URIs.
|
|
|
|
|
*/
|
|
|
|
|
type DocumentURI string
|
|
|
|
|
|
2019-03-11 10:17:05 -06:00
|
|
|
|
// DefinitionLink is a type
|
|
|
|
|
/**
|
|
|
|
|
* Information about where a symbol is defined.
|
|
|
|
|
*
|
|
|
|
|
* Provides additional metadata over normal [location](#Location) definitions, including the range of
|
|
|
|
|
* the defining symbol
|
|
|
|
|
*/
|
|
|
|
|
type DefinitionLink LocationLink
|
|
|
|
|
|
|
|
|
|
// DeclarationLink is a type
|
|
|
|
|
/**
|
|
|
|
|
* Information about where a symbol is declared.
|
|
|
|
|
*
|
|
|
|
|
* Provides additional metadata over normal [location](#Location) declarations, including the range of
|
|
|
|
|
* the declaring symbol.
|
|
|
|
|
*
|
|
|
|
|
* Servers should prefer returning `DeclarationLink` over `Declaration` if supported
|
|
|
|
|
* by the client.
|
|
|
|
|
*/
|
|
|
|
|
type DeclarationLink LocationLink
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
|
|
|
|
// LSPMessageType is a type
|
|
|
|
|
/**
|
|
|
|
|
* A LSP Log Entry.
|
|
|
|
|
*/
|
|
|
|
|
type LSPMessageType string
|
|
|
|
|
|
|
|
|
|
// TraceValues is a type
|
|
|
|
|
type TraceValues string
|