Language Features¶
- class esbonio.server.LanguageFeature(server)[source]¶
Base class for language features.
Completion¶
- class esbonio.server.CompletionTrigger(patterns, languages=NOTHING, characters=NOTHING)[source]¶
Define when the feature’s completion method should be called.
- characters: set[str]¶
Characters which, when typed, should trigger a completion request.
If empty, this trigger will ignore any trigger characters.
- languages: set[str]¶
Languages in which the completion trigger should fire.
If empty, the document’s language will be ignored.
- patterns: list[re.Pattern]¶
A list of regular expressions to try
- class esbonio.server.CompletionContext(uri, doc, match, position, language, capabilities)[source]¶
Captures the context within which a completion request has been made.
- capabilities: types.ClientCapabilities¶
The client’s capabilities.
- property deprecated_support: bool¶
Indicates if the client supports the deprecated field on a
CompletionItem
.
- doc: TextDocument¶
The document within which the completion request was made.
- property documentation_formats: list[MarkupKind]¶
The list of documentation formats supported by the client.
- position: types.Position¶
The position at which the completion request was made.
- property preselect_support: bool¶
Indicates if the client supports the preselect field on a
CompletionItem
.