Versions in this module Expand all Collapse all v0 v0.5.7 Dec 5, 2020 Changes in this version + const FromDidChange + const FromDidChangeWatchedFiles + const FromDidClose + const FromDidOpen + const FromDidSave + const FromInitialWorkspaceLoad + const FromRegenerateCgo + func DiagnosticWorkTitle(cause ModificationSource) string + func SemMods(n int) []string + func SemType(n int) string + func SemanticModifiers() []string + func SemanticTypes() []string + type ModificationSource int + func (m ModificationSource) String() string + type Server struct + func NewServer(session source.Session, client protocol.Client) *Server + func (s *Server) CodeAction(ctx context.Context, params *protocol.CodeActionParams) ([]protocol.CodeAction, error) + func (s *Server) CodeLens(ctx context.Context, params *protocol.CodeLensParams) ([]protocol.CodeLens, error) + func (s *Server) ColorPresentation(context.Context, *protocol.ColorPresentationParams) ([]protocol.ColorPresentation, error) + func (s *Server) Completion(ctx context.Context, params *protocol.CompletionParams) (*protocol.CompletionList, error) + func (s *Server) Declaration(context.Context, *protocol.DeclarationParams) (protocol.Declaration, error) + func (s *Server) Definition(ctx context.Context, params *protocol.DefinitionParams) (protocol.Definition, error) + func (s *Server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams) error + func (s *Server) DidChangeConfiguration(ctx context.Context, _ *protocol.DidChangeConfigurationParams) error + func (s *Server) DidChangeWatchedFiles(ctx context.Context, params *protocol.DidChangeWatchedFilesParams) error + func (s *Server) DidChangeWorkspaceFolders(ctx context.Context, params *protocol.DidChangeWorkspaceFoldersParams) error + func (s *Server) DidClose(ctx context.Context, params *protocol.DidCloseTextDocumentParams) error + func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) error + func (s *Server) DidSave(ctx context.Context, params *protocol.DidSaveTextDocumentParams) error + func (s *Server) DocumentColor(context.Context, *protocol.DocumentColorParams) ([]protocol.ColorInformation, error) + func (s *Server) DocumentHighlight(ctx context.Context, params *protocol.DocumentHighlightParams) ([]protocol.DocumentHighlight, error) + func (s *Server) DocumentLink(ctx context.Context, params *protocol.DocumentLinkParams) ([]protocol.DocumentLink, error) + func (s *Server) DocumentSymbol(ctx context.Context, params *protocol.DocumentSymbolParams) ([]interface{}, error) + func (s *Server) ExecuteCommand(ctx context.Context, params *protocol.ExecuteCommandParams) (interface{}, error) + func (s *Server) Exit(ctx context.Context) error + func (s *Server) FoldingRange(ctx context.Context, params *protocol.FoldingRangeParams) ([]protocol.FoldingRange, error) + func (s *Server) Formatting(ctx context.Context, params *protocol.DocumentFormattingParams) ([]protocol.TextEdit, error) + func (s *Server) Hover(ctx context.Context, params *protocol.HoverParams) (*protocol.Hover, error) + func (s *Server) Implementation(ctx context.Context, params *protocol.ImplementationParams) (protocol.Definition, error) + func (s *Server) IncomingCalls(ctx context.Context, params *protocol.CallHierarchyIncomingCallsParams) ([]protocol.CallHierarchyIncomingCall, error) + func (s *Server) Initialize(ctx context.Context, params *protocol.ParamInitialize) (*protocol.InitializeResult, error) + func (s *Server) Initialized(ctx context.Context, params *protocol.InitializedParams) error + func (s *Server) LogTrace(context.Context, *protocol.LogTraceParams) error + func (s *Server) Moniker(context.Context, *protocol.MonikerParams) ([]protocol.Moniker, error) + func (s *Server) NonstandardRequest(ctx context.Context, method string, params interface{}) (interface{}, error) + func (s *Server) OnTypeFormatting(context.Context, *protocol.DocumentOnTypeFormattingParams) ([]protocol.TextEdit, error) + func (s *Server) OutgoingCalls(ctx context.Context, params *protocol.CallHierarchyOutgoingCallsParams) ([]protocol.CallHierarchyOutgoingCall, error) + func (s *Server) PrepareCallHierarchy(ctx context.Context, params *protocol.CallHierarchyPrepareParams) ([]protocol.CallHierarchyItem, error) + func (s *Server) PrepareRename(ctx context.Context, params *protocol.PrepareRenameParams) (*protocol.Range, error) + func (s *Server) RangeFormatting(context.Context, *protocol.DocumentRangeFormattingParams) ([]protocol.TextEdit, error) + func (s *Server) References(ctx context.Context, params *protocol.ReferenceParams) ([]protocol.Location, error) + func (s *Server) Rename(ctx context.Context, params *protocol.RenameParams) (*protocol.WorkspaceEdit, error) + func (s *Server) Resolve(context.Context, *protocol.CompletionItem) (*protocol.CompletionItem, error) + func (s *Server) ResolveCodeAction(context.Context, *protocol.CodeAction) (*protocol.CodeAction, error) + func (s *Server) ResolveCodeLens(context.Context, *protocol.CodeLens) (*protocol.CodeLens, error) + func (s *Server) ResolveDocumentLink(context.Context, *protocol.DocumentLink) (*protocol.DocumentLink, error) + func (s *Server) SelectionRange(context.Context, *protocol.SelectionRangeParams) ([]protocol.SelectionRange, error) + func (s *Server) SemanticTokensFull(ctx context.Context, p *protocol.SemanticTokensParams) (*protocol.SemanticTokens, error) + func (s *Server) SemanticTokensFullDelta(ctx context.Context, p *protocol.SemanticTokensDeltaParams) (interface{}, error) + func (s *Server) SemanticTokensRange(ctx context.Context, p *protocol.SemanticTokensRangeParams) (*protocol.SemanticTokens, error) + func (s *Server) SemanticTokensRefresh(ctx context.Context) error + func (s *Server) SetTrace(context.Context, *protocol.SetTraceParams) error + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) SignatureHelp(ctx context.Context, params *protocol.SignatureHelpParams) (*protocol.SignatureHelp, error) + func (s *Server) Symbol(ctx context.Context, params *protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error) + func (s *Server) TypeDefinition(ctx context.Context, params *protocol.TypeDefinitionParams) (protocol.Definition, error) + func (s *Server) WillSave(context.Context, *protocol.WillSaveTextDocumentParams) error + func (s *Server) WillSaveWaitUntil(context.Context, *protocol.WillSaveTextDocumentParams) ([]protocol.TextEdit, error) + func (s *Server) WorkDoneProgressCancel(ctx context.Context, params *protocol.WorkDoneProgressCancelParams) error