$ModuleLanguages class

Available extensions
Annotations
  • @JS('vscode.languages')
  • @staticInterop

Constructors

$ModuleLanguages()

Properties

getDiagnostics → ({List<(Uri, List<Diagnostic>)> Function() $1, List<Diagnostic> Function(Uri resource) $2})

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Overload accessor: $1, $2
no setter
hashCode int
The hash code for this object.
no setterinherited
onDidChangeDiagnostics Event<DiagnosticChangeEvent>

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

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})

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Overload accessor: $1, $2
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createDiagnosticCollection([String? name]) DiagnosticCollection

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Create a diagnostics collection.
createLanguageStatusItem(String id, Object selector) LanguageStatusItem

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Creates a new {@link LanguageStatusItemlanguage status item}.
getLanguages() Future

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Return the identifiers of all known languages.
match(Object selector, TextDocument document) num

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Compute the match between a document {@link DocumentSelectorselector} and a document. Values greater than zero mean the selector matches the document.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerCallHierarchyProvider(Object selector, CallHierarchyProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a call hierarchy provider.
registerCodeActionsProvider(Object selector, CodeActionProvider<CodeAction> provider, [CodeActionProviderMetadata? metadata]) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a code action provider.
registerCodeLensProvider(Object selector, CodeLensProvider<CodeLens> provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a code lens provider.
registerColorProvider(Object selector, DocumentColorProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a color provider.
registerCompletionItemProvider(Object selector, CompletionItemProvider<CompletionItem> provider, [Iterable? triggerCharacters]) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a completion provider.
registerDeclarationProvider(Object selector, DeclarationProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a declaration provider.
registerDefinitionProvider(Object selector, DefinitionProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a definition provider.
registerDocumentDropEditProvider(Object selector, DocumentDropEditProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Registers a new {@link DocumentDropEditProvider}.
registerDocumentFormattingEditProvider(Object selector, DocumentFormattingEditProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a formatting provider for a document.
registerDocumentHighlightProvider(Object selector, DocumentHighlightProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a document highlight provider.
registerDocumentLinkProvider(Object selector, DocumentLinkProvider<DocumentLink> provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a document link provider.
registerDocumentRangeFormattingEditProvider(Object selector, DocumentRangeFormattingEditProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a formatting provider for a document range.
registerDocumentRangeSemanticTokensProvider(Object selector, DocumentRangeSemanticTokensProvider provider, SemanticTokensLegend legend) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a semantic tokens provider for a document range.
registerDocumentSemanticTokensProvider(Object selector, DocumentSemanticTokensProvider provider, SemanticTokensLegend legend) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a semantic tokens provider for a whole document.
registerDocumentSymbolProvider(Object selector, DocumentSymbolProvider provider, [DocumentSymbolProviderMetadata? metaData]) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a document symbol provider.
registerEvaluatableExpressionProvider(Object selector, EvaluatableExpressionProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

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

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a folding range provider.
registerHoverProvider(Object selector, HoverProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a hover provider.
registerImplementationProvider(Object selector, ImplementationProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register an implementation provider.
registerInlayHintsProvider(Object selector, InlayHintsProvider<InlayHint> provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a inlay hints provider.
registerInlineCompletionItemProvider(Object selector, InlineCompletionItemProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Registers an inline completion provider.
registerInlineValuesProvider(Object selector, InlineValuesProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

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

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a linked editing range provider.
registerOnTypeFormattingEditProvider(Object selector, OnTypeFormattingEditProvider provider, String firstTriggerCharacter, [Iterable? moreTriggerCharacter]) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

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

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a reference provider.
registerRenameProvider(Object selector, RenameProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a rename provider.
registerSelectionRangeProvider(Object selector, SelectionRangeProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a selection range provider.
registerTypeDefinitionProvider(Object selector, TypeDefinitionProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a type definition provider.
registerTypeHierarchyProvider(Object selector, TypeHierarchyProvider provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a type hierarchy provider.
registerWorkspaceSymbolProvider(WorkspaceSymbolProvider<SymbolInformation> provider) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Register a workspace symbol provider.
setLanguageConfiguration(String language, LanguageConfiguration configuration) Disposable

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Set a {@link LanguageConfigurationlanguage configuration} for a language.
setTextDocumentLanguage(TextDocument document, String languageId) Future

Available on $ModuleLanguages, provided by the $ModuleLanguages$Typings extension

Set (and change) the {@link TextDocument.languageIdlanguage} that is associated with the given document.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited