- protected override void client_closed (Client client)
- protected virtual async Action[]? code_action_async (Client client, TextDocumentIdentifier text_document, Range range, CodeActionContext context) throws Error
The code action request is sent from the client to the server to
compute commands for a given text document and range. These commands are typically code fixes to either fix problems or to
beautify/refactor code. The result of a textDocument/codeAction request is an array of Command literals which are typically presented
in the user interface. To ensure that a server is useful in many clients the commands specified in a code actions should be handled by
the server and not by the client (see workspace/executeCommand and ServerCapabilities.executeCommandProvider). If the client supports
providing edits with a code action then that mode should be used.
- protected virtual async CodeLens[]? code_lens_async (Client client, TextDocumentIdentifier text_document) throws Error
The code lens request is sent from the client to the server to compute
code lenses for a given text document.
- protected virtual async CompletionItem[]? completion_async (Client client, TextDocumentIdentifier text_document, Position position, CompletionContext? context) throws Error
The completion request is sent from the client to the server to
compute completion items at a given cursor position.
- protected virtual async Location[]? declaration_async (Client client, TextDocumentIdentifier text_document, Position position) throws Error
The go-to-declaration request is sent from the client to the server to
resolve the declaration location for a symbol at a given text document position.
- protected virtual async Location[]? definition_async (Client client, TextDocumentIdentifier text_document, Position position) throws Error
The go-to-definition request is sent from the client to the server to
resolve the definition location for a symbol at a given text document position.
- protected virtual async DocumentHighlight[]? document_highlight_async (Client client, TextDocumentIdentifier text_document, Position position) throws Error
The document highlight request is sent from the client to the server
to resolve document highlights for a given text document position.
- protected virtual async DocumentSymbolResult? document_symbol_async (Client client, TextDocumentIdentifier text_document) throws Error
The document symbol request is sent from the client to the server to
return all symbols found in a given text document.
- protected virtual void exit ()
- protected virtual async TextEdit[]? formatting_async (Client client, TextDocumentIdentifier text_document, FormattingOptions options) throws Error
The document formatting request is sent from the client to the server
to format a whole document.
- protected virtual async Hover? hover_async (Client client, TextDocumentIdentifier text_document, Position position) throws Error
The hover request is sent from the client to the server to request
hover information at a given text document position.
- protected virtual async Location[]? implementation_async (Client client, TextDocumentIdentifier text_document, Position position) throws Error
The go-to-implementation request is sent from the client to the server
to resolve the implementation location for a symbol at a given text document position.
- protected virtual async CallHierarchyIncomingCall[]? incoming_calls_async (Client client, CallHierarchyItem item) throws Error
The incoming calls request is sent from the client to the server to
resolve incoming calls for a given call hierarchy item.
- protected abstract async InitializeResult initialize_async (Client client, InitializeParams init_params) throws Error
The initialize request is sent as the first request from the client to
the server. If the server receives a request or notification before the initialize request it should act as follows:
- protected virtual async void initialized_async (Client client) throws Error
The initialized notification is sent from the client to the server
after the client received the result of the initialize request but before the client is sending any other request or notification to
the server.
- protected virtual async InlayHint[]? inlay_hint_async (Client client, TextDocumentIdentifier text_document, Range range) throws Error
The inlay hint request is sent from the client to the server to
resolve inlay hints for a given text document range.
- protected virtual async InlayHint? inlay_hint_resolve_async (Client client, InlayHint hint) throws Error
The inlay hint resolve request is sent from the client to the server
to resolve additional information for a given inlay hint.
- protected virtual async CallHierarchyOutgoingCall[]? outgoing_calls_async (Client client, CallHierarchyItem item) throws Error
The outgoing calls request is sent from the client to the server to
resolve outgoing calls for a given call hierarchy item.
- protected virtual async CallHierarchyItem[]? prepare_call_hierarchy_async (Client client, TextDocumentIdentifier text_document, Position position) throws Error
The prepare call hierarchy request is sent from the client to the
server to prepare a call hierarchy for a symbol at a given text document position.
- protected virtual async PrepareRenameResult? prepare_rename_async (Client client, TextDocumentIdentifier text_document, Position position) throws Error
The prepare rename request is sent from the client to the server to
check whether a rename is valid at the given position.
- protected virtual async TypeHierarchyItem[]? prepare_type_hierarchy_async (Client client, TextDocumentIdentifier text_document, Position position) throws Error
Prepares a type hierarchy for a symbol at a document position.
- protected virtual async TextEdit[]? range_formatting_async (Client client, TextDocumentIdentifier text_document, Range range, FormattingOptions options) throws Error
The document range formatting request is sent from the client to the
server to format a given range in a document.
- protected virtual async Location[]? references_async (Client client, TextDocumentIdentifier text_document, Position position, ReferenceContext context) throws Error
The references request is sent from the client to the server to
resolve project-wide references for the symbol denoted by the given text document position.
- protected virtual async WorkspaceEdit? rename_async (Client client, TextDocumentIdentifier text_document, Position position, string new_name) throws Error
The rename request is sent from the client to the server to rename a
symbol.
- protected abstract async void shutdown_async (Client client) throws Error
The shutdown request is sent from the client to the server. It asks
the server to shut down, but to not exit (otherwise the response might not be delivered correctly to the client).
- protected virtual async SignatureHelp? signature_help_async (Client client, TextDocumentIdentifier text_document, Position position) throws Error
The signature help request is sent from the client to the server to
request signature information at a given cursor position.
- protected abstract async void text_document_did_change_async (Client client, TextDocumentIdentifier text_document, TextDocumentContentChangeEvent[] content_changes) throws Error
The document change notification is sent from the client to the server
to signal changes to a text document. Before a client can change a text document it must claim ownership of its content using the
textDocument/didOpen notification (see
text_document_did_open_async).
- protected abstract async void text_document_did_close_async (Client client, TextDocumentIdentifier text_document) throws Error
The document close notification is sent from the client to the server
when the document got closed in the client.
- protected abstract async void text_document_did_open_async (Client client, TextDocumentItem text_document) throws Error
The document open notification is sent from the client to the server
to signal newly opened text documents.
- protected virtual async void text_document_did_save_async (Client client, TextDocumentIdentifier text_document, string? text) throws Error
The document save notification is sent from the client to the server
when the document was saved in the client.
- protected virtual async TypeHierarchyItem[]? type_hierarchy_subtypes_async (Client client, TypeHierarchyItem item) throws Error
Resolves the direct subtypes of a type hierarchy item.
- protected virtual async TypeHierarchyItem[]? type_hierarchy_supertypes_async (Client client, TypeHierarchyItem item) throws Error
Resolves the direct supertypes of a type hierarchy item.
- protected virtual async SymbolInformation[]? workspace_symbol_async (Client client, string query) throws Error
The workspace symbol request is sent from the client to the server to
list project-wide symbols matching a given query string.