lsp

package
v0.0.0-...-75b7e41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 1 Imported by: 0

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

View Source
const (
	TDSKNone        = lsp.TDSKNone
	TDSKFull        = lsp.TDSKFull
	TDSKIncremental = lsp.TDSKIncremental
)
View Source
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
)
View Source
const (
	ITFPlainText = lsp.ITFPlainText
	ITFSnippet   = lsp.ITFSnippet
)
View Source
const (
	Text  = lsp.Text
	Read  = lsp.Read
	Write = lsp.Write
)
View Source
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.

View Source
const (
	MTError   = lsp.MTError
	MTWarning = lsp.MTWarning
	Info      = lsp.Info
	Log       = lsp.Log
)
View Source
const (
	Created = lsp.Created
	Changed = lsp.Changed
	Deleted = lsp.Deleted
)
View Source
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 CodeLens

type CodeLens = lsp.CodeLens

type CodeLensOptions

type CodeLensOptions = lsp.CodeLensOptions

type CodeLensParams

type CodeLensParams = lsp.CodeLensParams

type Command

type Command = lsp.Command

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 FileEvent

type FileEvent = lsp.FileEvent

type FormattingOptions

type FormattingOptions = lsp.FormattingOptions

type Hover

type Hover = lsp.Hover

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 Location

type Location = lsp.Location

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 None

type None = lsp.None

type ParameterInformation

type ParameterInformation = lsp.ParameterInformation

type Position

type Position = lsp.Position

type PublishDiagnosticsParams

type PublishDiagnosticsParams = lsp.PublishDiagnosticsParams

type Range

type Range = lsp.Range

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 TextEdit

type TextEdit = lsp.TextEdit

type VersionedTextDocumentIdentifier

type VersionedTextDocumentIdentifier = lsp.VersionedTextDocumentIdentifier

type WorkspaceClientCapabilities

type WorkspaceClientCapabilities = lsp.WorkspaceClientCapabilities

type WorkspaceEdit

type WorkspaceEdit = lsp.WorkspaceEdit

type WorkspaceSymbolParams

type WorkspaceSymbolParams = lsp.WorkspaceSymbolParams

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL