$ModuleLanguages$Typings extension

on

Properties

getDiagnostics → ({List<(Uri, List<Diagnostic>)> Function() $1, List<Diagnostic> Function(Uri resource) $2})
Overload accessor: $1, $2
no setter
onDidChangeDiagnostics Event<DiagnosticChangeEvent>
An {@link Event} which fires when the global set of diagnostics changes. This is newly added and removed diagnostics.
no setter
registerSignatureHelpProvider → ({Disposable Function(Object selector, SignatureHelpProvider provider, [Iterable? triggerCharacters]) $1, Disposable Function(Object selector, SignatureHelpProvider provider, SignatureHelpProviderMetadata metadata) $2})
Overload accessor: $1, $2
no setter

Methods

createDiagnosticCollection([String? name]) DiagnosticCollection
Create a diagnostics collection.
createLanguageStatusItem(String id, Object selector) LanguageStatusItem
Creates a new {@link LanguageStatusItemlanguage status item}.
getLanguages() Future
Return the identifiers of all known languages.
match(Object selector, TextDocument document) num
Compute the match between a document {@link DocumentSelectorselector} and a document. Values greater than zero mean the selector matches the document.
registerCallHierarchyProvider(Object selector, CallHierarchyProvider provider) Disposable
Register a call hierarchy provider.
registerCodeActionsProvider(Object selector, CodeActionProvider<CodeAction> provider, [CodeActionProviderMetadata? metadata]) Disposable
Register a code action provider.
registerCodeLensProvider(Object selector, CodeLensProvider<CodeLens> provider) Disposable
Register a code lens provider.
registerColorProvider(Object selector, DocumentColorProvider provider) Disposable
Register a color provider.
registerCompletionItemProvider(Object selector, CompletionItemProvider<CompletionItem> provider, [Iterable? triggerCharacters]) Disposable
Register a completion provider.
registerDeclarationProvider(Object selector, DeclarationProvider provider) Disposable
Register a declaration provider.
registerDefinitionProvider(Object selector, DefinitionProvider provider) Disposable
Register a definition provider.
registerDocumentDropEditProvider(Object selector, DocumentDropEditProvider provider) Disposable
Registers a new {@link DocumentDropEditProvider}.
registerDocumentFormattingEditProvider(Object selector, DocumentFormattingEditProvider provider) Disposable
Register a formatting provider for a document.
registerDocumentHighlightProvider(Object selector, DocumentHighlightProvider provider) Disposable
Register a document highlight provider.
registerDocumentLinkProvider(Object selector, DocumentLinkProvider<DocumentLink> provider) Disposable
Register a document link provider.
registerDocumentRangeFormattingEditProvider(Object selector, DocumentRangeFormattingEditProvider provider) Disposable
Register a formatting provider for a document range.
registerDocumentRangeSemanticTokensProvider(Object selector, DocumentRangeSemanticTokensProvider provider, SemanticTokensLegend legend) Disposable
Register a semantic tokens provider for a document range.
registerDocumentSemanticTokensProvider(Object selector, DocumentSemanticTokensProvider provider, SemanticTokensLegend legend) Disposable
Register a semantic tokens provider for a whole document.
registerDocumentSymbolProvider(Object selector, DocumentSymbolProvider provider, [DocumentSymbolProviderMetadata? metaData]) Disposable
Register a document symbol provider.
registerEvaluatableExpressionProvider(Object selector, EvaluatableExpressionProvider provider) Disposable
Register a provider that locates evaluatable expressions in text documents. The editor will evaluate the expression in the active debug session and will show the result in the debug hover.
registerFoldingRangeProvider(Object selector, FoldingRangeProvider provider) Disposable
Register a folding range provider.
registerHoverProvider(Object selector, HoverProvider provider) Disposable
Register a hover provider.
registerImplementationProvider(Object selector, ImplementationProvider provider) Disposable
Register an implementation provider.
registerInlayHintsProvider(Object selector, InlayHintsProvider<InlayHint> provider) Disposable
Register a inlay hints provider.
registerInlineCompletionItemProvider(Object selector, InlineCompletionItemProvider provider) Disposable
Registers an inline completion provider.
registerInlineValuesProvider(Object selector, InlineValuesProvider provider) Disposable
Register a provider that returns data for the debugger's 'inline value' feature. Whenever the generic debugger has stopped in a source file, providers registered for the language of the file are called to return textual data that will be shown in the editor at the end of lines.
registerLinkedEditingRangeProvider(Object selector, LinkedEditingRangeProvider provider) Disposable
Register a linked editing range provider.
registerOnTypeFormattingEditProvider(Object selector, OnTypeFormattingEditProvider provider, String firstTriggerCharacter, [Iterable? moreTriggerCharacter]) Disposable
Register a formatting provider that works on type. The provider is active when the user enables the setting editor.formatOnType.
registerReferenceProvider(Object selector, ReferenceProvider provider) Disposable
Register a reference provider.
registerRenameProvider(Object selector, RenameProvider provider) Disposable
Register a rename provider.
registerSelectionRangeProvider(Object selector, SelectionRangeProvider provider) Disposable
Register a selection range provider.
registerTypeDefinitionProvider(Object selector, TypeDefinitionProvider provider) Disposable
Register a type definition provider.
registerTypeHierarchyProvider(Object selector, TypeHierarchyProvider provider) Disposable
Register a type hierarchy provider.
registerWorkspaceSymbolProvider(WorkspaceSymbolProvider<SymbolInformation> provider) Disposable
Register a workspace symbol provider.
setLanguageConfiguration(String language, LanguageConfiguration configuration) Disposable
Set a {@link LanguageConfigurationlanguage configuration} for a language.
setTextDocumentLanguage(TextDocument document, String languageId) Future
Set (and change) the {@link TextDocument.languageIdlanguage} that is associated with the given document.