Documentation ¶
Index ¶
- type LSPServer
- func (p *LSPServer) CodeAction(ctx context.Context, params *protocol.CodeActionParams) ([]protocol.CodeAction, error)
- func (p *LSPServer) CodeLens(ctx context.Context, params *protocol.CodeLensParams) ([]protocol.CodeLens, error)
- func (s *LSPServer) ColorPresentation(context.Context, *protocol.ColorPresentationParams) ([]protocol.ColorPresentation, error)
- func (p *LSPServer) Completion(ctx context.Context, params *protocol.CompletionParams) (*protocol.CompletionList, error)
- func (s *LSPServer) Declaration(context.Context, *protocol.DeclarationParams) (*protocol.Or_textDocument_declaration, error)
- func (p *LSPServer) Definition(ctx context.Context, params *protocol.DefinitionParams) ([]protocol.Location, error)
- func (s *LSPServer) Diagnostic(context.Context, *string) (*string, error)
- func (s *LSPServer) DiagnosticWorkspace(context.Context, *protocol.WorkspaceDiagnosticParams) (*protocol.WorkspaceDiagnosticReport, error)
- func (p *LSPServer) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams) error
- func (s *LSPServer) DidChangeConfiguration(ctx context.Context, params *protocol.DidChangeConfigurationParams) error
- func (s *LSPServer) DidChangeNotebookDocument(context.Context, *protocol.DidChangeNotebookDocumentParams) error
- func (s *LSPServer) DidChangeWatchedFiles(ctx context.Context, params *protocol.DidChangeWatchedFilesParams) error
- func (s *LSPServer) DidChangeWorkspaceFolders(ctx context.Context, params *protocol.DidChangeWorkspaceFoldersParams) error
- func (s *LSPServer) DidClose(ctx context.Context, params *protocol.DidCloseTextDocumentParams) error
- func (s *LSPServer) DidCloseNotebookDocument(context.Context, *protocol.DidCloseNotebookDocumentParams) error
- func (s *LSPServer) DidCreateFiles(context.Context, *protocol.CreateFilesParams) error
- func (s *LSPServer) DidDeleteFiles(context.Context, *protocol.DeleteFilesParams) error
- func (p *LSPServer) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) error
- func (s *LSPServer) DidOpenNotebookDocument(context.Context, *protocol.DidOpenNotebookDocumentParams) error
- func (s *LSPServer) DidRenameFiles(context.Context, *protocol.RenameFilesParams) error
- func (s *LSPServer) DidSave(ctx context.Context, params *protocol.DidSaveTextDocumentParams) error
- func (s *LSPServer) DidSaveNotebookDocument(context.Context, *protocol.DidSaveNotebookDocumentParams) error
- func (s *LSPServer) DocumentColor(context.Context, *protocol.DocumentColorParams) ([]protocol.ColorInformation, error)
- func (p *LSPServer) DocumentHighlight(ctx context.Context, params *protocol.DocumentHighlightParams) ([]protocol.DocumentHighlight, error)
- func (s *LSPServer) DocumentLink(ctx context.Context, params *protocol.DocumentLinkParams) (links []protocol.DocumentLink, err error)
- func (s *LSPServer) DocumentSymbol(ctx context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error)
- func (s *LSPServer) ExecuteCommand(context.Context, *protocol.ExecuteCommandParams) (interface{}, error)
- func (s *LSPServer) Exit(ctx context.Context) error
- func (s *LSPServer) FoldingRange(context.Context, *protocol.FoldingRangeParams) ([]protocol.FoldingRange, error)
- func (s *LSPServer) Formatting(ctx context.Context, params *protocol.DocumentFormattingParams) ([]protocol.TextEdit, error)
- func (p *LSPServer) Hover(ctx context.Context, params *protocol.HoverParams) (*protocol.Hover, error)
- func (s *LSPServer) Implementation(context.Context, *protocol.ImplementationParams) ([]protocol.Location, error)
- func (s *LSPServer) IncomingCalls(context.Context, *protocol.CallHierarchyIncomingCallsParams) ([]protocol.CallHierarchyIncomingCall, error)
- func (s *LSPServer) Initialize(ctx context.Context, params *protocol.ParamInitialize) (*protocol.InitializeResult, error)
- func (s *LSPServer) Initialized(ctx context.Context, params *protocol.InitializedParams) error
- func (s *LSPServer) InlayHint(context.Context, *protocol.InlayHintParams) ([]protocol.InlayHint, error)
- func (s *LSPServer) InlineCompletion(context.Context, *protocol.InlineCompletionParams) (*protocol.Or_Result_textDocument_inlineCompletion, error)
- func (s *LSPServer) InlineValue(context.Context, *protocol.InlineValueParams) ([]protocol.InlineValue, error)
- func (s *LSPServer) LinkedEditingRange(context.Context, *protocol.LinkedEditingRangeParams) (*protocol.LinkedEditingRanges, error)
- func (s *LSPServer) Moniker(context.Context, *protocol.MonikerParams) ([]protocol.Moniker, error)
- func (s *LSPServer) OnTypeFormatting(context.Context, *protocol.DocumentOnTypeFormattingParams) ([]protocol.TextEdit, error)
- func (s *LSPServer) OutgoingCalls(context.Context, *protocol.CallHierarchyOutgoingCallsParams) ([]protocol.CallHierarchyOutgoingCall, error)
- func (s *LSPServer) PrepareCallHierarchy(context.Context, *protocol.CallHierarchyPrepareParams) ([]protocol.CallHierarchyItem, error)
- func (s *LSPServer) PrepareRename(context.Context, *protocol.PrepareRenameParams) (*protocol.PrepareRenameResult, error)
- func (s *LSPServer) PrepareTypeHierarchy(context.Context, *protocol.TypeHierarchyPrepareParams) ([]protocol.TypeHierarchyItem, error)
- func (s *LSPServer) Progress(context.Context, *protocol.ProgressParams) error
- func (s *LSPServer) RangeFormatting(context.Context, *protocol.DocumentRangeFormattingParams) ([]protocol.TextEdit, error)
- func (s *LSPServer) RangesFormatting(context.Context, *protocol.DocumentRangesFormattingParams) ([]protocol.TextEdit, error)
- func (p *LSPServer) References(ctx context.Context, params *protocol.ReferenceParams) ([]protocol.Location, error)
- func (s *LSPServer) Rename(context.Context, *protocol.RenameParams) (*protocol.WorkspaceEdit, error)
- func (s *LSPServer) Resolve(context.Context, *protocol.InlayHint) (*protocol.InlayHint, error)
- func (s *LSPServer) ResolveCodeAction(context.Context, *protocol.CodeAction) (*protocol.CodeAction, error)
- func (s *LSPServer) ResolveCodeLens(context.Context, *protocol.CodeLens) (*protocol.CodeLens, error)
- func (s *LSPServer) ResolveCompletionItem(context.Context, *protocol.CompletionItem) (*protocol.CompletionItem, error)
- func (s *LSPServer) ResolveDocumentLink(context.Context, *protocol.DocumentLink) (*protocol.DocumentLink, error)
- func (s *LSPServer) ResolveWorkspaceSymbol(context.Context, *protocol.WorkspaceSymbol) (*protocol.WorkspaceSymbol, error)
- func (p *LSPServer) Run() error
- func (s *LSPServer) SelectionRange(context.Context, *protocol.SelectionRangeParams) ([]protocol.SelectionRange, error)
- func (s *LSPServer) SemanticTokensFull(context.Context, *protocol.SemanticTokensParams) (*protocol.SemanticTokens, error)
- func (s *LSPServer) SemanticTokensFullDelta(context.Context, *protocol.SemanticTokensDeltaParams) (interface{}, error)
- func (s *LSPServer) SemanticTokensRange(context.Context, *protocol.SemanticTokensRangeParams) (*protocol.SemanticTokens, error)
- func (s *LSPServer) SetTrace(context.Context, *protocol.SetTraceParams) error
- func (s *LSPServer) Shutdown(context.Context) error
- func (s *LSPServer) SignatureHelp(context.Context, *protocol.SignatureHelpParams) (*protocol.SignatureHelp, error)
- func (s *LSPServer) Subtypes(context.Context, *protocol.TypeHierarchySubtypesParams) ([]protocol.TypeHierarchyItem, error)
- func (s *LSPServer) Supertypes(context.Context, *protocol.TypeHierarchySupertypesParams) ([]protocol.TypeHierarchyItem, error)
- func (s *LSPServer) Symbol(context.Context, *protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error)
- func (s *LSPServer) TypeDefinition(context.Context, *protocol.TypeDefinitionParams) ([]protocol.Location, error)
- func (s *LSPServer) WillCreateFiles(context.Context, *protocol.CreateFilesParams) (*protocol.WorkspaceEdit, error)
- func (s *LSPServer) WillDeleteFiles(context.Context, *protocol.DeleteFilesParams) (*protocol.WorkspaceEdit, error)
- func (s *LSPServer) WillRenameFiles(context.Context, *protocol.RenameFilesParams) (*protocol.WorkspaceEdit, error)
- func (s *LSPServer) WillSave(context.Context, *protocol.WillSaveTextDocumentParams) error
- func (s *LSPServer) WillSaveWaitUntil(context.Context, *protocol.WillSaveTextDocumentParams) ([]protocol.TextEdit, error)
- func (s *LSPServer) WorkDoneProgressCancel(context.Context, *protocol.WorkDoneProgressCancelParams) error
- type Option
- type SyncFile
- type WaModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LSPServer ¶
type LSPServer struct {
// contains filtered or unexported fields
}
func NewLSPServer ¶
func (*LSPServer) CodeAction ¶ added in v0.13.0
func (p *LSPServer) CodeAction(ctx context.Context, params *protocol.CodeActionParams) ([]protocol.CodeAction, error)
func (*LSPServer) ColorPresentation ¶ added in v0.13.0
func (s *LSPServer) ColorPresentation(context.Context, *protocol.ColorPresentationParams) ([]protocol.ColorPresentation, error)
func (*LSPServer) Completion ¶ added in v0.13.0
func (p *LSPServer) Completion(ctx context.Context, params *protocol.CompletionParams) (*protocol.CompletionList, error)
func (*LSPServer) Declaration ¶ added in v0.13.0
func (s *LSPServer) Declaration(context.Context, *protocol.DeclarationParams) (*protocol.Or_textDocument_declaration, error)
func (*LSPServer) Definition ¶ added in v0.13.0
func (*LSPServer) Diagnostic ¶ added in v0.13.0
func (*LSPServer) DiagnosticWorkspace ¶ added in v0.13.0
func (s *LSPServer) DiagnosticWorkspace(context.Context, *protocol.WorkspaceDiagnosticParams) (*protocol.WorkspaceDiagnosticReport, error)
func (*LSPServer) DidChangeConfiguration ¶ added in v0.13.0
func (*LSPServer) DidChangeNotebookDocument ¶ added in v0.13.0
func (*LSPServer) DidChangeWatchedFiles ¶ added in v0.13.0
func (*LSPServer) DidChangeWorkspaceFolders ¶ added in v0.13.0
func (*LSPServer) DidCloseNotebookDocument ¶ added in v0.13.0
func (*LSPServer) DidCreateFiles ¶ added in v0.13.0
func (*LSPServer) DidDeleteFiles ¶ added in v0.13.0
func (*LSPServer) DidOpenNotebookDocument ¶ added in v0.13.0
func (*LSPServer) DidRenameFiles ¶ added in v0.13.0
func (*LSPServer) DidSaveNotebookDocument ¶ added in v0.13.0
func (*LSPServer) DocumentColor ¶ added in v0.13.0
func (s *LSPServer) DocumentColor(context.Context, *protocol.DocumentColorParams) ([]protocol.ColorInformation, error)
func (*LSPServer) DocumentHighlight ¶ added in v0.13.0
func (p *LSPServer) DocumentHighlight(ctx context.Context, params *protocol.DocumentHighlightParams) ([]protocol.DocumentHighlight, error)
func (*LSPServer) DocumentLink ¶ added in v0.13.0
func (s *LSPServer) DocumentLink(ctx context.Context, params *protocol.DocumentLinkParams) (links []protocol.DocumentLink, err error)
func (*LSPServer) DocumentSymbol ¶ added in v0.13.0
func (*LSPServer) ExecuteCommand ¶ added in v0.13.0
func (*LSPServer) FoldingRange ¶ added in v0.13.0
func (s *LSPServer) FoldingRange(context.Context, *protocol.FoldingRangeParams) ([]protocol.FoldingRange, error)
func (*LSPServer) Formatting ¶ added in v0.13.0
func (*LSPServer) Implementation ¶ added in v0.13.0
func (*LSPServer) IncomingCalls ¶ added in v0.13.0
func (s *LSPServer) IncomingCalls(context.Context, *protocol.CallHierarchyIncomingCallsParams) ([]protocol.CallHierarchyIncomingCall, error)
func (*LSPServer) Initialize ¶ added in v0.13.0
func (s *LSPServer) Initialize(ctx context.Context, params *protocol.ParamInitialize) (*protocol.InitializeResult, error)
func (*LSPServer) Initialized ¶ added in v0.13.0
func (*LSPServer) InlineCompletion ¶ added in v0.13.0
func (s *LSPServer) InlineCompletion(context.Context, *protocol.InlineCompletionParams) (*protocol.Or_Result_textDocument_inlineCompletion, error)
func (*LSPServer) InlineValue ¶ added in v0.13.0
func (s *LSPServer) InlineValue(context.Context, *protocol.InlineValueParams) ([]protocol.InlineValue, error)
func (*LSPServer) LinkedEditingRange ¶ added in v0.13.0
func (s *LSPServer) LinkedEditingRange(context.Context, *protocol.LinkedEditingRangeParams) (*protocol.LinkedEditingRanges, error)
func (*LSPServer) OnTypeFormatting ¶ added in v0.13.0
func (*LSPServer) OutgoingCalls ¶ added in v0.13.0
func (s *LSPServer) OutgoingCalls(context.Context, *protocol.CallHierarchyOutgoingCallsParams) ([]protocol.CallHierarchyOutgoingCall, error)
func (*LSPServer) PrepareCallHierarchy ¶ added in v0.13.0
func (s *LSPServer) PrepareCallHierarchy(context.Context, *protocol.CallHierarchyPrepareParams) ([]protocol.CallHierarchyItem, error)
func (*LSPServer) PrepareRename ¶ added in v0.13.0
func (s *LSPServer) PrepareRename(context.Context, *protocol.PrepareRenameParams) (*protocol.PrepareRenameResult, error)
func (*LSPServer) PrepareTypeHierarchy ¶ added in v0.13.0
func (s *LSPServer) PrepareTypeHierarchy(context.Context, *protocol.TypeHierarchyPrepareParams) ([]protocol.TypeHierarchyItem, error)
func (*LSPServer) RangeFormatting ¶ added in v0.13.0
func (*LSPServer) RangesFormatting ¶ added in v0.13.0
func (*LSPServer) References ¶ added in v0.13.0
func (*LSPServer) Rename ¶ added in v0.13.0
func (s *LSPServer) Rename(context.Context, *protocol.RenameParams) (*protocol.WorkspaceEdit, error)
func (*LSPServer) ResolveCodeAction ¶ added in v0.13.0
func (s *LSPServer) ResolveCodeAction(context.Context, *protocol.CodeAction) (*protocol.CodeAction, error)
func (*LSPServer) ResolveCodeLens ¶ added in v0.13.0
func (*LSPServer) ResolveCompletionItem ¶ added in v0.13.0
func (s *LSPServer) ResolveCompletionItem(context.Context, *protocol.CompletionItem) (*protocol.CompletionItem, error)
func (*LSPServer) ResolveDocumentLink ¶ added in v0.13.0
func (s *LSPServer) ResolveDocumentLink(context.Context, *protocol.DocumentLink) (*protocol.DocumentLink, error)
func (*LSPServer) ResolveWorkspaceSymbol ¶ added in v0.13.0
func (s *LSPServer) ResolveWorkspaceSymbol(context.Context, *protocol.WorkspaceSymbol) (*protocol.WorkspaceSymbol, error)
func (*LSPServer) SelectionRange ¶ added in v0.13.0
func (s *LSPServer) SelectionRange(context.Context, *protocol.SelectionRangeParams) ([]protocol.SelectionRange, error)
func (*LSPServer) SemanticTokensFull ¶ added in v0.13.0
func (s *LSPServer) SemanticTokensFull(context.Context, *protocol.SemanticTokensParams) (*protocol.SemanticTokens, error)
func (*LSPServer) SemanticTokensFullDelta ¶ added in v0.13.0
func (*LSPServer) SemanticTokensRange ¶ added in v0.13.0
func (s *LSPServer) SemanticTokensRange(context.Context, *protocol.SemanticTokensRangeParams) (*protocol.SemanticTokens, error)
func (*LSPServer) SignatureHelp ¶ added in v0.13.0
func (s *LSPServer) SignatureHelp(context.Context, *protocol.SignatureHelpParams) (*protocol.SignatureHelp, error)
func (*LSPServer) Subtypes ¶ added in v0.13.0
func (s *LSPServer) Subtypes(context.Context, *protocol.TypeHierarchySubtypesParams) ([]protocol.TypeHierarchyItem, error)
func (*LSPServer) Supertypes ¶ added in v0.13.0
func (s *LSPServer) Supertypes(context.Context, *protocol.TypeHierarchySupertypesParams) ([]protocol.TypeHierarchyItem, error)
func (*LSPServer) Symbol ¶ added in v0.13.0
func (s *LSPServer) Symbol(context.Context, *protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error)
func (*LSPServer) TypeDefinition ¶ added in v0.13.0
func (*LSPServer) WillCreateFiles ¶ added in v0.13.0
func (s *LSPServer) WillCreateFiles(context.Context, *protocol.CreateFilesParams) (*protocol.WorkspaceEdit, error)
func (*LSPServer) WillDeleteFiles ¶ added in v0.13.0
func (s *LSPServer) WillDeleteFiles(context.Context, *protocol.DeleteFilesParams) (*protocol.WorkspaceEdit, error)
func (*LSPServer) WillRenameFiles ¶ added in v0.13.0
func (s *LSPServer) WillRenameFiles(context.Context, *protocol.RenameFilesParams) (*protocol.WorkspaceEdit, error)
func (*LSPServer) WillSaveWaitUntil ¶ added in v0.13.0
func (*LSPServer) WorkDoneProgressCancel ¶ added in v0.13.0
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package diff computes differences between text files or strings.
|
Package diff computes differences between text files or strings. |
lcs
package lcs contains code to find longest-common-subsequences (and diffs)
|
package lcs contains code to find longest-common-subsequences (and diffs) |
Package event provides a set of packages that cover the main concepts of telemetry in an implementation agnostic way.
|
Package event provides a set of packages that cover the main concepts of telemetry in an implementation agnostic way. |
core
Package core provides support for event based telemetry.
|
Package core provides support for event based telemetry. |
tag
Package tag provides the labels used for telemetry throughout gopls.
|
Package tag provides the labels used for telemetry throughout gopls. |
The filecache package provides a file-based shared durable blob cache.
|
The filecache package provides a file-based shared durable blob cache. |
Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec.
|
Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec. |
Package protocol contains the structs that map directly to the request and response messages of the Language Server Protocol.
|
Package protocol contains the structs that map directly to the request and response messages of the Language Server Protocol. |
Package span contains support for representing with positions and ranges in text files.
|
Package span contains support for representing with positions and ranges in text files. |
util
|
|
lru
The lru package implements a fixed-size in-memory LRU cache.
|
The lru package implements a fixed-size in-memory LRU cache. |
safetoken
Package safetoken provides wrappers around methods in go/token, that return errors rather than panicking.
|
Package safetoken provides wrappers around methods in go/token, that return errors rather than panicking. |
Package xcontext is a package to offer the extra functionality we need from contexts that is not available from the standard context package.
|
Package xcontext is a package to offer the extra functionality we need from contexts that is not available from the standard context package. |
Click to show internal directories.
Click to hide internal directories.