Documentation
¶
Index ¶
- Constants
- type ApplyWorkspaceEditParams
- type CodeActionResult
- type CodeLensOptions
- type CodeLensResult
- type CommandResult
- type CompletionItemResult
- type CompletionOptions
- type CompletionTextEdit
- type ContentChange
- type DiagnosticOptions
- type DiagnosticParams
- type DiagnosticResult
- type DidChangeParams
- type DidCloseParams
- type DidOpenParams
- type DocumentDiagnosticReport
- type DocumentLinkResult
- type ExecuteCommandOptions
- type FileOperationCapabilities
- type FileOperationFilter
- type FileOperationPattern
- type FileOperationRegistration
- type FoldingRangeResult
- type HoverResult
- type InitializeParams
- type InitializeResult
- type LocationResult
- type LogMessageParams
- type MarkupContent
- type Notification
- type PrepareRenameResult
- type RenameOptions
- type RenameParams
- type Request
- type Response
- type ResponseError
- type SemanticTokensLegend
- type SemanticTokensOptions
- type SemanticTokensResult
- type Server
- type ServerCapabilities
- type ServerInfo
- type ShowMessageParams
- type TextDocumentIdentifier
- type TextDocumentItem
- type TextDocumentPositionParams
- type TextEditResult
- type WorkspaceCapabilities
- type WorkspaceEditResult
- type WorkspaceFolder
Constants ¶
View Source
const ( LogError = 1 LogWarning = 2 LogInfo = 3 LogDebug = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyWorkspaceEditParams ¶
type ApplyWorkspaceEditParams struct {
Label string `json:"label"`
Edit WorkspaceEditResult `json:"edit"`
}
type CodeActionResult ¶
type CodeActionResult struct {
Title string `json:"title"`
Kind string `json:"kind"`
Edit *WorkspaceEditResult `json:"edit,omitempty"`
Command *CommandResult `json:"command,omitempty"`
Diagnostics []DiagnosticResult `json:"diagnostics,omitempty"`
}
type CodeLensOptions ¶
type CodeLensOptions struct {
ResolveProvider bool `json:"resolveProvider"`
}
type CodeLensResult ¶
type CodeLensResult struct {
Range document.Range `json:"range"`
Command CommandResult `json:"command"`
}
type CommandResult ¶
type CompletionItemResult ¶
type CompletionItemResult struct {
Label string `json:"label"`
Detail string `json:"detail,omitempty"`
InsertText string `json:"insertText,omitempty"`
FilterText string `json:"filterText,omitempty"`
Kind int `json:"kind"`
Documentation *MarkupContent `json:"documentation,omitempty"`
Data map[string]string `json:"data,omitempty"`
TextEdit *CompletionTextEdit `json:"textEdit,omitempty"`
}
type CompletionOptions ¶
type CompletionTextEdit ¶
type ContentChange ¶
type DiagnosticOptions ¶
type DiagnosticParams ¶
type DiagnosticParams struct {
URI string `json:"uri"`
Diagnostics []DiagnosticResult `json:"diagnostics"`
}
type DiagnosticResult ¶
type DidChangeParams ¶
type DidChangeParams struct {
TextDocument struct {
URI string `json:"uri"`
Version int `json:"version"`
} `json:"textDocument"`
ContentChanges []ContentChange `json:"contentChanges"`
}
type DidCloseParams ¶
type DidCloseParams struct {
TextDocument TextDocumentIdentifier `json:"textDocument"`
}
type DidOpenParams ¶
type DidOpenParams struct {
TextDocument TextDocumentItem `json:"textDocument"`
}
type DocumentDiagnosticReport ¶
type DocumentDiagnosticReport struct {
Kind string `json:"kind"`
Items []DiagnosticResult `json:"items"`
}
type DocumentLinkResult ¶
type ExecuteCommandOptions ¶
type ExecuteCommandOptions struct {
Commands []string `json:"commands"`
}
type FileOperationCapabilities ¶
type FileOperationCapabilities struct {
WillCreate *FileOperationRegistration `json:"willCreate,omitempty"`
DidCreate *FileOperationRegistration `json:"didCreate,omitempty"`
DidDelete *FileOperationRegistration `json:"didDelete,omitempty"`
WillRename *FileOperationRegistration `json:"willRename,omitempty"`
}
type FileOperationFilter ¶
type FileOperationFilter struct {
Pattern FileOperationPattern `json:"pattern"`
}
type FileOperationPattern ¶
type FileOperationPattern struct {
Glob string `json:"glob"`
}
type FileOperationRegistration ¶
type FileOperationRegistration struct {
Filters []FileOperationFilter `json:"filters"`
}
type FoldingRangeResult ¶
type HoverResult ¶
type HoverResult struct {
Contents MarkupContent `json:"contents"`
Range *document.Range `json:"range,omitempty"`
}
type InitializeParams ¶
type InitializeParams struct {
RootURI string `json:"rootUri"`
Capabilities json.RawMessage `json:"capabilities"`
WorkspaceFolders []WorkspaceFolder `json:"workspaceFolders"`
}
type InitializeResult ¶
type InitializeResult struct {
Capabilities ServerCapabilities `json:"capabilities"`
ServerInfo *ServerInfo `json:"serverInfo,omitempty"`
}
type LocationResult ¶
type LogMessageParams ¶
type MarkupContent ¶
type Notification ¶
type PrepareRenameResult ¶
type RenameOptions ¶
type RenameOptions struct {
PrepareProvider bool `json:"prepareProvider"`
}
type RenameParams ¶
type RenameParams struct {
TextDocument TextDocumentIdentifier `json:"textDocument"`
Position document.Position `json:"position"`
NewName string `json:"newName"`
}
type Request ¶
type Request struct {
JSONRPC string `json:"jsonrpc"`
ID *json.RawMessage `json:"id,omitempty"`
Method string `json:"method"`
Params json.RawMessage `json:"params,omitempty"`
}
type Response ¶
type Response struct {
JSONRPC string `json:"jsonrpc"`
ID *json.RawMessage `json:"id"`
Result json.RawMessage `json:"result,omitempty"`
Error *ResponseError `json:"error,omitempty"`
}
type ResponseError ¶
type SemanticTokensLegend ¶
type SemanticTokensOptions ¶
type SemanticTokensOptions struct {
Full bool `json:"full"`
Range bool `json:"range"`
Legend SemanticTokensLegend `json:"legend"`
}
type SemanticTokensResult ¶
type SemanticTokensResult struct {
Data []uint32 `json:"data"`
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetVersion ¶
type ServerCapabilities ¶
type ServerCapabilities struct {
TextDocumentSync int `json:"textDocumentSync"`
CompletionProvider *CompletionOptions `json:"completionProvider,omitempty"`
DefinitionProvider bool `json:"definitionProvider"`
HoverProvider bool `json:"hoverProvider"`
ReferencesProvider bool `json:"referencesProvider"`
RenameProvider *RenameOptions `json:"renameProvider,omitempty"`
CodeActionProvider bool `json:"codeActionProvider"`
CodeLensProvider *CodeLensOptions `json:"codeLensProvider,omitempty"`
DocumentHighlightProvider bool `json:"documentHighlightProvider"`
DocumentLinkProvider bool `json:"documentLinkProvider"`
FoldingRangeProvider bool `json:"foldingRangeProvider"`
DocumentSymbolProvider bool `json:"documentSymbolProvider"`
WorkspaceSymbolProvider bool `json:"workspaceSymbolProvider"`
SelectionRangeProvider bool `json:"selectionRangeProvider"`
LinkedEditingRangeProvider bool `json:"linkedEditingRangeProvider"`
DocumentFormattingProvider bool `json:"documentFormattingProvider"`
InlayHintProvider bool `json:"inlayHintProvider"`
DocumentRangeFormattingProvider bool `json:"documentRangeFormattingProvider"`
DiagnosticProvider *DiagnosticOptions `json:"diagnosticProvider,omitempty"`
ExecuteCommandProvider *ExecuteCommandOptions `json:"executeCommandProvider,omitempty"`
SemanticTokensProvider *SemanticTokensOptions `json:"semanticTokensProvider,omitempty"`
Workspace *WorkspaceCapabilities `json:"workspace,omitempty"`
}
type ServerInfo ¶
type ShowMessageParams ¶
type TextDocumentIdentifier ¶
type TextDocumentIdentifier struct {
URI string `json:"uri"`
}
type TextDocumentItem ¶
type TextDocumentPositionParams ¶
type TextDocumentPositionParams struct {
TextDocument TextDocumentIdentifier `json:"textDocument"`
Position document.Position `json:"position"`
}
type TextEditResult ¶
type WorkspaceCapabilities ¶
type WorkspaceCapabilities struct {
FileOperations *FileOperationCapabilities `json:"fileOperations,omitempty"`
}
type WorkspaceEditResult ¶
type WorkspaceEditResult struct {
Changes map[string][]TextEditResult `json:"changes"`
}
type WorkspaceFolder ¶
Click to show internal directories.
Click to hide internal directories.