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
|
2020-03-09 10:51:18 -06:00
|
|
|
|
// commit: 151b520c995ee3d76729b5c46258ab273d989726
|
2020-03-30 15:09:42 -06:00
|
|
|
|
// last fetched Mon Mar 30 2020 21:01:17 GMT-0400 (Eastern 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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters passed via a apply workspace edit request.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ApplyWorkspaceEditParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Label string `json:"label,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The edits to apply.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Edit WorkspaceEdit `json:"edit"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A response returned from the apply workspace edit request.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ApplyWorkspaceEditResponse struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Indicates whether the edit was applied or not.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Applied bool `json:"applied"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
FailureReason string `json:"failureReason,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
FailedChange float64 `json:"failedChange,omitempty"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2020-01-27 06:23:25 -07:00
|
|
|
|
/**
|
|
|
|
|
* Represents an incoming call, e.g. a caller of a method or constructor.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type CallHierarchyIncomingCall struct {
|
|
|
|
|
/**
|
|
|
|
|
* The item that makes the call.
|
|
|
|
|
*/
|
|
|
|
|
From CallHierarchyItem `json:"from"`
|
|
|
|
|
/**
|
|
|
|
|
* The range at which at which the calls appears. This is relative to the caller
|
|
|
|
|
* denoted by [`this.from`](#CallHierarchyIncomingCall.from).
|
|
|
|
|
*/
|
|
|
|
|
FromRanges []Range `json:"fromRanges"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The parameter of a `callHierarchy/incomingCalls` request.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type CallHierarchyIncomingCallsParams struct {
|
|
|
|
|
Item CallHierarchyItem `json:"item"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Represents programming constructs like functions or constructors in the context
|
|
|
|
|
* of call hierarchy.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type CallHierarchyItem struct {
|
|
|
|
|
/**
|
|
|
|
|
* The name of this item.
|
|
|
|
|
*/
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
/**
|
|
|
|
|
* The kind of this item.
|
|
|
|
|
*/
|
|
|
|
|
Kind SymbolKind `json:"kind"`
|
|
|
|
|
/**
|
|
|
|
|
* Tags for this item.
|
|
|
|
|
*/
|
|
|
|
|
Tags []SymbolTag `json:"tags,omitempty"`
|
|
|
|
|
/**
|
|
|
|
|
* More detail for this item, e.g. the signature of a function.
|
|
|
|
|
*/
|
|
|
|
|
Detail string `json:"detail,omitempty"`
|
|
|
|
|
/**
|
|
|
|
|
* The resource identifier of this item.
|
|
|
|
|
*/
|
|
|
|
|
URI DocumentURI `json:"uri"`
|
|
|
|
|
/**
|
|
|
|
|
* The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
/**
|
|
|
|
|
* 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 [`range`](#CallHierarchyItem.range).
|
|
|
|
|
*/
|
|
|
|
|
SelectionRange Range `json:"selectionRange"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Represents an outgoing call, e.g. calling a getter from a method or a method from a constructor etc.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type CallHierarchyOutgoingCall struct {
|
|
|
|
|
/**
|
|
|
|
|
* The item that is called.
|
|
|
|
|
*/
|
|
|
|
|
To CallHierarchyItem `json:"to"`
|
|
|
|
|
/**
|
|
|
|
|
* The range at which this item is called. This is the range relative to the caller, e.g the item
|
|
|
|
|
* passed to [`provideCallHierarchyOutgoingCalls`](#CallHierarchyItemProvider.provideCallHierarchyOutgoingCalls)
|
|
|
|
|
* and not [`this.to`](#CallHierarchyOutgoingCall.to).
|
|
|
|
|
*/
|
|
|
|
|
FromRanges []Range `json:"fromRanges"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The parameter of a `callHierarchy/outgoingCalls` request.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type CallHierarchyOutgoingCallsParams struct {
|
|
|
|
|
Item CallHierarchyItem `json:"item"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The parameter of a `textDocument/prepareCallHierarchy` request.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type CallHierarchyPrepareParams struct {
|
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type CancelParams struct {
|
|
|
|
|
/**
|
|
|
|
|
* The request id to cancel.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ID interface{} /*number | string*/ `json:"id"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type ClientCapabilities = struct {
|
|
|
|
|
Workspace struct {
|
|
|
|
|
/**
|
|
|
|
|
* Workspace specific client capabilities.
|
2019-11-05 11:30:42 -07:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
WorkspaceClientCapabilities
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client has support for workspace folders
|
2020-03-09 10:51:18 -06:00
|
|
|
|
*
|
|
|
|
|
* @since 3.6.0
|
2019-11-05 11:30:42 -07:00
|
|
|
|
*/
|
|
|
|
|
WorkspaceFolders bool `json:"workspaceFolders,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2020-03-09 10:51:18 -06:00
|
|
|
|
* The client supports `workspace/configuration` requests.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.6.0
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
|
|
|
|
Configuration bool `json:"configuration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
}
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Text document specific client capabilities.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentClientCapabilities `json:"textDocument,omitempty"`
|
2020-01-27 06:23:25 -07:00
|
|
|
|
Window struct {
|
|
|
|
|
/**
|
|
|
|
|
* Window specific client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
Window interface{} `json:"window,omitempty"`
|
|
|
|
|
/**
|
|
|
|
|
* Whether client supports handling progress notifications. If set servers are allowed to
|
|
|
|
|
* report in `workDoneProgress` property in the request specific server capabilities.
|
|
|
|
|
*
|
|
|
|
|
* Since 3.15.0
|
|
|
|
|
*/
|
|
|
|
|
WorkDoneProgress bool `json:"workDoneProgress,omitempty"`
|
|
|
|
|
}
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Experimental client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
Experimental interface{} `json:"experimental,omitempty"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A short, human-readable, title for this code action.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Title string `json:"title"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The kind of the code action.
|
|
|
|
|
*
|
|
|
|
|
* Used to filter code actions.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Kind CodeActionKind `json:"kind,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The diagnostics that this code action resolves.
|
|
|
|
|
*/
|
|
|
|
|
Diagnostics []Diagnostic `json:"diagnostics,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Marks this as a preferred action. Preferred actions are used by the `auto fix` command and can be targeted
|
|
|
|
|
* by keybindings.
|
|
|
|
|
*
|
|
|
|
|
* A quick fix should be marked preferred if it properly addresses the underlying error.
|
|
|
|
|
* A refactoring should be marked preferred if it is the most reasonable choice of actions to take.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
IsPreferred bool `json:"isPreferred,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The workspace edit this code action performs.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Edit WorkspaceEdit `json:"edit,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-27 12:14:59 -07:00
|
|
|
|
Command *Command `json:"command,omitempty"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The Client Capabilities of a [CodeActionRequest](#CodeActionRequest).
|
|
|
|
|
*/
|
|
|
|
|
type CodeActionClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether code action supports dynamic registration.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-09-24 15:51:00 -06:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client support code action literals as a valid
|
|
|
|
|
* response of the `textDocument/codeAction` request.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.8.0
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CodeActionLiteralSupport struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The code action kind is support with the following value
|
|
|
|
|
* set.
|
|
|
|
|
*/
|
|
|
|
|
CodeActionKind struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether code action supports the `isPreferred` property.
|
|
|
|
|
* @since 3.15.0
|
|
|
|
|
*/
|
|
|
|
|
IsPreferredSupport bool `json:"isPreferredSupport,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Contains additional diagnostic information about the context in which
|
|
|
|
|
* a [code action](#CodeActionProvider.provideCodeActions) is run.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type CodeActionContext struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Diagnostics []Diagnostic `json:"diagnostics"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Only []CodeActionKind `json:"only,omitempty"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* A set of predefined code action kinds
|
|
|
|
|
*/
|
|
|
|
|
type CodeActionKind string
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Provider options for a [CodeActionRequest](#CodeActionRequest).
|
|
|
|
|
*/
|
|
|
|
|
type CodeActionOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
CodeActionKinds []CodeActionKind `json:"codeActionKinds,omitempty"`
|
|
|
|
|
WorkDoneProgressOptions
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a [CodeActionRequest](#CodeActionRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type CodeActionParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document in which the command was invoked.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range for which the command was invoked.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Context carrying additional information.
|
|
|
|
|
*/
|
|
|
|
|
Context CodeActionContext `json:"context"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range in which this code lens is valid. Should only span a single line.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Range Range `json:"range"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The command this code lens represents.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Command Command `json:"command,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client capabilities of a [CodeLensRequest](#CodeLensRequest).
|
|
|
|
|
*/
|
|
|
|
|
type CodeLensClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether code lens supports dynamic registration.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-09-24 15:51:00 -06:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Code Lens provider options of a [CodeLensRequest](#CodeLensRequest).
|
|
|
|
|
*/
|
|
|
|
|
type CodeLensOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Code lens has a resolve provider as well.
|
|
|
|
|
*/
|
|
|
|
|
ResolveProvider bool `json:"resolveProvider,omitempty"`
|
|
|
|
|
WorkDoneProgressOptions
|
2019-07-11 12:53:13 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a [CodeLensRequest](#CodeLensRequest).
|
2019-07-11 12:53:13 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type CodeLensParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document to request code lens for.
|
2019-07-11 12:53:13 -06:00
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
2019-07-11 12:53:13 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Represents a color in RGBA space.
|
|
|
|
|
*/
|
|
|
|
|
type Color struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The red component of this color in the range [0-1].
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Red float64 `json:"red"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The green component of this color in the range [0-1].
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Green float64 `json:"green"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The blue component of this color in the range [0-1].
|
|
|
|
|
*/
|
|
|
|
|
Blue float64 `json:"blue"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The alpha component of this color in the range [0-1].
|
|
|
|
|
*/
|
|
|
|
|
Alpha float64 `json:"alpha"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Represents a color range from a document.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ColorInformation struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range in the document where this color appers.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Range Range `json:"range"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The actual color value for this color range.
|
|
|
|
|
*/
|
|
|
|
|
Color Color `json:"color"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ColorPresentation struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Label string `json:"label"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TextEdit TextEdit `json:"textEdit,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
AdditionalTextEdits []TextEdit `json:"additionalTextEdits,omitempty"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Parameters for a [ColorPresentationRequest](#ColorPresentationRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ColorPresentationParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The color to request presentations for.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Color Color `json:"color"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range where the color would be inserted. Serves as a context.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type Command struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Title of the command, like `save`.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Title string `json:"title"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The identifier of the actual command handler.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Command string `json:"command"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Arguments that the command handler should be
|
|
|
|
|
* invoked with.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Arguments []interface{} `json:"arguments,omitempty"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Completion client capabilities
|
|
|
|
|
*/
|
|
|
|
|
type CompletionClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether completion supports dynamic registration.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports the following `CompletionItem` specific
|
|
|
|
|
* capabilities.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CompletionItem struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client supports commit characters on a completion item.
|
|
|
|
|
*/
|
|
|
|
|
CommitCharactersSupport bool `json:"commitCharactersSupport,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client supports the deprecated property on a completion item.
|
|
|
|
|
*/
|
|
|
|
|
DeprecatedSupport bool `json:"deprecatedSupport,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client supports the preselect property on a completion item.
|
|
|
|
|
*/
|
|
|
|
|
PreselectSupport bool `json:"preselectSupport,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client supports the tag property on a completion item. Clients supporting
|
|
|
|
|
* tags have to handle unknown tags gracefully. Clients especially need to
|
|
|
|
|
* preserve unknown tags when sending a completion item back to the server in
|
|
|
|
|
* a resolve call.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TagSupport struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The tags supported by the client.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []CompletionItemTag `json:"valueSet"`
|
|
|
|
|
} `json:"tagSupport,omitempty"`
|
2020-03-09 10:51:18 -06:00
|
|
|
|
/**
|
|
|
|
|
* Client support insert replace edit to control different behavior if a
|
|
|
|
|
* completion item is inserted in the text or should replace text.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
InsertReplaceSupport bool `json:"insertReplaceSupport,omitempty"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
} `json:"completionItem,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CompletionItemKind struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports to send additional context information for a
|
|
|
|
|
* `textDocument/completion` requestion.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ContextSupport bool `json:"contextSupport,omitempty"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Contains additional information about the context in which a completion request is triggered.
|
|
|
|
|
*/
|
|
|
|
|
type CompletionContext struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* How the completion was triggered.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TriggerKind CompletionTriggerKind `json:"triggerKind"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The trigger character (a single character) that has trigger code complete.
|
|
|
|
|
* Is undefined if `triggerKind !== CompletionTriggerKind.TriggerCharacter`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TriggerCharacter string `json:"triggerCharacter,omitempty"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A completion item represents a text snippet that is
|
|
|
|
|
* proposed to complete text that is being typed.
|
|
|
|
|
*/
|
|
|
|
|
type CompletionItem struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The label of this completion item. By default
|
|
|
|
|
* also the text that is inserted when selecting
|
|
|
|
|
* this completion.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Label string `json:"label"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The kind of this completion item. Based of the kind
|
|
|
|
|
* an icon is chosen by the editor.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Kind CompletionItemKind `json:"kind,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Tags for this completion item.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Tags []CompletionItemTag `json:"tags,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A human-readable string with additional information
|
|
|
|
|
* about this item, like type or symbol information.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Detail string `json:"detail,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A human-readable string that represents a doc-comment.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Documentation string/*string | MarkupContent*/ `json:"documentation,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Indicates if this item is deprecated.
|
|
|
|
|
* @deprecated Use `tags` instead.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Deprecated bool `json:"deprecated,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Preselect bool `json:"preselect,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A string that should be used when comparing this item
|
|
|
|
|
* with other items. When `falsy` the [label](#CompletionItem.label)
|
|
|
|
|
* is used.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
SortText string `json:"sortText,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A string that should be used when filtering a set of
|
|
|
|
|
* completion items. When `falsy` the [label](#CompletionItem.label)
|
|
|
|
|
* is used.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
FilterText string `json:"filterText,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
InsertText string `json:"insertText,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The format of the insert text. The format applies to both the `insertText` property
|
2020-01-27 06:23:25 -07:00
|
|
|
|
* and the `newText` property of a provided `textEdit`. If ommitted defaults to
|
|
|
|
|
* `InsertTextFormat.PlainText`.
|
2019-04-08 07:16:48 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
InsertTextFormat InsertTextFormat `json:"insertTextFormat,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*
|
2020-03-09 10:51:18 -06:00
|
|
|
|
* *Note:* The text edit's range as well as both ranges from a insert replace edit must be a
|
|
|
|
|
* [single line] and they must contain the position at which completion has been requested.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 additional type `InsertReplaceEdit` - Proposed state
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2020-03-10 09:47:56 -06:00
|
|
|
|
TextEdit *TextEdit/*TextEdit | InsertReplaceEdit*/ `json:"textEdit,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* 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).
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
AdditionalTextEdits []TextEdit `json:"additionalTextEdits,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-04-08 07:16:48 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
CommitCharacters []string `json:"commitCharacters,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-12-04 11:36:18 -07:00
|
|
|
|
Command *Command `json:"command,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* An data entry field that is preserved on a completion item between
|
|
|
|
|
* a [CompletionRequest](#CompletionRequest) and a [CompletionResolveRequest]
|
|
|
|
|
* (#CompletionResolveRequest)
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Data interface{} `json:"data,omitempty"`
|
|
|
|
|
}
|
2019-09-07 15:01:26 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* The kind of a completion entry.
|
|
|
|
|
*/
|
|
|
|
|
type CompletionItemKind float64
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Completion item tags are extra annotations that tweak the rendering of a completion
|
|
|
|
|
* item.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
|
|
|
|
*/
|
|
|
|
|
type CompletionItemTag float64
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Represents a collection of [completion items](#CompletionItem) to be presented
|
|
|
|
|
* in the editor.
|
|
|
|
|
*/
|
|
|
|
|
type CompletionList struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* This list it not complete. Further typing results in recomputing this list.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
IsIncomplete bool `json:"isIncomplete"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The completion items.
|
2019-05-21 05:54:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Items []CompletionItem `json:"items"`
|
2019-05-21 05:54:00 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Completion options.
|
|
|
|
|
*/
|
|
|
|
|
type CompletionOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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`.
|
2019-04-08 07:16:48 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TriggerCharacters []string `json:"triggerCharacters,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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`
|
|
|
|
|
*
|
2020-01-27 06:23:25 -07:00
|
|
|
|
* If a server provides both `allCommitCharacters` and commit characters on an individual
|
|
|
|
|
* completion item the ones on the completion item win.
|
|
|
|
|
*
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* @since 3.2.0
|
|
|
|
|
*/
|
|
|
|
|
AllCommitCharacters []string `json:"allCommitCharacters,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides support to resolve additional
|
|
|
|
|
* information for a completion item.
|
|
|
|
|
*/
|
|
|
|
|
ResolveProvider bool `json:"resolveProvider,omitempty"`
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
2019-04-08 07:16:48 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Completion parameters
|
|
|
|
|
*/
|
|
|
|
|
type CompletionParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The completion context. This is only available it the client specifies
|
|
|
|
|
* to send this using the client capability `textDocument.completion.contextSupport === true`
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Context CompletionContext `json:"context,omitempty"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
2019-04-08 07:16:48 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* How a completion was triggered
|
2019-11-05 11:30:42 -07:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type CompletionTriggerKind float64
|
2019-04-08 07:16:48 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ConfigurationClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The workspace client capabilities
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Workspace WorkspaceGn `json:"workspace,omitempty"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
}
|
2019-04-08 07:16:48 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ConfigurationItem struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The scope to get the configuration section for.
|
2019-04-08 07:16:48 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ScopeURI string `json:"scopeUri,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The configuration section asked for.
|
|
|
|
|
*/
|
|
|
|
|
Section string `json:"section,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a configuration request.
|
|
|
|
|
*/
|
|
|
|
|
type ConfigurationParams struct {
|
|
|
|
|
Items []ConfigurationItem `json:"items"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Create file operation.
|
|
|
|
|
*/
|
|
|
|
|
type CreateFile struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A create
|
2019-05-21 05:54:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Kind string `json:"kind"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The resource to create.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
URI DocumentURI `json:"uri"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Additional options
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Options CreateFileOptions `json:"options,omitempty"`
|
|
|
|
|
ResourceOperation
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Options to create a file.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type CreateFileOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Overwrite existing file. Overwrite wins over `ignoreIfExists`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Overwrite bool `json:"overwrite,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Ignore if exists.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
IgnoreIfExists bool `json:"ignoreIfExists,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* The declaration of a symbol representation as one or many [locations](#Location).
|
|
|
|
|
*/
|
|
|
|
|
type Declaration = []Location /*Location | Location[]*/
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Since 3.14.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DeclarationClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether declaration supports dynamic registration. If this is set to `true`
|
|
|
|
|
* the client supports the new `DeclarationRegistrationOptions` return value
|
|
|
|
|
* for the corresponding server capability as well.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports additional metadata in the form of declaration links.
|
|
|
|
|
*/
|
|
|
|
|
LinkSupport bool `json:"linkSupport,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* 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-11-05 11:30:42 -07:00
|
|
|
|
type DeclarationOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DeclarationParams struct {
|
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DeclarationRegistrationOptions struct {
|
|
|
|
|
DeclarationOptions
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
StaticRegistrationOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* The definition of a symbol represented as one or many [locations](#Location).
|
|
|
|
|
* For most programming languages there is only one location at which a symbol is
|
|
|
|
|
* defined.
|
|
|
|
|
*
|
|
|
|
|
* Servers should prefer returning `DefinitionLink` over `Definition` if supported
|
|
|
|
|
* by the client.
|
|
|
|
|
*/
|
|
|
|
|
type Definition = []Location /*Location | Location[]*/
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client Capabilities for a [DefinitionRequest](#DefinitionRequest).
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DefinitionClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether definition supports dynamic registration.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports additional metadata in the form of definition links.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.14.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
LinkSupport bool `json:"linkSupport,omitempty"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Server Capabilities for a [DefinitionRequest](#DefinitionRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DefinitionOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Parameters for a [DefinitionRequest](#DefinitionRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DefinitionParams struct {
|
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Delete file operation
|
|
|
|
|
*/
|
|
|
|
|
type DeleteFile struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A delete
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Kind string `json:"kind"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The file to delete.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
URI DocumentURI `json:"uri"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Delete options.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Options DeleteFileOptions `json:"options,omitempty"`
|
|
|
|
|
ResourceOperation
|
2019-11-05 11:30:42 -07:00
|
|
|
|
}
|
2019-09-07 15:01:26 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Delete file options
|
|
|
|
|
*/
|
|
|
|
|
type DeleteFileOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Delete the content recursively if a folder is denoted.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Recursive bool `json:"recursive,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Ignore the operation if the file doesn't exist.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
IgnoreIfNotExists bool `json:"ignoreIfNotExists,omitempty"`
|
|
|
|
|
}
|
2019-09-07 15:01:26 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range at which the message applies
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Range Range `json:"range"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Severity DiagnosticSeverity `json:"severity,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The diagnostic's code, which usually appear in the user interface.
|
2020-03-09 10:51:18 -06:00
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 Support for `DiagnosticCode` - Proposed state
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2020-03-09 10:51:18 -06:00
|
|
|
|
Code interface{}/* float64 | string | DiagnosticCode*/ `json:"code,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A human-readable string describing the source of this
|
|
|
|
|
* diagnostic, e.g. 'typescript' or 'super lint'. It usually
|
|
|
|
|
* appears in the user interface.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Source string `json:"source,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The diagnostic's message. It usually appears in the user interface
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Message string `json:"message"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Additional metadata about the diagnostic.
|
2020-03-09 10:51:18 -06:00
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Tags []DiagnosticTag `json:"tags,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* An array of related diagnostic information, e.g. when symbol-names within
|
|
|
|
|
* a scope collide all definitions can be marked via this property.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
RelatedInformation []DiagnosticRelatedInformation `json:"relatedInformation,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-09 10:51:18 -06:00
|
|
|
|
/**
|
|
|
|
|
* Structure to capture more complex diagnostic codes.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type DiagnosticCode struct {
|
|
|
|
|
/**
|
|
|
|
|
* The actual code
|
|
|
|
|
*/
|
|
|
|
|
Value string/*string | number*/ `json:"value"`
|
|
|
|
|
/**
|
|
|
|
|
* A target URI to open with more information about the diagnostic error.
|
|
|
|
|
*/
|
|
|
|
|
Target URI `json:"target"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The location of this related diagnostic information.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Location Location `json:"location"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The message of this related diagnostic information.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
}
|
2019-09-07 15:01:26 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* The diagnostic's severity.
|
|
|
|
|
*/
|
|
|
|
|
type DiagnosticSeverity float64
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The diagnostic tags.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
|
|
|
|
*/
|
|
|
|
|
type DiagnosticTag float64
|
2019-09-07 15:01:26 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type DidChangeConfigurationClientCapabilities struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Did change configuration notification supports dynamic registration.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a change configuration notification.
|
|
|
|
|
*/
|
|
|
|
|
type DidChangeConfigurationParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The actual changed settings
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Settings interface{} `json:"settings"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The change text document notification's parameters.
|
|
|
|
|
*/
|
|
|
|
|
type DidChangeTextDocumentParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document that did change. The version number points
|
|
|
|
|
* to the version after all provided content changes have
|
|
|
|
|
* been applied.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument VersionedTextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The actual content changes. The content changes describe single state changes
|
2020-01-27 06:23:25 -07:00
|
|
|
|
* to the document. So if there are two content changes c1 (at array index 0) and
|
|
|
|
|
* c2 (at array index 1) for a document in state S then c1 moves the document from
|
|
|
|
|
* S to S' and c2 from S' to S''. So c1 is computed on the state S and c2 is computed
|
|
|
|
|
* on the state S'.
|
|
|
|
|
*
|
|
|
|
|
* To mirror the content of a document using change events use the following approach:
|
|
|
|
|
* - start with the same initial content
|
|
|
|
|
* - apply the 'textDocument/didChange' notifications in the order you recevie them.
|
|
|
|
|
* - apply the `TextDocumentContentChangeEvent`s in a single notification in the order
|
|
|
|
|
* you receive them.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ContentChanges []TextDocumentContentChangeEvent `json:"contentChanges"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DidChangeWatchedFilesClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The watched files change notification's parameters.
|
|
|
|
|
*/
|
|
|
|
|
type DidChangeWatchedFilesParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The actual file events.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Changes []FileEvent `json:"changes"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Describe options to be used when registered for text document change events.
|
|
|
|
|
*/
|
|
|
|
|
type DidChangeWatchedFilesRegistrationOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The watchers to register.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Watchers []FileSystemWatcher `json:"watchers"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a `workspace/didChangeWorkspaceFolders` notification.
|
|
|
|
|
*/
|
|
|
|
|
type DidChangeWorkspaceFoldersParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The actual workspace folder change event.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Event WorkspaceFoldersChangeEvent `json:"event"`
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters send in a close text document notification
|
|
|
|
|
*/
|
|
|
|
|
type DidCloseTextDocumentParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document that was closed.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters send in a open text document notification
|
|
|
|
|
*/
|
|
|
|
|
type DidOpenTextDocumentParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document that was opened.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentItem `json:"textDocument"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters send in a save text document notification
|
|
|
|
|
*/
|
|
|
|
|
type DidSaveTextDocumentParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document that was closed.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument VersionedTextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Optional the content when saved. Depends on the includeText value
|
|
|
|
|
* when the save notification was requested.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-12-10 10:45:31 -07:00
|
|
|
|
Text *string `json:"text,omitempty"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DocumentColorClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
|
|
|
* the client supports the new `DocumentColorRegistrationOptions` return value
|
|
|
|
|
* for the corresponding server capability as well.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DocumentColorOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
2019-04-08 07:16:48 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Parameters for a [DocumentColorRequest](#DocumentColorRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentColorParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
2019-04-08 07:16:48 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DocumentColorRegistrationOptions struct {
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
StaticRegistrationOptions
|
|
|
|
|
DocumentColorOptions
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* 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 {
|
|
|
|
|
/** A language id, like `typescript`. */
|
|
|
|
|
Language string `json:"language"`
|
|
|
|
|
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */
|
|
|
|
|
Scheme string `json:"scheme,omitempty"`
|
|
|
|
|
/** A glob pattern, like `*.{ts,js}`. */
|
|
|
|
|
Pattern string `json:"pattern,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client capabilities of a [DocumentFormattingRequest](#DocumentFormattingRequest).
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DocumentFormattingClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether formatting supports dynamic registration.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Provider options for a [DocumentFormattingRequest](#DocumentFormattingRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentFormattingOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a [DocumentFormattingRequest](#DocumentFormattingRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentFormattingParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document to format.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The format options
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Options FormattingOptions `json:"options"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
}
|
2019-09-07 15:01:26 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range this highlight applies to.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Range Range `json:"range"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The highlight kind, default is [text](#DocumentHighlightKind.Text).
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Kind DocumentHighlightKind `json:"kind,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client Capabilities for a [DocumentHighlightRequest](#DocumentHighlightRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentHighlightClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether document highlight supports dynamic registration.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* A document highlight kind.
|
|
|
|
|
*/
|
|
|
|
|
type DocumentHighlightKind float64
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Provider options for a [DocumentHighlightRequest](#DocumentHighlightRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentHighlightOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Parameters for a [DocumentHighlightRequest](#DocumentHighlightRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentHighlightParams struct {
|
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range this link applies to.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Range Range `json:"range"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The uri this link points to.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Target string `json:"target,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The tooltip text when you hover over this link.
|
|
|
|
|
*
|
|
|
|
|
* If a tooltip is provided, is will be displayed in a string that includes instructions on how to
|
|
|
|
|
* trigger the link, such as `{0} (ctrl + click)`. The specific instructions vary depending on OS,
|
|
|
|
|
* user settings, and localization.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Tooltip string `json:"tooltip,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A data entry field that is preserved on a document link between a
|
|
|
|
|
* DocumentLinkRequest and a DocumentLinkResolveRequest.
|
2019-04-08 07:16:48 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Data interface{} `json:"data,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client capabilities of a [DocumentLinkRequest](#DocumentLinkRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DocumentLinkClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether document link supports dynamic registration.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether the client support the `tooltip` property on `DocumentLink`.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TooltipSupport bool `json:"tooltipSupport,omitempty"`
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Provider options for a [DocumentLinkRequest](#DocumentLinkRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentLinkOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Document links have a resolve provider as well.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ResolveProvider bool `json:"resolveProvider,omitempty"`
|
|
|
|
|
WorkDoneProgressOptions
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a [DocumentLinkRequest](#DocumentLinkRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentLinkParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document to provide document links for.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client capabilities of a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DocumentOnTypeFormattingClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether on type formatting supports dynamic registration.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Provider options for a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DocumentOnTypeFormattingOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A character on which formatting should be triggered, like `}`.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
FirstTriggerCharacter string `json:"firstTriggerCharacter"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* More trigger characters.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
MoreTriggerCharacter []string `json:"moreTriggerCharacter,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentOnTypeFormattingParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document to format.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The position at which this request was send.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Position Position `json:"position"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The character that has been typed.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Ch string `json:"ch"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The format options.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Options FormattingOptions `json:"options"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client capabilities of a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentRangeFormattingClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether range formatting supports dynamic registration.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
}
|
2019-09-07 15:01:26 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Provider options for a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentRangeFormattingOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentRangeFormattingParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document to format.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range to format
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Range Range `json:"range"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The format options
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Options FormattingOptions `json:"options"`
|
|
|
|
|
WorkDoneProgressParams
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* A document selector is the combination of one or many document filters.
|
|
|
|
|
*
|
|
|
|
|
* @sample `let sel:DocumentSelector = [{ language: 'typescript' }, { language: 'json', pattern: '**∕tsconfig.json' }]`;
|
2019-11-05 11:30:42 -07:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type DocumentSelector = []string /*string | DocumentFilter*/
|
2019-09-07 15:01:26 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Name string `json:"name"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* More detail for this symbol, e.g the signature of a function.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Detail string `json:"detail,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The kind of this symbol.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Kind SymbolKind `json:"kind"`
|
2020-03-09 10:51:18 -06:00
|
|
|
|
/**
|
|
|
|
|
* Tags for this completion item.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
Tags []SymbolTag `json:"tags,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Indicates if this symbol is deprecated.
|
2020-03-09 10:51:18 -06:00
|
|
|
|
*
|
|
|
|
|
* @deprecated Use tags instead
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Deprecated bool `json:"deprecated,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Range Range `json:"range"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Children of this symbol, e.g. properties of a class.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Children []DocumentSymbol `json:"children,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client Capabilities for a [DocumentSymbolRequest](#DocumentSymbolRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DocumentSymbolClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether document symbol supports dynamic registration.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Specific capabilities for the `SymbolKind`.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SymbolKind struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client support hierarchical document symbols.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
HierarchicalDocumentSymbolSupport bool `json:"hierarchicalDocumentSymbolSupport,omitempty"`
|
2020-03-09 10:51:18 -06:00
|
|
|
|
/**
|
|
|
|
|
* The client supports tags on `SymbolInformation`. Tags are supported on
|
|
|
|
|
* `DocumentSymbol` if `hierarchicalDocumentSymbolSupport` is set tot true.
|
|
|
|
|
* Clients supporting tags have to handle unknown tags gracefully.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
TagSupport struct {
|
|
|
|
|
/**
|
|
|
|
|
* The tags supported by the client.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []SymbolTag `json:"valueSet"`
|
|
|
|
|
} `json:"tagSupport,omitempty"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Provider options for a [DocumentSymbolRequest](#DocumentSymbolRequest).
|
|
|
|
|
*/
|
|
|
|
|
type DocumentSymbolOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Parameters for a [DocumentSymbolRequest](#DocumentSymbolRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type DocumentSymbolParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The text document.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2020-03-09 10:51:18 -06:00
|
|
|
|
* A tagging type for string properties that are actually document URIs.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2020-02-12 14:36:46 -07:00
|
|
|
|
type DocumentURI string
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
|
|
|
|
|
*/
|
|
|
|
|
type ExecuteCommandClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Execute command supports dynamic registration.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ExecuteCommandOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The commands to be executed on the server
|
|
|
|
|
*/
|
|
|
|
|
Commands []string `json:"commands"`
|
|
|
|
|
WorkDoneProgressOptions
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a [ExecuteCommandRequest](#ExecuteCommandRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ExecuteCommandParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The identifier of the actual command handler.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Command string `json:"command"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Arguments that the command should be invoked with.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Arguments []interface{} `json:"arguments,omitempty"`
|
|
|
|
|
WorkDoneProgressParams
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type FailureHandlingKind string
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The file event type
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type FileChangeType float64
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* An event describing a file change.
|
|
|
|
|
*/
|
|
|
|
|
type FileEvent struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The file's uri.
|
|
|
|
|
*/
|
2019-09-07 15:01:26 -06:00
|
|
|
|
URI DocumentURI `json:"uri"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The change type.
|
|
|
|
|
*/
|
|
|
|
|
Type FileChangeType `json:"type"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FileSystemWatcher struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The kind of events of interest. If omitted it defaults
|
|
|
|
|
* to WatchKind.Create | WatchKind.Change | WatchKind.Delete
|
|
|
|
|
* which is 7.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Kind float64 `json:"kind,omitempty"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Represents a folding range.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type FoldingRange struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The zero-based line number from where the folded range starts.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
StartLine float64 `json:"startLine"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
StartCharacter float64 `json:"startCharacter,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The zero-based line number where the folded range ends.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
EndLine float64 `json:"endLine"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
EndCharacter float64 `json:"endCharacter,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type FoldingRangeClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether implementation supports dynamic registration for folding range providers. If this is set to `true`
|
|
|
|
|
* the client supports the new `FoldingRangeRegistrationOptions` return value for the corresponding server
|
|
|
|
|
* capability as well.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* 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.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
RangeLimit float64 `json:"rangeLimit,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* 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"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* Enum of known range kinds
|
|
|
|
|
*/
|
|
|
|
|
type FoldingRangeKind string
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type FoldingRangeOptions struct {
|
2019-09-07 15:01:26 -06:00
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type FoldingRangeParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
WorkDoneProgressParams
|
2019-11-05 11:30:42 -07:00
|
|
|
|
PartialResultParams
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type FoldingRangeRegistrationOptions struct {
|
2019-09-07 15:01:26 -06:00
|
|
|
|
TextDocumentRegistrationOptions
|
2019-11-05 11:30:42 -07:00
|
|
|
|
FoldingRangeOptions
|
|
|
|
|
StaticRegistrationOptions
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Value-object describing what options formatting should use.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type FormattingOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Size of a tab in spaces.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TabSize float64 `json:"tabSize"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Prefer spaces over tabs.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
InsertSpaces bool `json:"insertSpaces"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Trim trailing whitespaces on a line.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TrimTrailingWhitespace bool `json:"trimTrailingWhitespace,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Insert a newline character at the end of the file if one does not exist.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
InsertFinalNewline bool `json:"insertFinalNewline,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Trim all newlines after the final newline at the end of the file.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TrimFinalNewlines bool `json:"trimFinalNewlines,omitempty"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The result of a hover request.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type Hover struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The hover's content
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Contents MarkupContent/*MarkupContent | MarkedString | MarkedString[]*/ `json:"contents"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* An optional range
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Range Range `json:"range,omitempty"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type HoverClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether hover supports dynamic registration.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client supports the follow content formats for the content
|
|
|
|
|
* property. The order describes the preferred format of the client.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ContentFormat []MarkupKind `json:"contentFormat,omitempty"`
|
2019-09-24 15:51:00 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Hover options.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type HoverOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Parameters for a [HoverRequest](#HoverRequest).
|
|
|
|
|
*/
|
|
|
|
|
type HoverParams struct {
|
2019-09-07 15:01:26 -06:00
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Since 3.6.0
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ImplementationClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
|
|
|
* the client supports the new `ImplementationRegistrationOptions` return value
|
|
|
|
|
* for the corresponding server capability as well.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-09-07 15:01:26 -06:00
|
|
|
|
* The client supports additional metadata in the form of definition links.
|
|
|
|
|
*
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Since 3.14.0
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
|
|
|
|
LinkSupport bool `json:"linkSupport,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ImplementationOptions struct {
|
2019-09-07 15:01:26 -06:00
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ImplementationParams struct {
|
2019-09-07 15:01:26 -06:00
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ImplementationRegistrationOptions struct {
|
2019-09-07 15:01:26 -06:00
|
|
|
|
TextDocumentRegistrationOptions
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ImplementationOptions
|
|
|
|
|
StaticRegistrationOptions
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* Known error codes for an `InitializeError`;
|
|
|
|
|
*/
|
|
|
|
|
type InitializeError float64
|
2019-09-07 15:01:26 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type InitializeParams = struct {
|
|
|
|
|
InnerInitializeParams
|
|
|
|
|
WorkspaceFoldersInitializeParams
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The result returned from an initialize request.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type InitializeResult struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The capabilities the language server provides.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Capabilities ServerCapabilities `json:"capabilities"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Information about the server.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ServerInfo struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The name of the server as defined by the server.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Name string `json:"name"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The servers's version as defined by the server.
|
|
|
|
|
*/
|
|
|
|
|
Version string `json:"version,omitempty"`
|
|
|
|
|
} `json:"serverInfo,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type InitializedParams struct {
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Defines the capabilities provided by the client.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type InnerClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Workspace specific client capabilities.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Workspace WorkspaceClientCapabilities `json:"workspace,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Text document specific client capabilities.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TextDocument TextDocumentClientCapabilities `json:"textDocument,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Window specific client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
Window interface{} `json:"window,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Experimental client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
Experimental interface{} `json:"experimental,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The initialize parameters
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type InnerInitializeParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The process Id of the parent process that started
|
|
|
|
|
* the server.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ProcessID float64/*number | null*/ `json:"processId"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Information about the client
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* @since 3.15.0
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ClientInfo struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The name of the client as defined by the client.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Name string `json:"name"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client's version as defined by the client.
|
|
|
|
|
*/
|
|
|
|
|
Version string `json:"version,omitempty"`
|
|
|
|
|
} `json:"clientInfo,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The rootPath of the workspace. Is null
|
|
|
|
|
* if no folder is open.
|
|
|
|
|
*
|
|
|
|
|
* @deprecated in favour of rootUri.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
RootPath string/*string | null*/ `json:"rootPath,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
RootURI DocumentURI/*DocumentUri | null*/ `json:"rootUri"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The capabilities provided by the client (editor or tool)
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Capabilities ClientCapabilities `json:"capabilities"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* User provided initialization options.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
InitializationOptions interface{} `json:"initializationOptions,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The initial trace setting. If omitted trace is disabled ('off').
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Trace string/*'off' | 'messages' | 'verbose'*/ `json:"trace,omitempty"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Defines the capabilities provided by a language
|
|
|
|
|
* server.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type InnerServerCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Defines how text documents are synced. Is either a detailed structure defining each notification or
|
|
|
|
|
* for backwards compatibility the TextDocumentSyncKind number.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TextDocumentSync interface{}/*TextDocumentSyncOptions | TextDocumentSyncKind*/ `json:"textDocumentSync,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides completion support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CompletionProvider CompletionOptions `json:"completionProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides hover support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
HoverProvider bool/*boolean | HoverOptions*/ `json:"hoverProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides signature help support.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SignatureHelpProvider SignatureHelpOptions `json:"signatureHelpProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides Goto Declaration support.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DeclarationProvider interface{}/* bool | DeclarationOptions | DeclarationRegistrationOptions*/ `json:"declarationProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides goto definition support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DefinitionProvider bool/*boolean | DefinitionOptions*/ `json:"definitionProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides Goto Type Definition support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TypeDefinitionProvider interface{}/* bool | TypeDefinitionOptions | TypeDefinitionRegistrationOptions*/ `json:"typeDefinitionProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides Goto Implementation support.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ImplementationProvider interface{}/* bool | ImplementationOptions | ImplementationRegistrationOptions*/ `json:"implementationProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides find references support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ReferencesProvider bool/*boolean | ReferenceOptions*/ `json:"referencesProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document highlight support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentHighlightProvider bool/*boolean | DocumentHighlightOptions*/ `json:"documentHighlightProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document symbol support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentSymbolProvider bool/*boolean | DocumentSymbolOptions*/ `json:"documentSymbolProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CodeActionProvider interface{}/*boolean | CodeActionOptions*/ `json:"codeActionProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides code lens.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CodeLensProvider CodeLensOptions `json:"codeLensProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document link support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentLinkProvider DocumentLinkOptions `json:"documentLinkProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides color provider support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ColorProvider interface{}/* bool | DocumentColorOptions | DocumentColorRegistrationOptions*/ `json:"colorProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides workspace symbol support.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
WorkspaceSymbolProvider bool/*boolean | WorkspaceSymbolOptions*/ `json:"workspaceSymbolProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document formatting.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentFormattingProvider bool/*boolean | DocumentFormattingOptions*/ `json:"documentFormattingProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document range formatting.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentRangeFormattingProvider bool/*boolean | DocumentRangeFormattingOptions*/ `json:"documentRangeFormattingProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document formatting on typing.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentOnTypeFormattingProvider DocumentOnTypeFormattingOptions `json:"documentOnTypeFormattingProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-27 07:10:03 -07:00
|
|
|
|
RenameProvider interface{}/*boolean | RenameOptions*/ `json:"renameProvider,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides folding provider support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
FoldingRangeProvider interface{}/* bool | FoldingRangeOptions | FoldingRangeRegistrationOptions*/ `json:"foldingRangeProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides selection range support.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SelectionRangeProvider interface{}/* bool | SelectionRangeOptions | SelectionRangeRegistrationOptions*/ `json:"selectionRangeProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides execute command support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ExecuteCommandProvider ExecuteCommandOptions `json:"executeCommandProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Experimental server capabilities.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Experimental interface{} `json:"experimental,omitempty"`
|
2019-09-24 15:51:00 -06:00
|
|
|
|
}
|
|
|
|
|
|
2020-03-09 10:51:18 -06:00
|
|
|
|
/**
|
|
|
|
|
* A special text edit to provide a insert or a replace operation.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type InsertReplaceEdit struct {
|
|
|
|
|
/**
|
|
|
|
|
* The string to be inserted.
|
|
|
|
|
*/
|
|
|
|
|
NewText string `json:"newText"`
|
|
|
|
|
/**
|
|
|
|
|
* The range if the insert is requested
|
|
|
|
|
*/
|
|
|
|
|
Insert Range `json:"insert"`
|
|
|
|
|
/**
|
|
|
|
|
* The range if the replace is requested.
|
|
|
|
|
*/
|
|
|
|
|
Replace Range `json:"replace"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* Defines whether the insert text in a completion item should be interpreted as
|
|
|
|
|
* plain text or a snippet.
|
|
|
|
|
*/
|
|
|
|
|
type InsertTextFormat float64
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Represents a location inside a resource, such as a line
|
|
|
|
|
* inside a text file.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type Location struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
URI DocumentURI `json:"uri"`
|
|
|
|
|
Range Range `json:"range"`
|
2019-09-24 15:51:00 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Represents the connection of two locations. Provides additional metadata over normal [locations](#Location),
|
|
|
|
|
* including an origin range.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type LocationLink struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
OriginSelectionRange Range `json:"originSelectionRange,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The target resource identifier of this link.
|
|
|
|
|
*/
|
|
|
|
|
TargetURI DocumentURI `json:"targetUri"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TargetRange Range `json:"targetRange"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TargetSelectionRange Range `json:"targetSelectionRange"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The log message parameters.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type LogMessageParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The message type. See {@link MessageType}
|
|
|
|
|
*/
|
|
|
|
|
Type MessageType `json:"type"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The actual message
|
|
|
|
|
*/
|
|
|
|
|
Message string `json:"message"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type LogTraceParams struct {
|
|
|
|
|
Message string `json:"message"`
|
|
|
|
|
Verbose string `json:"verbose,omitempty"`
|
2019-09-24 15:51:00 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* MarkedString can be used to render human readable text. It is either a markdown string
|
|
|
|
|
* or a code-block that provides a language and a code snippet. The language identifier
|
|
|
|
|
* is semantically equal to the optional language identifier in fenced code blocks in GitHub
|
|
|
|
|
* issues. See https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting
|
|
|
|
|
*
|
|
|
|
|
* The pair of a language and a value is an equivalent to markdown:
|
|
|
|
|
* ```${language}
|
|
|
|
|
* ${value}
|
|
|
|
|
* ```
|
|
|
|
|
*
|
|
|
|
|
* Note that markdown strings will be sanitized - that means html will be escaped.
|
|
|
|
|
* @deprecated use MarkupContent instead.
|
|
|
|
|
*/
|
|
|
|
|
type MarkedString = string /*string | { language: string; value: string }*/
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type MarkupContent struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The type of the Markup
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Kind MarkupKind `json:"kind"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The content itself
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Value string `json:"value"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* Describes the content type that a client supports in various
|
|
|
|
|
* result literals like `Hover`, `ParameterInfo` or `CompletionItem`.
|
|
|
|
|
*
|
|
|
|
|
* Please note that `MarkupKinds` must not start with a `$`. This kinds
|
|
|
|
|
* are reserved for internal usage.
|
|
|
|
|
*/
|
|
|
|
|
type MarkupKind string
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type MessageActionItem struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A short title like 'Retry', 'Open Log' etc.
|
|
|
|
|
*/
|
|
|
|
|
Title string `json:"title"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* The message type
|
|
|
|
|
*/
|
|
|
|
|
type MessageType float64
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Represents a parameter of a callable-signature. A parameter can
|
|
|
|
|
* have a label and a doc-comment.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ParameterInformation struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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`.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Label string/*string | [number, number]*/ `json:"label"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The human-readable doc-comment of this signature. Will be shown
|
|
|
|
|
* in the UI but can be omitted.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Documentation string/*string | MarkupContent*/ `json:"documentation,omitempty"`
|
2019-09-24 15:51:00 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type PartialResultParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* An optional token that a server can use to report partial results (e.g. streaming) to
|
|
|
|
|
* the client.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
PartialResultToken ProgressToken `json:"partialResultToken,omitempty"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Line float64 `json:"line"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Character float64 `json:"character"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type PrepareRenameParams struct {
|
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ProgressParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The progress token provided by the client or server.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Token ProgressToken `json:"token"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The progress data.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Value interface{} `json:"value"`
|
2019-09-24 15:51:00 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type ProgressToken = interface{} /*number | string*/
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The publish diagnostic client capabilities.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type PublishDiagnosticsClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether the clients accepts diagnostics with related information.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
RelatedInformation bool `json:"relatedInformation,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client supports the tag property to provide meta data about a diagnostic.
|
|
|
|
|
* Clients supporting tags have to handle unknown tags gracefully.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* @since 3.15.0
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TagSupport struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The tags supported by the client.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []DiagnosticTag `json:"valueSet"`
|
|
|
|
|
} `json:"tagSupport,omitempty"`
|
2020-01-27 06:23:25 -07:00
|
|
|
|
/**
|
|
|
|
|
* Whether the client interprets the version property of the
|
|
|
|
|
* `textDocument/publishDiagnostics` notification`s parameter.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
|
|
|
|
*/
|
|
|
|
|
VersionSupport bool `json:"versionSupport,omitempty"`
|
2020-03-09 10:51:18 -06:00
|
|
|
|
/**
|
|
|
|
|
* Clients support complex diagnostic codes (e.g. code and target URI).
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
ComplexDiagnosticCodeSupport bool `json:"complexDiagnosticCodeSupport,omitempty"`
|
2019-09-24 15:51:00 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The publish diagnostic notification's parameters.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type PublishDiagnosticsParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The URI for which diagnostic information is reported.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
URI DocumentURI `json:"uri"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Optional the version number of the document the diagnostics are published for.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Version float64 `json:"version,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* An array of diagnostic information items.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Diagnostics []Diagnostic `json:"diagnostics"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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 }
|
|
|
|
|
* }
|
|
|
|
|
* ```
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type Range struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range's start position
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Start Position `json:"start"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range's end position.
|
|
|
|
|
*/
|
|
|
|
|
End Position `json:"end"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client Capabilities for a [ReferencesRequest](#ReferencesRequest).
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ReferenceClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether references supports dynamic registration.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Value-object that contains additional information when
|
|
|
|
|
* requesting references.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ReferenceContext struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Include the declaration of the current symbol.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
IncludeDeclaration bool `json:"includeDeclaration"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Reference options.
|
|
|
|
|
*/
|
|
|
|
|
type ReferenceOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Parameters for a [ReferencesRequest](#ReferencesRequest).
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ReferenceParams struct {
|
|
|
|
|
Context ReferenceContext `json:"context"`
|
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* General parameters to to register for an notification or to register a provider.
|
|
|
|
|
*/
|
|
|
|
|
type Registration struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The id used to register the request. The id can be used to deregister
|
|
|
|
|
* the request again.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ID string `json:"id"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The method to register for.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Method string `json:"method"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Options necessary for the registration.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
RegisterOptions interface{} `json:"registerOptions,omitempty"`
|
2019-09-07 15:01:26 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type RegistrationParams struct {
|
|
|
|
|
Registrations []Registration `json:"registrations"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type RenameClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether rename supports dynamic registration.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client supports testing for validity of rename operations
|
|
|
|
|
* before execution.
|
|
|
|
|
*
|
|
|
|
|
* @since version 3.12.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
PrepareSupport bool `json:"prepareSupport,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Rename file operation
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type RenameFile struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A rename
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Kind string `json:"kind"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The old (existing) location.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
OldURI DocumentURI `json:"oldUri"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The new location.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
NewURI DocumentURI `json:"newUri"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Rename options.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Options RenameFileOptions `json:"options,omitempty"`
|
|
|
|
|
ResourceOperation
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Rename file options
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type RenameFileOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Overwrite target if existing. Overwrite wins over `ignoreIfExists`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Overwrite bool `json:"overwrite,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Ignores if target exists.
|
|
|
|
|
*/
|
|
|
|
|
IgnoreIfExists bool `json:"ignoreIfExists,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Provider options for a [RenameRequest](#RenameRequest).
|
|
|
|
|
*/
|
|
|
|
|
type RenameOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Renames should be checked and tested before being executed.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* @since version 3.12.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
PrepareProvider bool `json:"prepareProvider,omitempty"`
|
|
|
|
|
WorkDoneProgressOptions
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a [RenameRequest](#RenameRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type RenameParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document to rename.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The position at which this request was sent.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Position Position `json:"position"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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"`
|
|
|
|
|
WorkDoneProgressParams
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ResourceOperation struct {
|
|
|
|
|
Kind string `json:"kind"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type ResourceOperationKind string
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Save options.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SaveOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client is supposed to include the content on save.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
IncludeText bool `json:"includeText,omitempty"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* 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 {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The [range](#Range) of this selection range.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Range Range `json:"range"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parent selection range containing this range. Therefore `parent.range` must contain `this.range`.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Parent *SelectionRange `json:"parent,omitempty"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SelectionRangeClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether implementation supports dynamic registration for selection range providers. If this is set to `true`
|
|
|
|
|
* the client supports the new `SelectionRangeRegistrationOptions` return value for the corresponding server
|
|
|
|
|
* capability as well.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SelectionRangeOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A parameter literal used in selection range requests.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SelectionRangeParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The text document.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The positions inside the text document.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Positions []Position `json:"positions"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SelectionRangeRegistrationOptions struct {
|
|
|
|
|
SelectionRangeOptions
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
StaticRegistrationOptions
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-27 06:23:25 -07:00
|
|
|
|
/**
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type SemanticTokens struct {
|
|
|
|
|
/**
|
|
|
|
|
* An optional result id. If provided and clients support delta updating
|
|
|
|
|
* the client will include the result id in the next semantic token request.
|
2020-03-09 10:51:18 -06:00
|
|
|
|
* A server can then instead of computing all semantic tokens again simply
|
2020-01-27 06:23:25 -07:00
|
|
|
|
* send a delta.
|
|
|
|
|
*/
|
|
|
|
|
ResultID string `json:"resultId,omitempty"`
|
|
|
|
|
/**
|
|
|
|
|
* The actual tokens. For a detailed description about how the data is
|
|
|
|
|
* structured pls see
|
|
|
|
|
* https://github.com/microsoft/vscode-extension-samples/blob/5ae1f7787122812dcc84e37427ca90af5ee09f14/semantic-tokens-sample/vscode.proposed.d.ts#L71
|
|
|
|
|
*/
|
|
|
|
|
Data []float64 `json:"data"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type SemanticTokensEdit struct {
|
|
|
|
|
Start float64 `json:"start"`
|
|
|
|
|
DeleteCount float64 `json:"deleteCount"`
|
|
|
|
|
Data []float64 `json:"data,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type SemanticTokensEdits struct {
|
|
|
|
|
ResultID string `json:"resultId,omitempty"`
|
|
|
|
|
/**
|
|
|
|
|
* For a detailed description how these edits are structured pls see
|
|
|
|
|
* https://github.com/microsoft/vscode-extension-samples/blob/5ae1f7787122812dcc84e37427ca90af5ee09f14/semantic-tokens-sample/vscode.proposed.d.ts#L131
|
|
|
|
|
*/
|
|
|
|
|
Edits []SemanticTokensEdit `json:"edits"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type SemanticTokensEditsParams struct {
|
|
|
|
|
/**
|
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
/**
|
|
|
|
|
* The previous result id.
|
|
|
|
|
*/
|
|
|
|
|
PreviousResultID string `json:"previousResultId"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type SemanticTokensParams struct {
|
|
|
|
|
/**
|
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type SemanticTokensRangeParams struct {
|
|
|
|
|
/**
|
|
|
|
|
* The text document.
|
|
|
|
|
*/
|
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
|
|
|
|
/**
|
|
|
|
|
* The range the semantic tokens are requested for.
|
|
|
|
|
*/
|
|
|
|
|
Range Range `json:"range"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type ServerCapabilities = struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Defines how text documents are synced. Is either a detailed structure defining each notification or
|
|
|
|
|
* for backwards compatibility the TextDocumentSyncKind number.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TextDocumentSync interface{}/*TextDocumentSyncOptions | TextDocumentSyncKind*/ `json:"textDocumentSync,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides completion support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CompletionProvider CompletionOptions `json:"completionProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides hover support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
HoverProvider bool/*boolean | HoverOptions*/ `json:"hoverProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides signature help support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SignatureHelpProvider SignatureHelpOptions `json:"signatureHelpProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides Goto Declaration support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DeclarationProvider interface{}/* bool | DeclarationOptions | DeclarationRegistrationOptions*/ `json:"declarationProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides goto definition support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DefinitionProvider bool/*boolean | DefinitionOptions*/ `json:"definitionProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides Goto Type Definition support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TypeDefinitionProvider interface{}/* bool | TypeDefinitionOptions | TypeDefinitionRegistrationOptions*/ `json:"typeDefinitionProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides Goto Implementation support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ImplementationProvider interface{}/* bool | ImplementationOptions | ImplementationRegistrationOptions*/ `json:"implementationProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides find references support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ReferencesProvider bool/*boolean | ReferenceOptions*/ `json:"referencesProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document highlight support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentHighlightProvider bool/*boolean | DocumentHighlightOptions*/ `json:"documentHighlightProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document symbol support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentSymbolProvider bool/*boolean | DocumentSymbolOptions*/ `json:"documentSymbolProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CodeActionProvider interface{}/*boolean | CodeActionOptions*/ `json:"codeActionProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides code lens.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CodeLensProvider CodeLensOptions `json:"codeLensProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document link support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentLinkProvider DocumentLinkOptions `json:"documentLinkProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides color provider support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ColorProvider interface{}/* bool | DocumentColorOptions | DocumentColorRegistrationOptions*/ `json:"colorProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides workspace symbol support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
WorkspaceSymbolProvider bool/*boolean | WorkspaceSymbolOptions*/ `json:"workspaceSymbolProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document formatting.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentFormattingProvider bool/*boolean | DocumentFormattingOptions*/ `json:"documentFormattingProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document range formatting.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentRangeFormattingProvider bool/*boolean | DocumentRangeFormattingOptions*/ `json:"documentRangeFormattingProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides document formatting on typing.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentOnTypeFormattingProvider DocumentOnTypeFormattingOptions `json:"documentOnTypeFormattingProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-21 21:42:27 -07:00
|
|
|
|
RenameProvider interface{}/*boolean | RenameOptions*/ `json:"renameProvider,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides folding provider support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
FoldingRangeProvider interface{}/* bool | FoldingRangeOptions | FoldingRangeRegistrationOptions*/ `json:"foldingRangeProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides selection range support.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SelectionRangeProvider interface{}/* bool | SelectionRangeOptions | SelectionRangeRegistrationOptions*/ `json:"selectionRangeProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The server provides execute command support.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ExecuteCommandProvider ExecuteCommandOptions `json:"executeCommandProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Experimental server capabilities.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Experimental interface{} `json:"experimental,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The workspace server capabilities
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Workspace WorkspaceGn `json:"workspace,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SetTraceParams struct {
|
|
|
|
|
Value TraceValues `json:"value"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a notification message.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ShowMessageParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The message type. See {@link MessageType}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Type MessageType `json:"type"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The actual message
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Message string `json:"message"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type ShowMessageRequestParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The message type. See {@link MessageType}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Type MessageType `json:"type"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The actual message
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Message string `json:"message"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The message action items to present.
|
|
|
|
|
*/
|
|
|
|
|
Actions []MessageActionItem `json:"actions,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Signature help represents the signature of something
|
|
|
|
|
* callable. There can be multiple signature but only one
|
|
|
|
|
* active and only one active parameter.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SignatureHelp struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* One or more signatures.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Signatures []SignatureInformation `json:"signatures"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The active signature. Set to `null` if no
|
|
|
|
|
* signatures exist.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ActiveSignature float64/*number | null*/ `json:"activeSignature"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The active parameter of the active signature. Set to `null`
|
|
|
|
|
* if the active signature has no parameters.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ActiveParameter float64/*number | null*/ `json:"activeParameter"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client Capabilities for a [SignatureHelpRequest](#SignatureHelpRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SignatureHelpClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether signature help supports dynamic registration.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports the following `SignatureInformation`
|
|
|
|
|
* specific properties.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SignatureInformation struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client capabilities specific to parameter information.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ParameterInformation struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports processing label offsets instead of a
|
|
|
|
|
* simple label string.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.14.0
|
|
|
|
|
*/
|
|
|
|
|
LabelOffsetSupport bool `json:"labelOffsetSupport,omitempty"`
|
|
|
|
|
} `json:"parameterInformation,omitempty"`
|
|
|
|
|
} `json:"signatureInformation,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports to send additional context information for a
|
|
|
|
|
* `textDocument/signatureHelp` request. A client that opts into
|
|
|
|
|
* contextSupport will also support the `retriggerCharacters` on
|
|
|
|
|
* `SignatureHelpOptions`.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ContextSupport bool `json:"contextSupport,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Additional information about the context in which a signature help request was triggered.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SignatureHelpContext struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Action that caused signature help to be triggered.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TriggerKind SignatureHelpTriggerKind `json:"triggerKind"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Character that caused signature help to be triggered.
|
|
|
|
|
*
|
|
|
|
|
* This is undefined when `triggerKind !== SignatureHelpTriggerKind.TriggerCharacter`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TriggerCharacter string `json:"triggerCharacter,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* `true` if signature help was already showing when it was triggered.
|
|
|
|
|
*
|
|
|
|
|
* Retriggers occur when the signature help is already active and can be caused by actions such as
|
|
|
|
|
* typing a trigger character, a cursor move, or document content changes.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
IsRetrigger bool `json:"isRetrigger"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The currently active `SignatureHelp`.
|
|
|
|
|
*
|
|
|
|
|
* The `activeSignatureHelp` has its `SignatureHelp.activeSignature` field updated based on
|
|
|
|
|
* the user navigating through available signatures.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ActiveSignatureHelp SignatureHelp `json:"activeSignatureHelp,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Server Capabilities for a [SignatureHelpRequest](#SignatureHelpRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SignatureHelpOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* List of characters that trigger signature help.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TriggerCharacters []string `json:"triggerCharacters,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* List of characters that re-trigger signature help.
|
|
|
|
|
*
|
|
|
|
|
* These trigger characters are only active when signature help is already showing. All trigger characters
|
|
|
|
|
* are also counted as re-trigger characters.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
RetriggerCharacters []string `json:"retriggerCharacters,omitempty"`
|
|
|
|
|
WorkDoneProgressOptions
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Parameters for a [SignatureHelpRequest](#SignatureHelpRequest).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SignatureHelpParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The signature help context. This is only available if the client specifies
|
|
|
|
|
* to send this using the client capability `textDocument.signatureHelp.contextSupport === true`
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Context SignatureHelpContext `json:"context,omitempty"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* How a signature help was triggered.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-11-05 11:30:42 -07:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type SignatureHelpTriggerKind float64
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SignatureInformation struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The label of this signature. Will be shown in
|
|
|
|
|
* the UI.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Label string `json:"label"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The human-readable doc-comment of this signature. Will be shown
|
|
|
|
|
* in the UI but can be omitted.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Documentation string/*string | MarkupContent*/ `json:"documentation,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of this signature.
|
|
|
|
|
*/
|
|
|
|
|
Parameters []ParameterInformation `json:"parameters,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Static registration options to be returned in the initialize
|
|
|
|
|
* request.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type StaticRegistrationOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The id used to register the request. The id can be used to deregister
|
|
|
|
|
* the request again. See also Registration#id.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ID string `json:"id,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Represents information about programming constructs like variables, classes,
|
|
|
|
|
* interfaces etc.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type SymbolInformation struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The name of this symbol.
|
|
|
|
|
*/
|
|
|
|
|
Name string `json:"name"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The kind of this symbol.
|
|
|
|
|
*/
|
|
|
|
|
Kind SymbolKind `json:"kind"`
|
2020-03-09 10:51:18 -06:00
|
|
|
|
/**
|
|
|
|
|
* Tags for this completion item.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
Tags []SymbolTag `json:"tags,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Indicates if this symbol is deprecated.
|
2020-03-09 10:51:18 -06:00
|
|
|
|
*
|
|
|
|
|
* @deprecated Use tags instead
|
2019-11-05 11:30:42 -07:00
|
|
|
|
*/
|
|
|
|
|
Deprecated bool `json:"deprecated,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Location Location `json:"location"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* A symbol kind.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type SymbolKind float64
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2020-01-27 06:23:25 -07:00
|
|
|
|
* Symbol tags are extra annotations that tweak the rendering of a symbol.
|
|
|
|
|
* @since 3.15
|
2019-11-05 11:30:42 -07:00
|
|
|
|
*/
|
2020-01-27 06:23:25 -07:00
|
|
|
|
type SymbolTag float64
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Text document specific client capabilities.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type TextDocumentClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Defines which synchronization capabilities the client supports.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Synchronization TextDocumentSyncClientCapabilities `json:"synchronization,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/completion`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Completion CompletionClientCapabilities `json:"completion,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/hover`
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Hover HoverClientCapabilities `json:"hover,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/signatureHelp`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SignatureHelp SignatureHelpClientCapabilities `json:"signatureHelp,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/declaration`
|
|
|
|
|
*
|
|
|
|
|
* @since 3.14.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Declaration DeclarationClientCapabilities `json:"declaration,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/definition`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Definition DefinitionClientCapabilities `json:"definition,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/typeDefinition`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* @since 3.6.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TypeDefinition TypeDefinitionClientCapabilities `json:"typeDefinition,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/implementation`
|
|
|
|
|
*
|
|
|
|
|
* @since 3.6.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Implementation ImplementationClientCapabilities `json:"implementation,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/references`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
References ReferenceClientCapabilities `json:"references,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/documentHighlight`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentHighlight DocumentHighlightClientCapabilities `json:"documentHighlight,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/documentSymbol`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentSymbol DocumentSymbolClientCapabilities `json:"documentSymbol,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/codeAction`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CodeAction CodeActionClientCapabilities `json:"codeAction,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/codeLens`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
CodeLens CodeLensClientCapabilities `json:"codeLens,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/documentLink`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentLink DocumentLinkClientCapabilities `json:"documentLink,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/documentColor`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ColorProvider DocumentColorClientCapabilities `json:"colorProvider,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/formatting`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Formatting DocumentFormattingClientCapabilities `json:"formatting,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/rangeFormatting`
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
RangeFormatting DocumentRangeFormattingClientCapabilities `json:"rangeFormatting,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/onTypeFormatting`
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
OnTypeFormatting DocumentOnTypeFormattingClientCapabilities `json:"onTypeFormatting,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `textDocument/rename`
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Rename RenameClientCapabilities `json:"rename,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to `textDocument/foldingRange` requests.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.10.0
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
FoldingRange FoldingRangeClientCapabilities `json:"foldingRange,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to `textDocument/selectionRange` requests
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SelectionRange SelectionRangeClientCapabilities `json:"selectionRange,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to `textDocument/publishDiagnostics`.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
PublishDiagnostics PublishDiagnosticsClientCapabilities `json:"publishDiagnostics,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2020-01-27 06:23:25 -07:00
|
|
|
|
type TextDocumentContentChangeEvent = struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range of the document that changed.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-20 06:53:37 -07:00
|
|
|
|
Range *Range `json:"range,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2020-01-27 06:23:25 -07:00
|
|
|
|
* The optional length of the range that got replaced.
|
|
|
|
|
*
|
|
|
|
|
* @deprecated use range instead.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
RangeLength float64 `json:"rangeLength,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2020-01-27 06:23:25 -07:00
|
|
|
|
* The new text for the provided range.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Text string `json:"text"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2020-01-27 06:23:25 -07:00
|
|
|
|
* Describes textual changes on a text document. A TextDocumentEdit describes all changes
|
|
|
|
|
* on a document version Si and after they are applied move the document to version Si+1.
|
|
|
|
|
* So the creator of a TextDocumentEdit doesn't need to sort the array of edits or do any
|
|
|
|
|
* kind of ordering. However the edits must be non overlapping.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type TextDocumentEdit struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The text document to change.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument VersionedTextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The edits to be applied.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Edits []TextEdit `json:"edits"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A literal to identify a text document in the client.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentIdentifier struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The text document's uri.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
URI DocumentURI `json:"uri"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* An item to transfer a text document from the client to the
|
|
|
|
|
* server.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type TextDocumentItem struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The text document's uri.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
URI DocumentURI `json:"uri"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The text document's language identifier
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
LanguageID string `json:"languageId"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The version number of this document (it will increase after each
|
|
|
|
|
* change, including undo/redo).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Version float64 `json:"version"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The content of the opened text document.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Text string `json:"text"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A parameter literal used in requests to pass a text document and a position inside that
|
|
|
|
|
* document.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type TextDocumentPositionParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The text document.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The position inside the text document.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Position Position `json:"position"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* General text document registration options.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type TextDocumentRegistrationOptions struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentSelector DocumentSelector /*DocumentSelector | null*/ `json:"documentSelector"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* Represents reasons why a text document is saved.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentSaveReason float64
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type TextDocumentSyncClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether text document synchronization supports dynamic registration.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports sending will save notifications.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
WillSave bool `json:"willSave,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
WillSaveWaitUntil bool `json:"willSaveWaitUntil,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports did save notifications.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DidSave bool `json:"didSave,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* Defines how the host (editor) should sync
|
|
|
|
|
* document changes to the language server.
|
|
|
|
|
*/
|
|
|
|
|
type TextDocumentSyncKind float64
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type TextDocumentSyncOptions struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
OpenClose bool `json:"openClose,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full
|
|
|
|
|
* and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Change TextDocumentSyncKind `json:"change,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
WillSave bool `json:"willSave,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
WillSaveWaitUntil bool `json:"willSaveWaitUntil,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Save SaveOptions `json:"save,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A text edit applicable to a text document.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type TextEdit struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The range of the text document to be manipulated. To insert
|
|
|
|
|
* text into a document create a range where start === end.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Range Range `json:"range"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The string to be inserted. For delete operations use an
|
|
|
|
|
* empty string.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
NewText string `json:"newText"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type TraceValues = string /*'off' | 'messages' | 'verbose'*/
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Since 3.6.0
|
|
|
|
|
*/
|
|
|
|
|
type TypeDefinitionClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
|
|
|
* the client supports the new `TypeDefinitionRegistrationOptions` return value
|
|
|
|
|
* for the corresponding server capability as well.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports additional metadata in the form of definition links.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Since 3.14.0
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
LinkSupport bool `json:"linkSupport,omitempty"`
|
|
|
|
|
}
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type TypeDefinitionOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type TypeDefinitionParams struct {
|
|
|
|
|
TextDocumentPositionParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type TypeDefinitionRegistrationOptions struct {
|
|
|
|
|
TextDocumentRegistrationOptions
|
|
|
|
|
TypeDefinitionOptions
|
|
|
|
|
StaticRegistrationOptions
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-09 10:51:18 -06:00
|
|
|
|
/**
|
|
|
|
|
* A tagging type for string properties that are actually URIs
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
type URI = string
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* General parameters to unregister a request or notification.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type Unregistration struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The id used to unregister the request or notification. Usually an id
|
|
|
|
|
* provided during the register request.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ID string `json:"id"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The method to unregister for.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Method string `json:"method"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type UnregistrationParams struct {
|
|
|
|
|
Unregisterations []Unregistration `json:"unregisterations"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* An identifier to denote a specific version of a text document.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type VersionedTextDocumentIdentifier struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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).
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Version float64/*number | null*/ `json:"version"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocumentIdentifier
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type WatchKind float64
|
|
|
|
|
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters send in a will save text document notification.
|
|
|
|
|
*/
|
|
|
|
|
type WillSaveTextDocumentParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The document that will be saved.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
TextDocument TextDocumentIdentifier `json:"textDocument"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The 'TextDocumentSaveReason'.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Reason TextDocumentSaveReason `json:"reason"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2020-03-17 08:50:15 -06:00
|
|
|
|
type WorkDoneProgressBegin struct {
|
|
|
|
|
Kind string `json:"kind"`
|
|
|
|
|
/**
|
|
|
|
|
* Mandatory title of the progress operation. Used to briefly inform about
|
|
|
|
|
* the kind of operation being performed.
|
|
|
|
|
*
|
|
|
|
|
* Examples: "Indexing" or "Linking dependencies".
|
|
|
|
|
*/
|
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
/**
|
|
|
|
|
* Controls if a cancel button should show to allow the user to cancel the
|
|
|
|
|
* long running operation. Clients that don't support cancellation are allowed
|
|
|
|
|
* to ignore the setting.
|
|
|
|
|
*/
|
|
|
|
|
Cancellable bool `json:"cancellable,omitempty"`
|
|
|
|
|
/**
|
|
|
|
|
* Optional, more detailed associated progress message. Contains
|
|
|
|
|
* complementary information to the `title`.
|
|
|
|
|
*
|
|
|
|
|
* Examples: "3/25 files", "project/src/module2", "node_modules/some_dep".
|
|
|
|
|
* If unset, the previous progress message (if any) is still valid.
|
|
|
|
|
*/
|
|
|
|
|
Message string `json:"message,omitempty"`
|
|
|
|
|
/**
|
|
|
|
|
* Optional progress percentage to display (value 100 is considered 100%).
|
|
|
|
|
* If not provided infinite progress is assumed and clients are allowed
|
|
|
|
|
* to ignore the `percentage` value in subsequent in report notifications.
|
|
|
|
|
*
|
|
|
|
|
* The value should be steadily rising. Clients are free to ignore values
|
|
|
|
|
* that are not following this rule.
|
|
|
|
|
*/
|
|
|
|
|
Percentage float64 `json:"percentage,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2020-01-27 06:23:25 -07:00
|
|
|
|
type WorkDoneProgressCancelParams struct {
|
|
|
|
|
/**
|
|
|
|
|
* The token to be used to report progress.
|
|
|
|
|
*/
|
|
|
|
|
Token ProgressToken `json:"token"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WorkDoneProgressClientCapabilities struct {
|
|
|
|
|
/**
|
|
|
|
|
* Window specific client capabilities.
|
|
|
|
|
*/
|
|
|
|
|
Window struct {
|
|
|
|
|
/**
|
|
|
|
|
* Whether client supports handling progress notifications. If set servers are allowed to
|
|
|
|
|
* report in `workDoneProgress` property in the request specific server capabilities.
|
|
|
|
|
*
|
|
|
|
|
* Since 3.15.0
|
|
|
|
|
*/
|
|
|
|
|
WorkDoneProgress bool `json:"workDoneProgress,omitempty"`
|
|
|
|
|
} `json:"window,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WorkDoneProgressCreateParams struct {
|
|
|
|
|
/**
|
|
|
|
|
* The token to be used to report progress.
|
|
|
|
|
*/
|
|
|
|
|
Token ProgressToken `json:"token"`
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-17 08:50:15 -06:00
|
|
|
|
type WorkDoneProgressEnd struct {
|
|
|
|
|
Kind string `json:"kind"`
|
|
|
|
|
/**
|
|
|
|
|
* Optional, a final message indicating to for example indicate the outcome
|
|
|
|
|
* of the operation.
|
|
|
|
|
*/
|
|
|
|
|
Message string `json:"message,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type WorkDoneProgressOptions struct {
|
|
|
|
|
WorkDoneProgress bool `json:"workDoneProgress,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type WorkDoneProgressParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* An optional token that a server can use to report work done progress.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
WorkDoneToken ProgressToken `json:"workDoneToken,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2020-03-17 08:50:15 -06:00
|
|
|
|
type WorkDoneProgressReport struct {
|
|
|
|
|
Kind string `json:"kind"`
|
|
|
|
|
/**
|
|
|
|
|
* Controls enablement state of a cancel button. This property is only valid if a cancel
|
|
|
|
|
* button got requested in the `WorkDoneProgressStart` payload.
|
|
|
|
|
*
|
|
|
|
|
* Clients that don't support cancellation or don't support control the button's
|
|
|
|
|
* enablement state are allowed to ignore the setting.
|
|
|
|
|
*/
|
|
|
|
|
Cancellable bool `json:"cancellable,omitempty"`
|
|
|
|
|
/**
|
|
|
|
|
* Optional, more detailed associated progress message. Contains
|
|
|
|
|
* complementary information to the `title`.
|
|
|
|
|
*
|
|
|
|
|
* Examples: "3/25 files", "project/src/module2", "node_modules/some_dep".
|
|
|
|
|
* If unset, the previous progress message (if any) is still valid.
|
|
|
|
|
*/
|
|
|
|
|
Message string `json:"message,omitempty"`
|
|
|
|
|
/**
|
|
|
|
|
* Optional progress percentage to display (value 100 is considered 100%).
|
|
|
|
|
* If not provided infinite progress is assumed and clients are allowed
|
|
|
|
|
* to ignore the `percentage` value in subsequent in report notifications.
|
|
|
|
|
*
|
|
|
|
|
* The value should be steadily rising. Clients are free to ignore values
|
|
|
|
|
* that are not following this rule.
|
|
|
|
|
*/
|
|
|
|
|
Percentage float64 `json:"percentage,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Workspace specific client capabilities.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type WorkspaceClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports applying batch edits
|
|
|
|
|
* to the workspace by supporting the request
|
|
|
|
|
* 'workspace/applyEdit'
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ApplyEdit bool `json:"applyEdit,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to `WorkspaceEdit`s
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
WorkspaceEdit WorkspaceEditClientCapabilities `json:"workspaceEdit,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `workspace/didChangeConfiguration` notification.
|
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DidChangeConfiguration DidChangeConfigurationClientCapabilities `json:"didChangeConfiguration,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `workspace/didChangeWatchedFiles` notification.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DidChangeWatchedFiles DidChangeWatchedFilesClientCapabilities `json:"didChangeWatchedFiles,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `workspace/symbol` request.
|
2019-09-24 15:51:00 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Symbol WorkspaceSymbolClientCapabilities `json:"symbol,omitempty"`
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Capabilities specific to the `workspace/executeCommand` request.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ExecuteCommand ExecuteCommandClientCapabilities `json:"executeCommand,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-07-11 12:53:13 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type WorkspaceEdit struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Holds changes to existing resources.
|
2019-07-11 12:53:13 -06:00
|
|
|
|
*/
|
2019-11-18 13:47:42 -07:00
|
|
|
|
Changes map[string][]TextEdit `json:"changes,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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.
|
2019-07-11 12:53:13 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
DocumentChanges []TextDocumentEdit/*TextDocumentEdit | CreateFile | RenameFile | DeleteFile*/ `json:"documentChanges,omitempty"`
|
2019-07-11 12:53:13 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type WorkspaceEditClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The client supports versioned document changes in `WorkspaceEdit`s
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DocumentChanges bool `json:"documentChanges,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The resource operations the client supports. Clients should at least
|
|
|
|
|
* support 'create', 'rename' and 'delete' files and folders.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* @since 3.13.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
ResourceOperations []ResourceOperationKind `json:"resourceOperations,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The failure handling strategy of a client if applying the workspace edit
|
|
|
|
|
* fails.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* @since 3.13.0
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
FailureHandling FailureHandlingKind `json:"failureHandling,omitempty"`
|
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type WorkspaceFolder struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The associated URI for this workspace folder.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
URI string `json:"uri"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The name of the workspace folder. Used to refer to this
|
2020-01-27 06:23:25 -07:00
|
|
|
|
* workspace folder in the user interface.
|
2019-11-05 11:30:42 -07:00
|
|
|
|
*/
|
|
|
|
|
Name string `json:"name"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The workspace folder change event.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type WorkspaceFoldersChangeEvent struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The array of added workspace folders
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
Added []WorkspaceFolder `json:"added"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The array of the removed workspace folders
|
|
|
|
|
*/
|
|
|
|
|
Removed []WorkspaceFolder `json:"removed"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type WorkspaceFoldersClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The workspace client capabilities
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Workspace WorkspaceGn `json:"workspace,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type WorkspaceFoldersInitializeParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The actual configured workspace folders.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
WorkspaceFolders []WorkspaceFolder /*WorkspaceFolder[] | null*/ `json:"workspaceFolders"`
|
2019-11-05 11:30:42 -07:00
|
|
|
|
}
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-05 11:30:42 -07:00
|
|
|
|
type WorkspaceFoldersServerCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The workspace server capabilities
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Workspace WorkspaceGn `json:"workspace,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Client capabilities for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
|
|
|
*/
|
|
|
|
|
type WorkspaceSymbolClientCapabilities struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Symbol request supports dynamic registration.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-05 11:30:42 -07:00
|
|
|
|
DynamicRegistration bool `json:"dynamicRegistration,omitempty"`
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Specific capabilities for the `SymbolKind` in the `workspace/symbol` request.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SymbolKind struct {
|
|
|
|
|
/**
|
2019-11-05 11:30:42 -07: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"`
|
2020-03-09 10:51:18 -06:00
|
|
|
|
/**
|
|
|
|
|
* The client supports tags on `SymbolInformation`.
|
|
|
|
|
* Clients supporting tags have to handle unknown tags gracefully.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.16.0 - Proposed state
|
|
|
|
|
*/
|
|
|
|
|
TagSupport struct {
|
|
|
|
|
/**
|
|
|
|
|
* The tags supported by the client.
|
|
|
|
|
*/
|
|
|
|
|
ValueSet []SymbolTag `json:"valueSet"`
|
|
|
|
|
} `json:"tagSupport,omitempty"`
|
2019-04-23 08:05:23 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* Server capabilities for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
|
|
|
*/
|
|
|
|
|
type WorkspaceSymbolOptions struct {
|
|
|
|
|
WorkDoneProgressOptions
|
|
|
|
|
}
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* The parameters of a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
|
|
|
|
*/
|
|
|
|
|
type WorkspaceSymbolParams struct {
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
2019-11-05 11:30:42 -07:00
|
|
|
|
* A query string to filter symbols by. Clients may send an empty
|
|
|
|
|
* string here to request all symbols.
|
|
|
|
|
*/
|
|
|
|
|
Query string `json:"query"`
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
PartialResultParams
|
2019-04-23 08:05:23 -06:00
|
|
|
|
}
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
const (
|
|
|
|
|
/**
|
|
|
|
|
* Empty kind.
|
|
|
|
|
*/
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Empty CodeActionKind = ""
|
|
|
|
|
/**
|
|
|
|
|
* Base kind for quickfix actions: 'quickfix'
|
|
|
|
|
*/
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
QuickFix CodeActionKind = "quickfix"
|
|
|
|
|
/**
|
|
|
|
|
* Base kind for refactoring actions: 'refactor'
|
|
|
|
|
*/
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Refactor CodeActionKind = "refactor"
|
|
|
|
|
/**
|
|
|
|
|
* Base kind for refactoring extraction actions: 'refactor.extract'
|
|
|
|
|
*
|
|
|
|
|
* Example extract actions:
|
|
|
|
|
*
|
|
|
|
|
* - Extract method
|
|
|
|
|
* - Extract function
|
|
|
|
|
* - Extract variable
|
|
|
|
|
* - Extract interface from class
|
|
|
|
|
* - ...
|
|
|
|
|
*/
|
2019-09-24 15:51:00 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
RefactorExtract CodeActionKind = "refactor.extract"
|
|
|
|
|
/**
|
|
|
|
|
* Base kind for refactoring inline actions: 'refactor.inline'
|
|
|
|
|
*
|
|
|
|
|
* Example inline actions:
|
|
|
|
|
*
|
|
|
|
|
* - Inline function
|
|
|
|
|
* - Inline variable
|
|
|
|
|
* - Inline constant
|
|
|
|
|
* - ...
|
|
|
|
|
*/
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
RefactorInline CodeActionKind = "refactor.inline"
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
* - ...
|
|
|
|
|
*/
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
RefactorRewrite CodeActionKind = "refactor.rewrite"
|
|
|
|
|
/**
|
|
|
|
|
* Base kind for source actions: `source`
|
|
|
|
|
*
|
|
|
|
|
* Source code actions apply to the entire file.
|
|
|
|
|
*/
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Source CodeActionKind = "source"
|
|
|
|
|
/**
|
|
|
|
|
* Base kind for an organize imports source action: `source.organizeImports`
|
|
|
|
|
*/
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2020-01-27 06:23:25 -07:00
|
|
|
|
SourceOrganizeImports CodeActionKind = "source.organizeImports"
|
|
|
|
|
/**
|
|
|
|
|
* Base kind for auto-fix source actions: `source.fixAll`.
|
|
|
|
|
*
|
|
|
|
|
* Fix all actions automatically fix errors that have a clear fix that do not require user input.
|
|
|
|
|
* They should not suppress errors or perform unsafe fixes such as generating new types or classes.
|
|
|
|
|
*
|
|
|
|
|
* @since 3.15.0
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
SourceFixAll CodeActionKind = "source.fixAll"
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TextCompletion CompletionItemKind = 1
|
|
|
|
|
MethodCompletion CompletionItemKind = 2
|
|
|
|
|
FunctionCompletion CompletionItemKind = 3
|
|
|
|
|
ConstructorCompletion CompletionItemKind = 4
|
|
|
|
|
FieldCompletion CompletionItemKind = 5
|
|
|
|
|
VariableCompletion CompletionItemKind = 6
|
|
|
|
|
ClassCompletion CompletionItemKind = 7
|
|
|
|
|
InterfaceCompletion CompletionItemKind = 8
|
|
|
|
|
ModuleCompletion CompletionItemKind = 9
|
|
|
|
|
PropertyCompletion CompletionItemKind = 10
|
|
|
|
|
UnitCompletion CompletionItemKind = 11
|
|
|
|
|
ValueCompletion CompletionItemKind = 12
|
|
|
|
|
EnumCompletion CompletionItemKind = 13
|
|
|
|
|
KeywordCompletion CompletionItemKind = 14
|
|
|
|
|
SnippetCompletion CompletionItemKind = 15
|
|
|
|
|
ColorCompletion CompletionItemKind = 16
|
|
|
|
|
FileCompletion CompletionItemKind = 17
|
|
|
|
|
ReferenceCompletion CompletionItemKind = 18
|
|
|
|
|
FolderCompletion CompletionItemKind = 19
|
|
|
|
|
EnumMemberCompletion CompletionItemKind = 20
|
|
|
|
|
ConstantCompletion CompletionItemKind = 21
|
|
|
|
|
StructCompletion CompletionItemKind = 22
|
|
|
|
|
EventCompletion CompletionItemKind = 23
|
|
|
|
|
OperatorCompletion CompletionItemKind = 24
|
|
|
|
|
TypeParameterCompletion CompletionItemKind = 25
|
|
|
|
|
/**
|
|
|
|
|
* Render a completion as obsolete, usually using a strike-out.
|
|
|
|
|
*/
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
ComplDeprecated CompletionItemTag = 1
|
|
|
|
|
/**
|
|
|
|
|
* Completion was triggered by typing an identifier (24x7 code
|
|
|
|
|
* complete), manual invocation (e.g Ctrl+Space) or via API.
|
|
|
|
|
*/
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Invoked CompletionTriggerKind = 1
|
|
|
|
|
/**
|
|
|
|
|
* Completion was triggered by a trigger character specified by
|
|
|
|
|
* the `triggerCharacters` properties of the `CompletionRegistrationOptions`.
|
|
|
|
|
*/
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TriggerCharacter CompletionTriggerKind = 2
|
|
|
|
|
/**
|
|
|
|
|
* Completion was re-triggered as current completion list is incomplete
|
|
|
|
|
*/
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TriggerForIncompleteCompletions CompletionTriggerKind = 3
|
|
|
|
|
/**
|
|
|
|
|
* Reports an error.
|
|
|
|
|
*/
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SeverityError DiagnosticSeverity = 1
|
|
|
|
|
/**
|
|
|
|
|
* Reports a warning.
|
|
|
|
|
*/
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SeverityWarning DiagnosticSeverity = 2
|
|
|
|
|
/**
|
|
|
|
|
* Reports an information.
|
|
|
|
|
*/
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SeverityInformation DiagnosticSeverity = 3
|
|
|
|
|
/**
|
|
|
|
|
* Reports a hint.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SeverityHint DiagnosticSeverity = 4
|
|
|
|
|
/**
|
|
|
|
|
* Unused or unnecessary code.
|
|
|
|
|
*
|
|
|
|
|
* Clients are allowed to render diagnostics with this tag faded out instead of having
|
|
|
|
|
* an error squiggle.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Unnecessary DiagnosticTag = 1
|
|
|
|
|
/**
|
|
|
|
|
* Deprecated or obsolete code.
|
|
|
|
|
*
|
|
|
|
|
* Clients are allowed to rendered diagnostics with this tag strike through.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Deprecated DiagnosticTag = 2
|
|
|
|
|
/**
|
|
|
|
|
* A textual occurrence.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Text DocumentHighlightKind = 1
|
|
|
|
|
/**
|
|
|
|
|
* Read-access of a symbol, like reading a variable.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Read DocumentHighlightKind = 2
|
|
|
|
|
/**
|
|
|
|
|
* Write-access of a symbol, like writing to a variable.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Write DocumentHighlightKind = 3
|
|
|
|
|
/**
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Abort FailureHandlingKind = "abort"
|
|
|
|
|
/**
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Transactional FailureHandlingKind = "transactional"
|
|
|
|
|
/**
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
TextOnlyTransactional FailureHandlingKind = "textOnlyTransactional"
|
|
|
|
|
/**
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The client tries to undo the operations already executed. But there is no
|
2020-01-27 06:23:25 -07:00
|
|
|
|
* guarantee that this is succeeding.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Undo FailureHandlingKind = "undo"
|
|
|
|
|
/**
|
|
|
|
|
* The file got created.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Created FileChangeType = 1
|
|
|
|
|
/**
|
|
|
|
|
* The file got changed.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Changed FileChangeType = 2
|
|
|
|
|
/**
|
|
|
|
|
* The file got deleted.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
Deleted FileChangeType = 3
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* Folding range for a comment
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Comment FoldingRangeKind = "comment"
|
|
|
|
|
/**
|
|
|
|
|
* Folding range for a imports or includes
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Imports FoldingRangeKind = "imports"
|
|
|
|
|
/**
|
|
|
|
|
* Folding range for a region (e.g. `#region`)
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Region FoldingRangeKind = "region"
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
UnknownProtocolVersion InitializeError = 1
|
|
|
|
|
/**
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* The primary text to be inserted is treated as a plain string.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
PlainTextTextFormat InsertTextFormat = 1
|
|
|
|
|
/**
|
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
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SnippetTextFormat InsertTextFormat = 2
|
|
|
|
|
/**
|
|
|
|
|
* Plain text is supported as a content format
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
PlainText MarkupKind = "plaintext"
|
|
|
|
|
/**
|
|
|
|
|
* Markdown is supported as a content format
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Markdown MarkupKind = "markdown"
|
|
|
|
|
/**
|
|
|
|
|
* An error message.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Error MessageType = 1
|
|
|
|
|
/**
|
|
|
|
|
* A warning message.
|
|
|
|
|
*/
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Warning MessageType = 2
|
|
|
|
|
/**
|
|
|
|
|
* An information message.
|
2019-09-07 15:01:26 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Info MessageType = 3
|
|
|
|
|
/**
|
|
|
|
|
* A log message.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Log MessageType = 4
|
|
|
|
|
/**
|
|
|
|
|
* Supports creating new files and folders.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Create ResourceOperationKind = "create"
|
|
|
|
|
/**
|
|
|
|
|
* Supports renaming existing files and folders.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Rename ResourceOperationKind = "rename"
|
|
|
|
|
/**
|
|
|
|
|
* Supports deleting existing files and folders.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Delete ResourceOperationKind = "delete"
|
|
|
|
|
/**
|
|
|
|
|
* Signature help was invoked manually by the user or by a command.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SigInvoked SignatureHelpTriggerKind = 1
|
|
|
|
|
/**
|
|
|
|
|
* Signature help was triggered by a trigger character.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SigTriggerCharacter SignatureHelpTriggerKind = 2
|
|
|
|
|
/**
|
|
|
|
|
* Signature help was triggered by the cursor moving or by the document content changing.
|
2019-03-11 10:17:05 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
SigContentChange SignatureHelpTriggerKind = 3
|
|
|
|
|
File SymbolKind = 1
|
|
|
|
|
Module SymbolKind = 2
|
|
|
|
|
Namespace SymbolKind = 3
|
|
|
|
|
Package SymbolKind = 4
|
|
|
|
|
Class SymbolKind = 5
|
|
|
|
|
Method SymbolKind = 6
|
|
|
|
|
Property SymbolKind = 7
|
|
|
|
|
Field SymbolKind = 8
|
|
|
|
|
Constructor SymbolKind = 9
|
|
|
|
|
Enum SymbolKind = 10
|
|
|
|
|
Interface SymbolKind = 11
|
|
|
|
|
Function SymbolKind = 12
|
|
|
|
|
Variable SymbolKind = 13
|
|
|
|
|
Constant SymbolKind = 14
|
|
|
|
|
String SymbolKind = 15
|
|
|
|
|
Number SymbolKind = 16
|
|
|
|
|
Boolean SymbolKind = 17
|
|
|
|
|
Array SymbolKind = 18
|
|
|
|
|
Object SymbolKind = 19
|
|
|
|
|
Key SymbolKind = 20
|
|
|
|
|
Null SymbolKind = 21
|
|
|
|
|
EnumMember SymbolKind = 22
|
|
|
|
|
Struct SymbolKind = 23
|
|
|
|
|
Event SymbolKind = 24
|
|
|
|
|
Operator SymbolKind = 25
|
|
|
|
|
TypeParameter SymbolKind = 26
|
2020-01-27 06:23:25 -07:00
|
|
|
|
/**
|
|
|
|
|
* Render a symbol as obsolete, usually using a strike-out.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
DeprecatedSymbol SymbolTag = 1
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Manual TextDocumentSaveReason = 1
|
|
|
|
|
/**
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* Automatic after a delay.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
AfterDelay TextDocumentSaveReason = 2
|
|
|
|
|
/**
|
2019-03-11 10:17:05 -06:00
|
|
|
|
* When the editor lost focus.
|
|
|
|
|
*/
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
FocusOut TextDocumentSaveReason = 3
|
|
|
|
|
/**
|
|
|
|
|
* Documents should not be synced at all.
|
|
|
|
|
*/
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
None TextDocumentSyncKind = 0
|
|
|
|
|
/**
|
|
|
|
|
* Documents are synced by always sending the full content
|
|
|
|
|
* of the document.
|
|
|
|
|
*/
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Full TextDocumentSyncKind = 1
|
|
|
|
|
/**
|
|
|
|
|
* Documents are synced by sending the full content on open.
|
|
|
|
|
* After that only incremental updates to the document are
|
|
|
|
|
* send.
|
2019-04-23 08:05:23 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
Incremental TextDocumentSyncKind = 2
|
|
|
|
|
/**
|
|
|
|
|
* Interested in create events.
|
2019-04-23 08:05:23 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
WatchCreate WatchKind = 1
|
|
|
|
|
/**
|
|
|
|
|
* Interested in change events
|
2019-04-23 08:05:23 -06:00
|
|
|
|
*/
|
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
WatchChange WatchKind = 2
|
|
|
|
|
/**
|
|
|
|
|
* Interested in delete events
|
|
|
|
|
*/
|
2019-04-23 08:05:23 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
WatchDelete WatchKind = 4
|
2019-03-11 10:17:05 -06:00
|
|
|
|
)
|
|
|
|
|
|
2019-11-27 07:10:03 -07:00
|
|
|
|
// Types created to name formal parameters and embedded structs
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type ParamConfiguration struct {
|
|
|
|
|
ConfigurationParams
|
|
|
|
|
PartialResultParams
|
2019-03-11 10:17:05 -06:00
|
|
|
|
}
|
2019-11-17 12:29:15 -07:00
|
|
|
|
type ParamInitialize struct {
|
|
|
|
|
InitializeParams
|
|
|
|
|
WorkDoneProgressParams
|
|
|
|
|
}
|
|
|
|
|
type WorkspaceGn struct {
|
|
|
|
|
WorkspaceFolders WorkspaceFoldersGn `json:"workspaceFolders,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
type WorkspaceFoldersGn struct {
|
|
|
|
|
/**
|
|
|
|
|
* The Server has support for workspace folders
|
|
|
|
|
*/
|
|
|
|
|
Supported bool `json:"supported,omitempty"`
|
2019-03-11 10:17:05 -06:00
|
|
|
|
|
2019-11-17 12:29:15 -07:00
|
|
|
|
/**
|
|
|
|
|
* 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/*string | boolean*/ `json:"changeNotifications,omitempty"`
|
|
|
|
|
}
|