Documentation ¶
Overview ¶
Package proxy implements the protocol between acme-lsp and L commands.
Index ¶
- Constants
- func NewClientHandler(client Client) jsonrpc2.Handler
- func NewServerHandler(server Server) jsonrpc2.Handler
- func WithClient(ctx context.Context, client Client) context.Context
- type Client
- type DocumentUri
- type ExecuteCommandOnDocumentParams
- type NotImplementedClient
- func (c *NotImplementedClient) ApplyEdit(context.Context, *protocol.ApplyWorkspaceEditParams) (*protocol.ApplyWorkspaceEditResult, error)
- func (c *NotImplementedClient) CodeLensRefresh(context.Context) error
- func (c *NotImplementedClient) Configuration(context.Context, *protocol.ParamConfiguration) ([]interface{}, error)
- func (c *NotImplementedClient) DiagnosticRefresh(context.Context) error
- func (c *NotImplementedClient) Event(context.Context, *interface{}) error
- func (c *NotImplementedClient) InlayHintRefresh(context.Context) error
- func (c *NotImplementedClient) InlineValueRefresh(context.Context) error
- func (c *NotImplementedClient) LogMessage(ctx context.Context, params *protocol.LogMessageParams) error
- func (c *NotImplementedClient) LogTrace(context.Context, *protocol.LogTraceParams) error
- func (c *NotImplementedClient) Progress(context.Context, *protocol.ProgressParams) error
- func (c *NotImplementedClient) PublishDiagnostics(context.Context, *protocol.PublishDiagnosticsParams) error
- func (c *NotImplementedClient) RegisterCapability(context.Context, *protocol.RegistrationParams) error
- func (c *NotImplementedClient) SemanticTokensRefresh(context.Context) error
- func (c *NotImplementedClient) ShowDocument(context.Context, *protocol.ShowDocumentParams) (*protocol.ShowDocumentResult, error)
- func (c *NotImplementedClient) ShowMessage(context.Context, *protocol.ShowMessageParams) error
- func (c *NotImplementedClient) ShowMessageRequest(context.Context, *protocol.ShowMessageRequestParams) (*protocol.MessageActionItem, error)
- func (c *NotImplementedClient) UnregisterCapability(context.Context, *protocol.UnregistrationParams) error
- func (c *NotImplementedClient) WorkDoneProgressCreate(context.Context, *protocol.WorkDoneProgressCreateParams) error
- func (c *NotImplementedClient) WorkspaceFolders(context.Context) ([]protocol.WorkspaceFolder, error)
- type NotImplementedServer
- func (s *NotImplementedServer) CodeAction(context.Context, *protocol.CodeActionParams) ([]protocol.CodeAction, error)
- func (s *NotImplementedServer) CodeLens(context.Context, *protocol.CodeLensParams) ([]protocol.CodeLens, error)
- func (s *NotImplementedServer) ColorPresentation(context.Context, *protocol.ColorPresentationParams) ([]protocol.ColorPresentation, error)
- func (s *NotImplementedServer) Completion(context.Context, *protocol.CompletionParams) (*protocol.CompletionList, error)
- func (s *NotImplementedServer) Declaration(context.Context, *protocol.DeclarationParams) (*protocol.Or_textDocument_declaration, error)
- func (s *NotImplementedServer) Definition(context.Context, *protocol.DefinitionParams) ([]protocol.Location, error)
- func (s *NotImplementedServer) Diagnostic(context.Context, *string) (*string, error)
- func (s *NotImplementedServer) DiagnosticWorkspace(context.Context, *protocol.WorkspaceDiagnosticParams) (*protocol.WorkspaceDiagnosticReport, error)
- func (s *NotImplementedServer) DidChange(context.Context, *protocol.DidChangeTextDocumentParams) error
- func (s *NotImplementedServer) DidChangeConfiguration(context.Context, *protocol.DidChangeConfigurationParams) error
- func (s *NotImplementedServer) DidChangeNotebookDocument(context.Context, *protocol.DidChangeNotebookDocumentParams) error
- func (s *NotImplementedServer) DidChangeWatchedFiles(context.Context, *protocol.DidChangeWatchedFilesParams) error
- func (s *NotImplementedServer) DidChangeWorkspaceFolders(context.Context, *protocol.DidChangeWorkspaceFoldersParams) error
- func (s *NotImplementedServer) DidClose(context.Context, *protocol.DidCloseTextDocumentParams) error
- func (s *NotImplementedServer) DidCloseNotebookDocument(context.Context, *protocol.DidCloseNotebookDocumentParams) error
- func (s *NotImplementedServer) DidCreateFiles(context.Context, *protocol.CreateFilesParams) error
- func (s *NotImplementedServer) DidDeleteFiles(context.Context, *protocol.DeleteFilesParams) error
- func (s *NotImplementedServer) DidOpen(context.Context, *protocol.DidOpenTextDocumentParams) error
- func (s *NotImplementedServer) DidOpenNotebookDocument(context.Context, *protocol.DidOpenNotebookDocumentParams) error
- func (s *NotImplementedServer) DidRenameFiles(context.Context, *protocol.RenameFilesParams) error
- func (s *NotImplementedServer) DidSave(context.Context, *protocol.DidSaveTextDocumentParams) error
- func (s *NotImplementedServer) DidSaveNotebookDocument(context.Context, *protocol.DidSaveNotebookDocumentParams) error
- func (s *NotImplementedServer) DocumentColor(context.Context, *protocol.DocumentColorParams) ([]protocol.ColorInformation, error)
- func (s *NotImplementedServer) DocumentHighlight(context.Context, *protocol.DocumentHighlightParams) ([]protocol.DocumentHighlight, error)
- func (s *NotImplementedServer) DocumentLink(context.Context, *protocol.DocumentLinkParams) ([]protocol.DocumentLink, error)
- func (s *NotImplementedServer) DocumentSymbol(context.Context, *protocol.DocumentSymbolParams) ([]interface{}, error)
- func (s *NotImplementedServer) ExecuteCommand(context.Context, *protocol.ExecuteCommandParams) (interface{}, error)
- func (s *NotImplementedServer) Exit(context.Context) error
- func (s *NotImplementedServer) FoldingRange(context.Context, *protocol.FoldingRangeParams) ([]protocol.FoldingRange, error)
- func (s *NotImplementedServer) Formatting(context.Context, *protocol.DocumentFormattingParams) ([]protocol.TextEdit, error)
- func (s *NotImplementedServer) Hover(context.Context, *protocol.HoverParams) (*protocol.Hover, error)
- func (s *NotImplementedServer) Implementation(context.Context, *protocol.ImplementationParams) ([]protocol.Location, error)
- func (s *NotImplementedServer) IncomingCalls(context.Context, *protocol.CallHierarchyIncomingCallsParams) ([]protocol.CallHierarchyIncomingCall, error)
- func (s *NotImplementedServer) Initialize(context.Context, *protocol.ParamInitialize) (*protocol.InitializeResult, error)
- func (s *NotImplementedServer) Initialized(context.Context, *protocol.InitializedParams) error
- func (s *NotImplementedServer) InlayHint(context.Context, *protocol.InlayHintParams) ([]protocol.InlayHint, error)
- func (s *NotImplementedServer) InlineValue(context.Context, *protocol.InlineValueParams) ([]protocol.InlineValue, error)
- func (s *NotImplementedServer) LinkedEditingRange(context.Context, *protocol.LinkedEditingRangeParams) (*protocol.LinkedEditingRanges, error)
- func (s *NotImplementedServer) Moniker(context.Context, *protocol.MonikerParams) ([]protocol.Moniker, error)
- func (s *NotImplementedServer) NonstandardRequest(ctx context.Context, method string, params interface{}) (interface{}, error)
- func (s *NotImplementedServer) OnTypeFormatting(context.Context, *protocol.DocumentOnTypeFormattingParams) ([]protocol.TextEdit, error)
- func (s *NotImplementedServer) OutgoingCalls(context.Context, *protocol.CallHierarchyOutgoingCallsParams) ([]protocol.CallHierarchyOutgoingCall, error)
- func (s *NotImplementedServer) PrepareCallHierarchy(context.Context, *protocol.CallHierarchyPrepareParams) ([]protocol.CallHierarchyItem, error)
- func (s *NotImplementedServer) PrepareRename(context.Context, *protocol.PrepareRenameParams) (*protocol.PrepareRename2Gn, error)
- func (s *NotImplementedServer) PrepareTypeHierarchy(context.Context, *protocol.TypeHierarchyPrepareParams) ([]protocol.TypeHierarchyItem, error)
- func (s *NotImplementedServer) Progress(context.Context, *protocol.ProgressParams) error
- func (s *NotImplementedServer) RangeFormatting(context.Context, *protocol.DocumentRangeFormattingParams) ([]protocol.TextEdit, error)
- func (s *NotImplementedServer) References(context.Context, *protocol.ReferenceParams) ([]protocol.Location, error)
- func (s *NotImplementedServer) Rename(context.Context, *protocol.RenameParams) (*protocol.WorkspaceEdit, error)
- func (s *NotImplementedServer) Resolve(context.Context, *protocol.InlayHint) (*protocol.InlayHint, error)
- func (s *NotImplementedServer) ResolveCodeAction(context.Context, *protocol.CodeAction) (*protocol.CodeAction, error)
- func (s *NotImplementedServer) ResolveCodeLens(context.Context, *protocol.CodeLens) (*protocol.CodeLens, error)
- func (s *NotImplementedServer) ResolveCompletionItem(context.Context, *protocol.CompletionItem) (*protocol.CompletionItem, error)
- func (s *NotImplementedServer) ResolveDocumentLink(context.Context, *protocol.DocumentLink) (*protocol.DocumentLink, error)
- func (s *NotImplementedServer) ResolveWorkspaceSymbol(context.Context, *protocol.WorkspaceSymbol) (*protocol.WorkspaceSymbol, error)
- func (s *NotImplementedServer) SelectionRange(context.Context, *protocol.SelectionRangeParams) ([]protocol.SelectionRange, error)
- func (s *NotImplementedServer) SemanticTokensFull(context.Context, *protocol.SemanticTokensParams) (*protocol.SemanticTokens, error)
- func (s *NotImplementedServer) SemanticTokensFullDelta(context.Context, *protocol.SemanticTokensDeltaParams) (interface{}, error)
- func (s *NotImplementedServer) SemanticTokensRange(context.Context, *protocol.SemanticTokensRangeParams) (*protocol.SemanticTokens, error)
- func (s *NotImplementedServer) SetTrace(context.Context, *protocol.SetTraceParams) error
- func (s *NotImplementedServer) Shutdown(context.Context) error
- func (s *NotImplementedServer) SignatureHelp(context.Context, *protocol.SignatureHelpParams) (*protocol.SignatureHelp, error)
- func (s *NotImplementedServer) Subtypes(context.Context, *protocol.TypeHierarchySubtypesParams) ([]protocol.TypeHierarchyItem, error)
- func (s *NotImplementedServer) Supertypes(context.Context, *protocol.TypeHierarchySupertypesParams) ([]protocol.TypeHierarchyItem, error)
- func (s *NotImplementedServer) Symbol(context.Context, *protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error)
- func (s *NotImplementedServer) TypeDefinition(context.Context, *protocol.TypeDefinitionParams) ([]protocol.Location, error)
- func (s *NotImplementedServer) WillCreateFiles(context.Context, *protocol.CreateFilesParams) (*protocol.WorkspaceEdit, error)
- func (s *NotImplementedServer) WillDeleteFiles(context.Context, *protocol.DeleteFilesParams) (*protocol.WorkspaceEdit, error)
- func (s *NotImplementedServer) WillRenameFiles(context.Context, *protocol.RenameFilesParams) (*protocol.WorkspaceEdit, error)
- func (s *NotImplementedServer) WillSave(context.Context, *protocol.WillSaveTextDocumentParams) error
- func (s *NotImplementedServer) WillSaveWaitUntil(context.Context, *protocol.WillSaveTextDocumentParams) ([]protocol.TextEdit, error)
- func (s *NotImplementedServer) WorkDoneProgressCancel(context.Context, *protocol.WorkDoneProgressCancelParams) error
- type Server
Constants ¶
View Source
const Debug = false
View Source
const Version = 1
Version is used to detect if acme-lsp and L are speaking the same protocol.
Variables ¶
This section is empty.
Functions ¶
func NewClientHandler ¶
func NewServerHandler ¶
Types ¶
type DocumentUri ¶
type DocumentUri = string
type ExecuteCommandOnDocumentParams ¶
type ExecuteCommandOnDocumentParams struct { TextDocument protocol.TextDocumentIdentifier ExecuteCommandParams protocol.ExecuteCommandParams }
type NotImplementedClient ¶
type NotImplementedClient struct{}
func (*NotImplementedClient) ApplyEdit ¶
func (c *NotImplementedClient) ApplyEdit(context.Context, *protocol.ApplyWorkspaceEditParams) (*protocol.ApplyWorkspaceEditResult, error)
func (*NotImplementedClient) CodeLensRefresh ¶
func (c *NotImplementedClient) CodeLensRefresh(context.Context) error
workspace/codeLens/refresh
func (*NotImplementedClient) Configuration ¶
func (c *NotImplementedClient) Configuration(context.Context, *protocol.ParamConfiguration) ([]interface{}, error)
func (*NotImplementedClient) DiagnosticRefresh ¶
func (c *NotImplementedClient) DiagnosticRefresh(context.Context) error
workspace/diagnostic/refresh
func (*NotImplementedClient) Event ¶
func (c *NotImplementedClient) Event(context.Context, *interface{}) error
func (*NotImplementedClient) InlayHintRefresh ¶
func (c *NotImplementedClient) InlayHintRefresh(context.Context) error
workspace/inlayHint/refresh
func (*NotImplementedClient) InlineValueRefresh ¶
func (c *NotImplementedClient) InlineValueRefresh(context.Context) error
workspace/inlineValue/refresh
func (*NotImplementedClient) LogMessage ¶
func (c *NotImplementedClient) LogMessage(ctx context.Context, params *protocol.LogMessageParams) error
func (*NotImplementedClient) LogTrace ¶
func (c *NotImplementedClient) LogTrace(context.Context, *protocol.LogTraceParams) error
$/logTrace
func (*NotImplementedClient) Progress ¶
func (c *NotImplementedClient) Progress(context.Context, *protocol.ProgressParams) error
$/progress
func (*NotImplementedClient) PublishDiagnostics ¶
func (c *NotImplementedClient) PublishDiagnostics(context.Context, *protocol.PublishDiagnosticsParams) error
func (*NotImplementedClient) RegisterCapability ¶
func (c *NotImplementedClient) RegisterCapability(context.Context, *protocol.RegistrationParams) error
func (*NotImplementedClient) SemanticTokensRefresh ¶
func (c *NotImplementedClient) SemanticTokensRefresh(context.Context) error
workspace/semanticTokens/refresh
func (*NotImplementedClient) ShowDocument ¶
func (c *NotImplementedClient) ShowDocument(context.Context, *protocol.ShowDocumentParams) (*protocol.ShowDocumentResult, error)
window/showDocument
func (*NotImplementedClient) ShowMessage ¶
func (c *NotImplementedClient) ShowMessage(context.Context, *protocol.ShowMessageParams) error
func (*NotImplementedClient) ShowMessageRequest ¶
func (c *NotImplementedClient) ShowMessageRequest(context.Context, *protocol.ShowMessageRequestParams) (*protocol.MessageActionItem, error)
func (*NotImplementedClient) UnregisterCapability ¶
func (c *NotImplementedClient) UnregisterCapability(context.Context, *protocol.UnregistrationParams) error
func (*NotImplementedClient) WorkDoneProgressCreate ¶
func (c *NotImplementedClient) WorkDoneProgressCreate(context.Context, *protocol.WorkDoneProgressCreateParams) error
window/workDoneProgress/create
func (*NotImplementedClient) WorkspaceFolders ¶
func (c *NotImplementedClient) WorkspaceFolders(context.Context) ([]protocol.WorkspaceFolder, error)
type NotImplementedServer ¶
type NotImplementedServer struct{}
NotImplementedServer is a stub implementation of protocol.Server.
func (*NotImplementedServer) CodeAction ¶
func (s *NotImplementedServer) CodeAction(context.Context, *protocol.CodeActionParams) ([]protocol.CodeAction, error)
func (*NotImplementedServer) CodeLens ¶
func (s *NotImplementedServer) CodeLens(context.Context, *protocol.CodeLensParams) ([]protocol.CodeLens, error)
func (*NotImplementedServer) ColorPresentation ¶
func (s *NotImplementedServer) ColorPresentation(context.Context, *protocol.ColorPresentationParams) ([]protocol.ColorPresentation, error)
func (*NotImplementedServer) Completion ¶
func (s *NotImplementedServer) Completion(context.Context, *protocol.CompletionParams) (*protocol.CompletionList, error)
func (*NotImplementedServer) Declaration ¶
func (s *NotImplementedServer) Declaration(context.Context, *protocol.DeclarationParams) (*protocol.Or_textDocument_declaration, error)
func (*NotImplementedServer) Definition ¶
func (s *NotImplementedServer) Definition(context.Context, *protocol.DefinitionParams) ([]protocol.Location, error)
func (*NotImplementedServer) Diagnostic ¶
func (*NotImplementedServer) DiagnosticWorkspace ¶
func (s *NotImplementedServer) DiagnosticWorkspace(context.Context, *protocol.WorkspaceDiagnosticParams) (*protocol.WorkspaceDiagnosticReport, error)
func (*NotImplementedServer) DidChange ¶
func (s *NotImplementedServer) DidChange(context.Context, *protocol.DidChangeTextDocumentParams) error
func (*NotImplementedServer) DidChangeConfiguration ¶
func (s *NotImplementedServer) DidChangeConfiguration(context.Context, *protocol.DidChangeConfigurationParams) error
func (*NotImplementedServer) DidChangeNotebookDocument ¶
func (s *NotImplementedServer) DidChangeNotebookDocument(context.Context, *protocol.DidChangeNotebookDocumentParams) error
func (*NotImplementedServer) DidChangeWatchedFiles ¶
func (s *NotImplementedServer) DidChangeWatchedFiles(context.Context, *protocol.DidChangeWatchedFilesParams) error
func (*NotImplementedServer) DidChangeWorkspaceFolders ¶
func (s *NotImplementedServer) DidChangeWorkspaceFolders(context.Context, *protocol.DidChangeWorkspaceFoldersParams) error
func (*NotImplementedServer) DidClose ¶
func (s *NotImplementedServer) DidClose(context.Context, *protocol.DidCloseTextDocumentParams) error
func (*NotImplementedServer) DidCloseNotebookDocument ¶
func (s *NotImplementedServer) DidCloseNotebookDocument(context.Context, *protocol.DidCloseNotebookDocumentParams) error
func (*NotImplementedServer) DidCreateFiles ¶
func (s *NotImplementedServer) DidCreateFiles(context.Context, *protocol.CreateFilesParams) error
func (*NotImplementedServer) DidDeleteFiles ¶
func (s *NotImplementedServer) DidDeleteFiles(context.Context, *protocol.DeleteFilesParams) error
func (*NotImplementedServer) DidOpen ¶
func (s *NotImplementedServer) DidOpen(context.Context, *protocol.DidOpenTextDocumentParams) error
func (*NotImplementedServer) DidOpenNotebookDocument ¶
func (s *NotImplementedServer) DidOpenNotebookDocument(context.Context, *protocol.DidOpenNotebookDocumentParams) error
func (*NotImplementedServer) DidRenameFiles ¶
func (s *NotImplementedServer) DidRenameFiles(context.Context, *protocol.RenameFilesParams) error
func (*NotImplementedServer) DidSave ¶
func (s *NotImplementedServer) DidSave(context.Context, *protocol.DidSaveTextDocumentParams) error
func (*NotImplementedServer) DidSaveNotebookDocument ¶
func (s *NotImplementedServer) DidSaveNotebookDocument(context.Context, *protocol.DidSaveNotebookDocumentParams) error
func (*NotImplementedServer) DocumentColor ¶
func (s *NotImplementedServer) DocumentColor(context.Context, *protocol.DocumentColorParams) ([]protocol.ColorInformation, error)
func (*NotImplementedServer) DocumentHighlight ¶
func (s *NotImplementedServer) DocumentHighlight(context.Context, *protocol.DocumentHighlightParams) ([]protocol.DocumentHighlight, error)
func (*NotImplementedServer) DocumentLink ¶
func (s *NotImplementedServer) DocumentLink(context.Context, *protocol.DocumentLinkParams) ([]protocol.DocumentLink, error)
func (*NotImplementedServer) DocumentSymbol ¶
func (s *NotImplementedServer) DocumentSymbol(context.Context, *protocol.DocumentSymbolParams) ([]interface{}, error)
func (*NotImplementedServer) ExecuteCommand ¶
func (s *NotImplementedServer) ExecuteCommand(context.Context, *protocol.ExecuteCommandParams) (interface{}, error)
func (*NotImplementedServer) FoldingRange ¶
func (s *NotImplementedServer) FoldingRange(context.Context, *protocol.FoldingRangeParams) ([]protocol.FoldingRange, error)
func (*NotImplementedServer) Formatting ¶
func (s *NotImplementedServer) Formatting(context.Context, *protocol.DocumentFormattingParams) ([]protocol.TextEdit, error)
func (*NotImplementedServer) Hover ¶
func (s *NotImplementedServer) Hover(context.Context, *protocol.HoverParams) (*protocol.Hover, error)
func (*NotImplementedServer) Implementation ¶
func (s *NotImplementedServer) Implementation(context.Context, *protocol.ImplementationParams) ([]protocol.Location, error)
func (*NotImplementedServer) IncomingCalls ¶
func (s *NotImplementedServer) IncomingCalls(context.Context, *protocol.CallHierarchyIncomingCallsParams) ([]protocol.CallHierarchyIncomingCall, error)
func (*NotImplementedServer) Initialize ¶
func (s *NotImplementedServer) Initialize(context.Context, *protocol.ParamInitialize) (*protocol.InitializeResult, error)
func (*NotImplementedServer) Initialized ¶
func (s *NotImplementedServer) Initialized(context.Context, *protocol.InitializedParams) error
func (*NotImplementedServer) InlayHint ¶
func (s *NotImplementedServer) InlayHint(context.Context, *protocol.InlayHintParams) ([]protocol.InlayHint, error)
func (*NotImplementedServer) InlineValue ¶
func (s *NotImplementedServer) InlineValue(context.Context, *protocol.InlineValueParams) ([]protocol.InlineValue, error)
func (*NotImplementedServer) LinkedEditingRange ¶
func (s *NotImplementedServer) LinkedEditingRange(context.Context, *protocol.LinkedEditingRangeParams) (*protocol.LinkedEditingRanges, error)
func (*NotImplementedServer) Moniker ¶
func (s *NotImplementedServer) Moniker(context.Context, *protocol.MonikerParams) ([]protocol.Moniker, error)
func (*NotImplementedServer) NonstandardRequest ¶
func (s *NotImplementedServer) NonstandardRequest(ctx context.Context, method string, params interface{}) (interface{}, error)
func (*NotImplementedServer) OnTypeFormatting ¶
func (s *NotImplementedServer) OnTypeFormatting(context.Context, *protocol.DocumentOnTypeFormattingParams) ([]protocol.TextEdit, error)
func (*NotImplementedServer) OutgoingCalls ¶
func (s *NotImplementedServer) OutgoingCalls(context.Context, *protocol.CallHierarchyOutgoingCallsParams) ([]protocol.CallHierarchyOutgoingCall, error)
func (*NotImplementedServer) PrepareCallHierarchy ¶
func (s *NotImplementedServer) PrepareCallHierarchy(context.Context, *protocol.CallHierarchyPrepareParams) ([]protocol.CallHierarchyItem, error)
func (*NotImplementedServer) PrepareRename ¶
func (s *NotImplementedServer) PrepareRename(context.Context, *protocol.PrepareRenameParams) (*protocol.PrepareRename2Gn, error)
func (*NotImplementedServer) PrepareTypeHierarchy ¶
func (s *NotImplementedServer) PrepareTypeHierarchy(context.Context, *protocol.TypeHierarchyPrepareParams) ([]protocol.TypeHierarchyItem, error)
func (*NotImplementedServer) Progress ¶
func (s *NotImplementedServer) Progress(context.Context, *protocol.ProgressParams) error
func (*NotImplementedServer) RangeFormatting ¶
func (s *NotImplementedServer) RangeFormatting(context.Context, *protocol.DocumentRangeFormattingParams) ([]protocol.TextEdit, error)
func (*NotImplementedServer) References ¶
func (s *NotImplementedServer) References(context.Context, *protocol.ReferenceParams) ([]protocol.Location, error)
func (*NotImplementedServer) Rename ¶
func (s *NotImplementedServer) Rename(context.Context, *protocol.RenameParams) (*protocol.WorkspaceEdit, error)
func (*NotImplementedServer) ResolveCodeAction ¶
func (s *NotImplementedServer) ResolveCodeAction(context.Context, *protocol.CodeAction) (*protocol.CodeAction, error)
func (*NotImplementedServer) ResolveCodeLens ¶
func (*NotImplementedServer) ResolveCompletionItem ¶
func (s *NotImplementedServer) ResolveCompletionItem(context.Context, *protocol.CompletionItem) (*protocol.CompletionItem, error)
func (*NotImplementedServer) ResolveDocumentLink ¶
func (s *NotImplementedServer) ResolveDocumentLink(context.Context, *protocol.DocumentLink) (*protocol.DocumentLink, error)
func (*NotImplementedServer) ResolveWorkspaceSymbol ¶
func (s *NotImplementedServer) ResolveWorkspaceSymbol(context.Context, *protocol.WorkspaceSymbol) (*protocol.WorkspaceSymbol, error)
func (*NotImplementedServer) SelectionRange ¶
func (s *NotImplementedServer) SelectionRange(context.Context, *protocol.SelectionRangeParams) ([]protocol.SelectionRange, error)
func (*NotImplementedServer) SemanticTokensFull ¶
func (s *NotImplementedServer) SemanticTokensFull(context.Context, *protocol.SemanticTokensParams) (*protocol.SemanticTokens, error)
func (*NotImplementedServer) SemanticTokensFullDelta ¶
func (s *NotImplementedServer) SemanticTokensFullDelta(context.Context, *protocol.SemanticTokensDeltaParams) (interface{}, error)
func (*NotImplementedServer) SemanticTokensRange ¶
func (s *NotImplementedServer) SemanticTokensRange(context.Context, *protocol.SemanticTokensRangeParams) (*protocol.SemanticTokens, error)
func (*NotImplementedServer) SetTrace ¶
func (s *NotImplementedServer) SetTrace(context.Context, *protocol.SetTraceParams) error
func (*NotImplementedServer) Shutdown ¶
func (s *NotImplementedServer) Shutdown(context.Context) error
func (*NotImplementedServer) SignatureHelp ¶
func (s *NotImplementedServer) SignatureHelp(context.Context, *protocol.SignatureHelpParams) (*protocol.SignatureHelp, error)
func (*NotImplementedServer) Subtypes ¶
func (s *NotImplementedServer) Subtypes(context.Context, *protocol.TypeHierarchySubtypesParams) ([]protocol.TypeHierarchyItem, error)
func (*NotImplementedServer) Supertypes ¶
func (s *NotImplementedServer) Supertypes(context.Context, *protocol.TypeHierarchySupertypesParams) ([]protocol.TypeHierarchyItem, error)
func (*NotImplementedServer) Symbol ¶
func (s *NotImplementedServer) Symbol(context.Context, *protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error)
func (*NotImplementedServer) TypeDefinition ¶
func (s *NotImplementedServer) TypeDefinition(context.Context, *protocol.TypeDefinitionParams) ([]protocol.Location, error)
func (*NotImplementedServer) WillCreateFiles ¶
func (s *NotImplementedServer) WillCreateFiles(context.Context, *protocol.CreateFilesParams) (*protocol.WorkspaceEdit, error)
func (*NotImplementedServer) WillDeleteFiles ¶
func (s *NotImplementedServer) WillDeleteFiles(context.Context, *protocol.DeleteFilesParams) (*protocol.WorkspaceEdit, error)
func (*NotImplementedServer) WillRenameFiles ¶
func (s *NotImplementedServer) WillRenameFiles(context.Context, *protocol.RenameFilesParams) (*protocol.WorkspaceEdit, error)
func (*NotImplementedServer) WillSave ¶
func (s *NotImplementedServer) WillSave(context.Context, *protocol.WillSaveTextDocumentParams) error
func (*NotImplementedServer) WillSaveWaitUntil ¶
func (s *NotImplementedServer) WillSaveWaitUntil(context.Context, *protocol.WillSaveTextDocumentParams) ([]protocol.TextEdit, error)
func (*NotImplementedServer) WorkDoneProgressCancel ¶
func (s *NotImplementedServer) WorkDoneProgressCancel(context.Context, *protocol.WorkDoneProgressCancelParams) error
type Server ¶
type Server interface { // Version returns the protocol version. Version(context.Context) (int, error) // WorkspaceFolders returns the workspace folders currently being managed by acme-lsp. // In LSP, this method is implemented by the client, but in our case acme-lsp is managing // the workspace folders, so this has to be implemented by the acme-lsp proxy server. WorkspaceFolders(context.Context) ([]protocol.WorkspaceFolder, error) // InitializeResult returns the initialize response from the LSP server. // This is useful for L command to get initialization results (e.g. server capabilities) // of an already initialized LSP server. InitializeResult(context.Context, *protocol.TextDocumentIdentifier) (*protocol.InitializeResult, error) // ExecuteCommandOnDocument is the same as ExecuteCommand, but // params contain the TextDocumentIdentifier of the original // CodeAction so that the server implemention can multiplex // ExecuteCommand request to the right server. ExecuteCommandOnDocument(context.Context, *ExecuteCommandOnDocumentParams) (interface{}, error) protocol.Server }
Server implements a subset of an LSP protocol server as defined by protocol.Server and some custom acme-lsp specific methods.
Click to show internal directories.
Click to hide internal directories.