Documentation ¶
Overview ¶
Package lsp contains Go types for the messages used in the Language Server Protocol.
See https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md for more information.
Index ¶
- Constants
- type CancelParams
- type ClientCapabilities
- type CodeActionContext
- type CodeActionParams
- type CodeLens
- type CodeLensOptions
- type CodeLensParams
- type Command
- type CompletionContext
- type CompletionItem
- type CompletionItemKind
- type CompletionList
- type CompletionOptions
- type CompletionParams
- type CompletionTriggerKind
- type ConfigurationItem
- type ConfigurationParams
- type ConfigurationResult
- type Diagnostic
- type DiagnosticSeverity
- type DidChangeConfigurationParams
- type DidChangeTextDocumentParams
- type DidChangeWatchedFilesParams
- type DidCloseTextDocumentParams
- type DidOpenTextDocumentParams
- type DidSaveTextDocumentParams
- type DocumentFormattingParams
- type DocumentHighlight
- type DocumentHighlightKind
- type DocumentOnTypeFormattingOptions
- type DocumentOnTypeFormattingParams
- type DocumentRangeFormattingParams
- type DocumentSymbolParams
- type DocumentURI
- type ExecuteCommandOptions
- type ExecuteCommandParams
- type FileChangeType
- type FileEvent
- type FormattingOptions
- type Hover
- type ID
- type InitializeError
- type InitializeParams
- type InitializeResult
- type InsertTextFormat
- type Location
- type LogMessageParams
- type MarkedString
- type MessageActionItem
- type MessageType
- type None
- type ParameterInformation
- type Position
- type PublishDiagnosticsParams
- type Range
- type ReferenceContext
- type ReferenceParams
- type RenameParams
- type SaveOptions
- type ServerCapabilities
- type ShowMessageParams
- type ShowMessageRequestParams
- type SignatureHelp
- type SignatureHelpOptions
- type SignatureInformation
- type SymbolInformation
- type SymbolKind
- type TextDocumentClientCapabilities
- type TextDocumentContentChangeEvent
- type TextDocumentIdentifier
- type TextDocumentItem
- type TextDocumentPositionParams
- type TextDocumentSyncKind
- type TextDocumentSyncOptions
- type TextDocumentSyncOptionsOrKind
- type TextEdit
- type VersionedTextDocumentIdentifier
- type WorkspaceClientCapabilities
- type WorkspaceEdit
- type WorkspaceSymbolParams
Constants ¶
const ( TDSKNone = lsp.TDSKNone TDSKFull = lsp.TDSKFull TDSKIncremental = lsp.TDSKIncremental )
const ( CIKText = lsp.CIKText CIKMethod = lsp.CIKMethod CIKFunction = lsp.CIKFunction CIKConstructor = lsp.CIKConstructor CIKField = lsp.CIKField CIKVariable = lsp.CIKVariable CIKClass = lsp.CIKClass CIKInterface = lsp.CIKInterface CIKModule = lsp.CIKModule CIKProperty = lsp.CIKProperty CIKUnit = lsp.CIKUnit CIKValue = lsp.CIKValue CIKEnum = lsp.CIKEnum CIKKeyword = lsp.CIKKeyword CIKSnippet = lsp.CIKSnippet CIKColor = lsp.CIKColor CIKFile = lsp.CIKFile CIKReference = lsp.CIKReference CIKFolder = lsp.CIKFolder CIKEnumMember = lsp.CIKEnumMember CIKConstant = lsp.CIKConstant CIKStruct = lsp.CIKStruct CIKEvent = lsp.CIKEvent CIKOperator = lsp.CIKOperator CIKTypeParameter = lsp.CIKTypeParameter )
const ( ITFPlainText = lsp.ITFPlainText ITFSnippet = lsp.ITFSnippet )
const ( Text = lsp.Text Read = lsp.Read Write = lsp.Write )
const ( SKFile = lsp.SKFile SKModule = lsp.SKModule SKNamespace = lsp.SKNamespace SKPackage = lsp.SKPackage SKClass = lsp.SKClass SKMethod = lsp.SKMethod SKProperty = lsp.SKProperty SKField = lsp.SKField SKConstructor = lsp.SKConstructor SKEnum = lsp.SKEnum SKInterface = lsp.SKInterface SKFunction = lsp.SKFunction SKVariable = lsp.SKVariable SKConstant = lsp.SKConstant SKString = lsp.SKString SKNumber = lsp.SKNumber SKBoolean = lsp.SKBoolean SKArray = lsp.SKArray SKObject = lsp.SKObject SKKey = lsp.SKKey SKNull = lsp.SKNull SKEnumMember = lsp.SKEnumMember SKStruct = lsp.SKStruct SKEvent = lsp.SKEvent SKOperator = lsp.SKOperator SKTypeParameter = lsp.SKTypeParameter )
The SymbolKind values are defined at https://microsoft.github.io/language-server-protocol/specification.
const ( MTError = lsp.MTError MTWarning = lsp.MTWarning Info = lsp.Info Log = lsp.Log )
const ( Created = lsp.Created Changed = lsp.Changed Deleted = lsp.Deleted )
const ( Error = lsp.Error Warning = lsp.Warning Information = lsp.Information Hint = lsp.Hint )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelParams ¶
type CancelParams = lsp.CancelParams
type ClientCapabilities ¶
type ClientCapabilities = lsp.ClientCapabilities
type CodeActionContext ¶
type CodeActionContext = lsp.CodeActionContext
type CodeActionParams ¶
type CodeActionParams = lsp.CodeActionParams
type CodeLensOptions ¶
type CodeLensOptions = lsp.CodeLensOptions
type CodeLensParams ¶
type CodeLensParams = lsp.CodeLensParams
type CompletionContext ¶
type CompletionContext = lsp.CompletionContext
type CompletionItem ¶
type CompletionItem = lsp.CompletionItem
type CompletionItemKind ¶
type CompletionItemKind = lsp.CompletionItemKind
type CompletionList ¶
type CompletionList = lsp.CompletionList
type CompletionOptions ¶
type CompletionOptions = lsp.CompletionOptions
type CompletionParams ¶
type CompletionParams = lsp.CompletionParams
type CompletionTriggerKind ¶
type CompletionTriggerKind int
const ( CTKInvoked CompletionTriggerKind = 1 CTKTriggerCharacter = 2 )
type ConfigurationItem ¶
type ConfigurationItem = lsp.ConfigurationItem
type ConfigurationParams ¶
type ConfigurationParams = lsp.ConfigurationParams
type ConfigurationResult ¶
type ConfigurationResult = lsp.ConfigurationResult
type Diagnostic ¶
type Diagnostic = lsp.Diagnostic
type DiagnosticSeverity ¶
type DiagnosticSeverity = lsp.DiagnosticSeverity
type DidChangeConfigurationParams ¶
type DidChangeConfigurationParams = lsp.DidChangeConfigurationParams
type DidChangeTextDocumentParams ¶
type DidChangeTextDocumentParams = lsp.DidChangeTextDocumentParams
type DidChangeWatchedFilesParams ¶
type DidChangeWatchedFilesParams = lsp.DidChangeWatchedFilesParams
type DidCloseTextDocumentParams ¶
type DidCloseTextDocumentParams = lsp.DidCloseTextDocumentParams
type DidOpenTextDocumentParams ¶
type DidOpenTextDocumentParams = lsp.DidOpenTextDocumentParams
type DidSaveTextDocumentParams ¶
type DidSaveTextDocumentParams = lsp.DidSaveTextDocumentParams
type DocumentFormattingParams ¶
type DocumentFormattingParams = lsp.DocumentFormattingParams
type DocumentHighlight ¶
type DocumentHighlight = lsp.DocumentHighlight
type DocumentHighlightKind ¶
type DocumentHighlightKind = lsp.DocumentHighlightKind
type DocumentOnTypeFormattingOptions ¶
type DocumentOnTypeFormattingOptions = lsp.DocumentOnTypeFormattingOptions
type DocumentOnTypeFormattingParams ¶
type DocumentOnTypeFormattingParams = lsp.DocumentOnTypeFormattingParams
type DocumentRangeFormattingParams ¶
type DocumentRangeFormattingParams = lsp.DocumentRangeFormattingParams
type DocumentSymbolParams ¶
type DocumentSymbolParams = lsp.DocumentSymbolParams
type DocumentURI ¶
type DocumentURI = lsp.DocumentURI
type ExecuteCommandOptions ¶
type ExecuteCommandOptions = lsp.ExecuteCommandOptions
type ExecuteCommandParams ¶
type ExecuteCommandParams = lsp.ExecuteCommandParams
type FileChangeType ¶
type FileChangeType = lsp.FileChangeType
type FormattingOptions ¶
type FormattingOptions = lsp.FormattingOptions
type ID ¶
type ID = lsp.ID
ID represents a JSON-RPC 2.0 request ID, which may be either a string or number (or null, which is unsupported).
type InitializeError ¶
type InitializeError = lsp.InitializeError
type InitializeParams ¶
type InitializeParams = lsp.InitializeParams
type InitializeResult ¶
type InitializeResult = lsp.InitializeResult
type InsertTextFormat ¶
type InsertTextFormat = lsp.InsertTextFormat
type LogMessageParams ¶
type LogMessageParams = lsp.LogMessageParams
type MarkedString ¶
type MarkedString = lsp.MarkedString
func RawMarkedString ¶
func RawMarkedString(s string) MarkedString
RawMarkedString returns a MarkedString consisting of only a raw string (i.e., "foo" instead of {"value":"foo", "language":"bar"}).
type MessageActionItem ¶
type MessageActionItem = lsp.MessageActionItem
type MessageType ¶
type MessageType = lsp.MessageType
type ParameterInformation ¶
type ParameterInformation = lsp.ParameterInformation
type PublishDiagnosticsParams ¶
type PublishDiagnosticsParams = lsp.PublishDiagnosticsParams
type ReferenceContext ¶
type ReferenceContext = lsp.ReferenceContext
type ReferenceParams ¶
type ReferenceParams = lsp.ReferenceParams
type RenameParams ¶
type RenameParams = lsp.RenameParams
type SaveOptions ¶
type SaveOptions = lsp.SaveOptions
type ServerCapabilities ¶
type ServerCapabilities = lsp.ServerCapabilities
type ShowMessageParams ¶
type ShowMessageParams = lsp.ShowMessageParams
type ShowMessageRequestParams ¶
type ShowMessageRequestParams = lsp.ShowMessageRequestParams
type SignatureHelp ¶
type SignatureHelp = lsp.SignatureHelp
type SignatureHelpOptions ¶
type SignatureHelpOptions = lsp.SignatureHelpOptions
type SignatureInformation ¶
type SignatureInformation = lsp.SignatureInformation
type SymbolInformation ¶
type SymbolInformation = lsp.SymbolInformation
type SymbolKind ¶
type SymbolKind = lsp.SymbolKind
type TextDocumentClientCapabilities ¶
type TextDocumentClientCapabilities = lsp.TextDocumentClientCapabilities
type TextDocumentContentChangeEvent ¶
type TextDocumentContentChangeEvent = lsp.TextDocumentContentChangeEvent
type TextDocumentIdentifier ¶
type TextDocumentIdentifier = lsp.TextDocumentIdentifier
type TextDocumentItem ¶
type TextDocumentItem = lsp.TextDocumentItem
type TextDocumentPositionParams ¶
type TextDocumentPositionParams = lsp.TextDocumentPositionParams
type TextDocumentSyncKind ¶
type TextDocumentSyncKind = lsp.TextDocumentSyncKind
TextDocumentSyncKind is a DEPRECATED way to describe how text document syncing works. Use TextDocumentSyncOptions instead (or the Options field of TextDocumentSyncOptionsOrKind if you need to support JSON-(un)marshaling both).
type TextDocumentSyncOptions ¶
type TextDocumentSyncOptions = lsp.TextDocumentSyncOptions
type TextDocumentSyncOptionsOrKind ¶
type TextDocumentSyncOptionsOrKind = lsp.TextDocumentSyncOptionsOrKind
TextDocumentSyncOptions holds either a TextDocumentSyncKind or TextDocumentSyncOptions. The LSP API allows either to be specified in the (ServerCapabilities).TextDocumentSync field.
type VersionedTextDocumentIdentifier ¶
type VersionedTextDocumentIdentifier = lsp.VersionedTextDocumentIdentifier
type WorkspaceClientCapabilities ¶
type WorkspaceClientCapabilities = lsp.WorkspaceClientCapabilities
type WorkspaceEdit ¶
type WorkspaceEdit = lsp.WorkspaceEdit
type WorkspaceSymbolParams ¶
type WorkspaceSymbolParams = lsp.WorkspaceSymbolParams