Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + const Changed + const Class + const Color + const Constructor + const Created + const Deleted + const Enum + const ErrCaughtPanic + const ErrStopped + const ErrorType + const Field + const File + const Function + const InfoType + const Interface + const InternalError + const InvalidParams + const InvalidRequest + const Keyword + const KindArray + const KindBoolean + const KindClass + const KindConstant + const KindConstructor + const KindEnum + const KindField + const KindFile + const KindFunction + const KindInterface + const KindMethod + const KindModule + const KindNamespace + const KindNumber + const KindPackage + const KindProperty + const KindString + const KindVariable + const LogType + const Method + const MethodNotFound + const Module + const ParseError + const Property + const ReadHighlight + const Reference + const ServerErrorEnd + const ServerErrorStart + const SeverityError + const SeverityHint + const SeverityInformation + const SeverityWarning + const Snippet + const SyncFull + const SyncIncremental + const SyncNone + const Text + const TextHighlight + const Unit + const Value + const Variable + const WarningType + const WriteHighlight + var ErrConnectionClosed = fmt.Errorf("Connection closed") + type CancelNotification struct + Params struct{ ... } + type ClientCapabilities struct + type CodeActionContext struct + Diagnostics []Diagnostic + type CodeActionRequest struct + Params struct{ ... } + type CodeActionResponse struct + Error *ResponseErrorHeader + Result []Command + type CodeLens struct + Command *Command + Data interface{} + Range Range + type CodeLensOptions struct + ResolveProvider bool + type CodeLensRequest struct + Params struct{ ... } + type CodeLensResolveRequest struct + Params CodeLens + type CodeLensResolveResponse struct + Error *ResponseErrorHeader + Result *CodeLens + type CodeLensResponse struct + Error *ResponseErrorHeader + Result []CodeLens + type Command struct + Arguments map[string]interface{} + Command string + Title string + type CompletionItem struct + Data interface{} + Detail *string + Documentation *string + FilterText *string + InsertText *string + Kind *CompletionItemKind + Label string + SortText *string + TextEdit *TextEdit + type CompletionItemKind int + type CompletionItemResolveRequest struct + Params CompletionItem + type CompletionItemResolveResponse struct + Error *ResponseErrorHeader + Result *CompletionItem + type CompletionList struct + IsIncomplete bool + Items []CompletionItem + type CompletionOptions struct + ResolveProvider bool + TriggerCharacters []string + type CompletionRequest struct + Params TextDocumentPositionParams + type CompletionResponse struct + Error *ResponseErrorHeader + Result interface{} + type Connection struct + func NewConnection(stream io.ReadWriter) *Connection + func (c *Connection) LogMessage(ty MessageType, message string) error + func (c *Connection) PublishDiagnostics(uri string, diagnostics []Diagnostic) error + func (c *Connection) Serve(ctx context.Context, server Server) error + func (c *Connection) ShowMessage(ty MessageType, message string) error + type Diagnostic struct + Code interface{} + Message string + Range Range + Severity DiagnosticSeverity + Source string + type DiagnosticSeverity int + type DidChangeConfigurationNotification struct + Params struct{ ... } + type DidChangeTextDocumentNotification struct + Params struct{ ... } + type DidChangeWatchedFilesNotification struct + Params struct{ ... } + type DidCloseTextDocumentNotification struct + Params struct{ ... } + type DidOpenTextDocumentNotification struct + Params struct{ ... } + type DidSaveTextDocumentNotification struct + Params struct{ ... } + type DocumentFormattingRequest struct + Params struct{ ... } + type DocumentFormattingResponse struct + Error *ResponseErrorHeader + Result []TextEdit + type DocumentHighlight struct + Kind *DocumentHighlightKind + Range Range + type DocumentHighlightKind int + type DocumentHighlightRequest struct + Params TextDocumentPositionParams + type DocumentHighlightResponse struct + Error *ResponseErrorHeader + Result []DocumentHighlight + type DocumentOnTypeFormattingOptions struct + FirstTriggerCharacter string + MoreTriggerCharacter []string + type DocumentOnTypeFormattingRequest struct + Params struct{ ... } + type DocumentOnTypeFormattingResponse struct + Error *ResponseErrorHeader + Result []TextEdit + type DocumentRangeFormattingRequest struct + Params struct{ ... } + type DocumentRangeFormattingResponse struct + Error *ResponseErrorHeader + Result []TextEdit + type DocumentSymbolRequest struct + Params struct{ ... } + type DocumentSymbolResponse struct + Error *ResponseErrorHeader + Result []SymbolInformation + type ErrUnknownMethod struct + Method string + func (e ErrUnknownMethod) Error() string + type Error struct + Code ErrorCode + Message string + func (e Error) Error() string + type ErrorCode int + type ExitNotification struct + type FileChangeType int + type FileEvent struct + Type FileChangeType + URI string + type FindReferencesRequest struct + Params struct{ ... } + type FindReferencesResponse struct + Error *ResponseErrorHeader + Result interface{} + type FormattingOptions struct + InsertSpaces bool + TabSize int + type GotoDefinitionRequest struct + Params TextDocumentPositionParams + type GotoDefinitionResponse struct + Error *ResponseErrorHeader + Result interface{} + type HoverRequest struct + Params TextDocumentPositionParams + type HoverResponse struct + Error *ResponseErrorHeader + Result struct{ ... } + type InitializeRequest struct + Params struct{ ... } + type InitializeResponse struct + Error ... + Result ... + type Location struct + Range Range + URI string + type LogMessageNotification struct + Params struct{ ... } + type MarkedString struct + Language string + Value string + type Message struct + JSONRPC string + type MessageActionItem struct + Title string + type MessageType int + type NotificationMessageHeader struct + Method string + type ParameterInformation struct + Documentation *string + Label string + type Position struct + Column int + Line int + type PublishDiagnosticsNotification struct + Params struct{ ... } + type Range struct + End Position + Start Position + type RenameRequest struct + Params struct{ ... } + type RenameResponse struct + Error *ResponseErrorHeader + Result *WorkspaceEdit + type Request interface + RequestID func() interface{} + type RequestMessageHeader struct + ID interface{} + Method string + func (h RequestMessageHeader) RequestID() interface{} + type ResponseErrorHeader struct + Code ErrorCode + Message string + type ResponseMessageHeader struct + ID interface{} + type Server interface + CodeAction func(ctx context.Context, doc TextDocumentIdentifier, rng Range, ...) ([]Command, error) + CodeLens func(ctx context.Context, doc TextDocumentIdentifier) ([]CodeLens, error) + CodeLensResolve func(ctx context.Context, codelens CodeLens) (CodeLens, error) + Completion func(ctx context.Context, uri TextDocumentIdentifier, pos Position) (CompletionList, error) + CompletionItemResolve func(ctx context.Context, item CompletionItem) (CompletionItem, error) + DocumentFormatting func(ctx context.Context, doc TextDocumentIdentifier, opts FormattingOptions) ([]TextEdit, error) + DocumentHighlights func(ctx context.Context, uri TextDocumentIdentifier, position Position) ([]DocumentHighlight, error) + DocumentOnTypeFormatting func(ctx context.Context, doc TextDocumentIdentifier, pos Position, char string, ...) ([]TextEdit, error) + DocumentRangeFormatting func(ctx context.Context, doc TextDocumentIdentifier, rng Range, ...) ([]TextEdit, error) + DocumentSymbols func(ctx context.Context, doc TextDocumentIdentifier) ([]SymbolInformation, error) + FindReferences func(ctx context.Context, uri TextDocumentIdentifier, position Position, ...) ([]Location, error) + GotoDefinition func(ctx context.Context, uri TextDocumentIdentifier, position Position) ([]Location, error) + Hover func(ctx context.Context, uri TextDocumentIdentifier, position Position) ([]MarkedString, *Range, error) + Initialize func(ctx context.Context, processID int, rootPath string) (ServerCapabilities, error) + OnChangeConfiguration func(ctx context.Context, settings map[string]interface{}) + OnChangeTextDocument func(ctx context.Context, item VersionedTextDocumentIdentifier, ...) + OnChangeWatchedFiles func(ctx context.Context, changes []FileEvent) + OnCloseTextDocument func(ctx context.Context, item TextDocumentIdentifier) + OnExit func(ctx context.Context) error + OnOpenTextDocument func(ctx context.Context, item TextDocumentItem) + OnSaveTextDocument func(ctx context.Context, item TextDocumentIdentifier) + Rename func(ctx context.Context, doc TextDocumentIdentifier, pos Position, newName string) (WorkspaceEdit, error) + Shutdown func(ctx context.Context) error + SignatureHelp func(ctx context.Context, uri TextDocumentIdentifier, position Position) (sigs []SignatureInformation, activeSig *int, activeParam *int, err error) + WorkspaceSymbols func(ctx context.Context, query string) ([]SymbolInformation, error) + type ServerCapabilities struct + CodeActionProvider bool + CodeLensProvider *CodeLensOptions + CompletionProvider CompletionOptions + DefinitionProvider bool + DocumentFormattingProvider bool + DocumentHighlightProvider bool + DocumentOnTypeFormattingProvider *DocumentOnTypeFormattingOptions + DocumentRangeFormattingProvider bool + DocumentSymbolProvider bool + HoverProvider bool + ReferencesProvider bool + RenameProvider bool + SignatureHelpProvider SignatureHelpOptions + TextDocumentSync TextDocumentSyncKind + WorkspaceSymbolProvider bool + type ShowMessageNotification struct + Params struct{ ... } + type ShowMessageRequest struct + Params struct{ ... } + type ShowMessageResponse struct + Error *ResponseErrorHeader + Result *struct{} + type ShutdownRequest struct + type ShutdownResponse struct + Error *ResponseErrorHeader + Result *struct{} + type SignatureHelpOptions struct + TriggerCharacters []string + type SignatureHelpRequest struct + Params TextDocumentPositionParams + type SignatureHelpResponse struct + Error *ResponseErrorHeader + Result ... + type SignatureInformation struct + Documentation *string + Label string + Parameters []ParameterInformation + type SymbolInformation struct + ContainerName *string + Kind SymbolKind + Location Location + Name string + type SymbolKind int + type TextDocumentContentChangeEvent struct + Range *Range + RangeLength *int + Text string + type TextDocumentIdentifier struct + URI string + type TextDocumentItem struct + LanguageID string + Text string + URI string + Version int + type TextDocumentPositionParams struct + Document TextDocumentIdentifier + Position Position + type TextDocumentSyncKind int + type TextEdit struct + NewText string + Range Range + type VersionedTextDocumentIdentifier struct + URI string + Version int + type WorkspaceEdit struct + Changes interface{} + type WorkspaceSymbolRequest struct + Params struct{ ... } + type WorkspaceSymbolResponse struct + Error *ResponseErrorHeader + Result []SymbolInformation Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021