Documentation ¶
Index ¶
- func InsertUseStmt(qualifiedName *fqn.FQN, currPos *position.Position) []protocol.TextEdit
- type CompletionItemData
- type Server
- func (s *Server) CodeAction(context.Context, *protocol.CodeActionParams) ([]protocol.CodeAction, error)
- func (s *Server) CodeLens(context.Context, *protocol.CodeLensParams) ([]protocol.CodeLens, error)
- func (s *Server) CodeLensRefresh(context.Context) 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.Or_textDocument_declaration, error)
- func (s *Server) Definition(ctx context.Context, params *protocol.DefinitionParams) ([]protocol.Location, error)
- func (s *Server) Diagnostic(context.Context, *string) (*string, error)
- func (s *Server) DiagnosticRefresh(context.Context) error
- func (s *Server) DiagnosticWorkspace(context.Context, *protocol.WorkspaceDiagnosticParams) (*protocol.WorkspaceDiagnosticReport, error)
- func (s *Server) DidChange(ctx context.Context, params *protocol.DidChangeTextDocumentParams) error
- func (s *Server) DidChangeConfiguration(context.Context, *protocol.DidChangeConfigurationParams) error
- func (s *Server) DidChangeNotebookDocument(context.Context, *protocol.DidChangeNotebookDocumentParams) error
- func (s *Server) DidChangeWatchedFiles(context.Context, *protocol.DidChangeWatchedFilesParams) error
- func (s *Server) DidChangeWorkspaceFolders(context.Context, *protocol.DidChangeWorkspaceFoldersParams) error
- func (s *Server) DidClose(ctx context.Context, params *protocol.DidCloseTextDocumentParams) error
- func (s *Server) DidCloseNotebookDocument(context.Context, *protocol.DidCloseNotebookDocumentParams) error
- func (s *Server) DidCreateFiles(context.Context, *protocol.CreateFilesParams) error
- func (s *Server) DidDeleteFiles(context.Context, *protocol.DeleteFilesParams) error
- func (s *Server) DidOpen(ctx context.Context, params *protocol.DidOpenTextDocumentParams) error
- func (s *Server) DidOpenNotebookDocument(context.Context, *protocol.DidOpenNotebookDocumentParams) error
- func (s *Server) DidRenameFiles(context.Context, *protocol.RenameFilesParams) error
- func (s *Server) DidSave(context.Context, *protocol.DidSaveTextDocumentParams) error
- func (s *Server) DidSaveNotebookDocument(context.Context, *protocol.DidSaveNotebookDocumentParams) error
- func (s *Server) DocumentColor(context.Context, *protocol.DocumentColorParams) ([]protocol.ColorInformation, error)
- func (s *Server) DocumentHighlight(context.Context, *protocol.DocumentHighlightParams) ([]protocol.DocumentHighlight, error)
- func (s *Server) DocumentLink(context.Context, *protocol.DocumentLinkParams) ([]protocol.DocumentLink, error)
- func (s *Server) DocumentSymbol(context.Context, *protocol.DocumentSymbolParams) ([]any, error)
- func (s *Server) ExecuteCommand(context.Context, *protocol.ExecuteCommandParams) (any, error)
- func (s *Server) Exit(context.Context) error
- func (s *Server) FoldingRange(context.Context, *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(context.Context, *protocol.ImplementationParams) ([]protocol.Location, error)
- func (s *Server) IncomingCalls(context.Context, *protocol.CallHierarchyIncomingCallsParams) ([]protocol.CallHierarchyIncomingCall, error)
- func (s *Server) Initialize(ctx context.Context, params *protocol.ParamInitialize) (*protocol.InitializeResult, error)
- func (s *Server) Initialized(context.Context, *protocol.InitializedParams) error
- func (s *Server) InlayHint(context.Context, *protocol.InlayHintParams) ([]protocol.InlayHint, error)
- func (s *Server) InlayHintRefresh(context.Context) error
- func (s *Server) InlineValue(context.Context, *protocol.InlineValueParams) ([]protocol.Or_InlineValue, error)
- func (s *Server) LinkedEditingRange(context.Context, *protocol.LinkedEditingRangeParams) (*protocol.LinkedEditingRanges, 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 any) (any, error)
- func (s *Server) OnTypeFormatting(context.Context, *protocol.DocumentOnTypeFormattingParams) ([]protocol.TextEdit, error)
- func (s *Server) OutgoingCalls(context.Context, *protocol.CallHierarchyOutgoingCallsParams) ([]protocol.CallHierarchyOutgoingCall, error)
- func (s *Server) PrepareCallHierarchy(context.Context, *protocol.CallHierarchyPrepareParams) ([]protocol.CallHierarchyItem, error)
- func (s *Server) PrepareRename(context.Context, *protocol.PrepareRenameParams) (*protocol.Msg_PrepareRename2Gn, error)
- func (s *Server) PrepareTypeHierarchy(context.Context, *protocol.TypeHierarchyPrepareParams) ([]protocol.TypeHierarchyItem, error)
- func (s *Server) Progress(context.Context, *protocol.ProgressParams) error
- func (s *Server) RangeFormatting(context.Context, *protocol.DocumentRangeFormattingParams) ([]protocol.TextEdit, error)
- func (s *Server) References(context.Context, *protocol.ReferenceParams) ([]protocol.Location, error)
- func (s *Server) Rename(context.Context, *protocol.RenameParams) (*protocol.WorkspaceEdit, error)
- func (s *Server) Resolve(context.Context, *protocol.InlayHint) (*protocol.InlayHint, 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) ResolveCompletionItem(ctx context.Context, item *protocol.CompletionItem) (*protocol.CompletionItem, error)
- func (s *Server) ResolveDocumentLink(context.Context, *protocol.DocumentLink) (*protocol.DocumentLink, error)
- func (s *Server) ResolveWorkspaceSymbol(context.Context, *protocol.WorkspaceSymbol) (*protocol.WorkspaceSymbol, error)
- func (s *Server) SelectionRange(context.Context, *protocol.SelectionRangeParams) ([]protocol.SelectionRange, error)
- func (s *Server) SemanticTokensFull(context.Context, *protocol.SemanticTokensParams) (*protocol.SemanticTokens, error)
- func (s *Server) SemanticTokensFullDelta(context.Context, *protocol.SemanticTokensDeltaParams) (any, error)
- func (s *Server) SemanticTokensRange(context.Context, *protocol.SemanticTokensRangeParams) (*protocol.SemanticTokens, error)
- func (s *Server) SemanticTokensRefresh(context.Context) error
- func (s *Server) SetTrace(context.Context, *protocol.SetTraceParams) error
- func (s *Server) Shutdown(context.Context) error
- func (s *Server) SignatureHelp(context.Context, *protocol.SignatureHelpParams) (*protocol.SignatureHelp, error)
- func (s *Server) Subtypes(context.Context, *protocol.TypeHierarchySubtypesParams) ([]protocol.TypeHierarchyItem, error)
- func (s *Server) Supertypes(context.Context, *protocol.TypeHierarchySupertypesParams) ([]protocol.TypeHierarchyItem, error)
- func (s *Server) Symbol(context.Context, *protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error)
- func (s *Server) TypeDefinition(context.Context, *protocol.TypeDefinitionParams) ([]protocol.Location, error)
- func (s *Server) WillCreateFiles(context.Context, *protocol.CreateFilesParams) (*protocol.WorkspaceEdit, error)
- func (s *Server) WillDeleteFiles(context.Context, *protocol.DeleteFilesParams) (*protocol.WorkspaceEdit, error)
- func (s *Server) WillRenameFiles(context.Context, *protocol.RenameFilesParams) (*protocol.WorkspaceEdit, 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(context.Context, *protocol.WorkDoneProgressCancelParams) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompletionItemData ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(client protocol.ClientCloser) *Server
func (*Server) CodeAction ¶
func (s *Server) CodeAction( context.Context, *protocol.CodeActionParams, ) ([]protocol.CodeAction, error)
func (*Server) ColorPresentation ¶
func (s *Server) ColorPresentation( context.Context, *protocol.ColorPresentationParams, ) ([]protocol.ColorPresentation, error)
func (*Server) Completion ¶
func (s *Server) Completion( ctx context.Context, params *protocol.CompletionParams, ) (*protocol.CompletionList, error)
func (*Server) Declaration ¶
func (s *Server) Declaration( context.Context, *protocol.DeclarationParams, ) (*protocol.Or_textDocument_declaration, error)
func (*Server) Definition ¶
func (*Server) DiagnosticWorkspace ¶
func (s *Server) DiagnosticWorkspace( context.Context, *protocol.WorkspaceDiagnosticParams, ) (*protocol.WorkspaceDiagnosticReport, error)
func (*Server) DidChangeConfiguration ¶
func (*Server) DidChangeNotebookDocument ¶
func (*Server) DidChangeWatchedFiles ¶
func (*Server) DidChangeWorkspaceFolders ¶
func (*Server) DidCloseNotebookDocument ¶
func (*Server) DidCreateFiles ¶
func (*Server) DidDeleteFiles ¶
func (*Server) DidOpenNotebookDocument ¶
func (*Server) DidRenameFiles ¶
func (*Server) DidSaveNotebookDocument ¶
func (*Server) DocumentColor ¶
func (s *Server) DocumentColor( context.Context, *protocol.DocumentColorParams, ) ([]protocol.ColorInformation, error)
func (*Server) DocumentHighlight ¶
func (s *Server) DocumentHighlight( context.Context, *protocol.DocumentHighlightParams, ) ([]protocol.DocumentHighlight, error)
func (*Server) DocumentLink ¶
func (s *Server) DocumentLink( context.Context, *protocol.DocumentLinkParams, ) ([]protocol.DocumentLink, error)
func (*Server) DocumentSymbol ¶
func (*Server) ExecuteCommand ¶
func (*Server) FoldingRange ¶
func (s *Server) FoldingRange( context.Context, *protocol.FoldingRangeParams, ) ([]protocol.FoldingRange, error)
func (*Server) Formatting ¶
func (*Server) Implementation ¶
func (*Server) IncomingCalls ¶
func (s *Server) IncomingCalls( context.Context, *protocol.CallHierarchyIncomingCallsParams, ) ([]protocol.CallHierarchyIncomingCall, error)
func (*Server) Initialize ¶
func (s *Server) Initialize( ctx context.Context, params *protocol.ParamInitialize, ) (*protocol.InitializeResult, error)
Entrypoint, must be requested first by the client.
func (*Server) Initialized ¶
The client has received our Initialize response and is going to start sending normal requests.
func (*Server) InlineValue ¶
func (s *Server) InlineValue( context.Context, *protocol.InlineValueParams, ) ([]protocol.Or_InlineValue, error)
func (*Server) LinkedEditingRange ¶
func (s *Server) LinkedEditingRange( context.Context, *protocol.LinkedEditingRangeParams, ) (*protocol.LinkedEditingRanges, error)
func (*Server) NonstandardRequest ¶
func (*Server) OnTypeFormatting ¶
func (*Server) OutgoingCalls ¶
func (s *Server) OutgoingCalls( context.Context, *protocol.CallHierarchyOutgoingCallsParams, ) ([]protocol.CallHierarchyOutgoingCall, error)
func (*Server) PrepareCallHierarchy ¶
func (s *Server) PrepareCallHierarchy( context.Context, *protocol.CallHierarchyPrepareParams, ) ([]protocol.CallHierarchyItem, error)
func (*Server) PrepareRename ¶
func (s *Server) PrepareRename( context.Context, *protocol.PrepareRenameParams, ) (*protocol.Msg_PrepareRename2Gn, error)
func (*Server) PrepareTypeHierarchy ¶
func (s *Server) PrepareTypeHierarchy( context.Context, *protocol.TypeHierarchyPrepareParams, ) ([]protocol.TypeHierarchyItem, error)
func (*Server) RangeFormatting ¶
func (*Server) References ¶
func (*Server) Rename ¶
func (s *Server) Rename(context.Context, *protocol.RenameParams) (*protocol.WorkspaceEdit, error)
func (*Server) ResolveCodeAction ¶
func (s *Server) ResolveCodeAction( context.Context, *protocol.CodeAction, ) (*protocol.CodeAction, error)
func (*Server) ResolveCodeLens ¶
func (*Server) ResolveCompletionItem ¶
func (s *Server) ResolveCompletionItem( ctx context.Context, item *protocol.CompletionItem, ) (*protocol.CompletionItem, error)
Completion will return basic information about the result, Resolve adds to that with documentation, importing etc. This is called when the completion item from Complete is selected/hovered.
func (*Server) ResolveDocumentLink ¶
func (s *Server) ResolveDocumentLink( context.Context, *protocol.DocumentLink, ) (*protocol.DocumentLink, error)
func (*Server) ResolveWorkspaceSymbol ¶
func (s *Server) ResolveWorkspaceSymbol( context.Context, *protocol.WorkspaceSymbol, ) (*protocol.WorkspaceSymbol, error)
func (*Server) SelectionRange ¶
func (s *Server) SelectionRange( context.Context, *protocol.SelectionRangeParams, ) ([]protocol.SelectionRange, error)
func (*Server) SemanticTokensFull ¶
func (s *Server) SemanticTokensFull( context.Context, *protocol.SemanticTokensParams, ) (*protocol.SemanticTokens, error)
func (*Server) SemanticTokensFullDelta ¶
func (*Server) SemanticTokensRange ¶
func (s *Server) SemanticTokensRange( context.Context, *protocol.SemanticTokensRangeParams, ) (*protocol.SemanticTokens, error)
func (*Server) SemanticTokensRefresh ¶
func (*Server) Shutdown ¶
Starts the shutdown procedure, the client indicates it wants us to exit soon.
func (*Server) SignatureHelp ¶
func (s *Server) SignatureHelp( context.Context, *protocol.SignatureHelpParams, ) (*protocol.SignatureHelp, error)
func (*Server) Subtypes ¶
func (s *Server) Subtypes( context.Context, *protocol.TypeHierarchySubtypesParams, ) ([]protocol.TypeHierarchyItem, error)
func (*Server) Supertypes ¶
func (s *Server) Supertypes( context.Context, *protocol.TypeHierarchySupertypesParams, ) ([]protocol.TypeHierarchyItem, error)
func (*Server) Symbol ¶
func (s *Server) Symbol( context.Context, *protocol.WorkspaceSymbolParams, ) ([]protocol.SymbolInformation, error)
func (*Server) TypeDefinition ¶
func (*Server) WillCreateFiles ¶
func (s *Server) WillCreateFiles( context.Context, *protocol.CreateFilesParams, ) (*protocol.WorkspaceEdit, error)
func (*Server) WillDeleteFiles ¶
func (s *Server) WillDeleteFiles( context.Context, *protocol.DeleteFilesParams, ) (*protocol.WorkspaceEdit, error)
func (*Server) WillRenameFiles ¶
func (s *Server) WillRenameFiles( context.Context, *protocol.RenameFilesParams, ) (*protocol.WorkspaceEdit, error)
func (*Server) WillSaveWaitUntil ¶
func (*Server) WorkDoneProgressCancel ¶
Click to show internal directories.
Click to hide internal directories.