DocumentSemanticTokensProvider class

The document semantic tokens provider interface defines the contract between extensions and semantic tokens.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

DocumentSemanticTokensProvider({Event<void>? onDidChangeSemanticTokens, FutureOr<SemanticTokens> provideDocumentSemanticTokens(TextDocument, CancellationToken)?, FutureOr<Object> provideDocumentSemanticTokensEdits(TextDocument, String, CancellationToken)?})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
onDidChangeSemanticTokens Event<void>?

Available on DocumentSemanticTokensProvider, provided by the DocumentSemanticTokensProvider$Typings extension

An optional event to signal that the semantic tokens from this provider have changed.
getter/setter pair
provideDocumentSemanticTokens FutureOr<SemanticTokens> Function(TextDocument, CancellationToken)

Available on DocumentSemanticTokensProvider, provided by the DocumentSemanticTokensProvider$Typings extension

getter/setter pair
provideDocumentSemanticTokensEdits FutureOr<Object> Function(TextDocument, String, CancellationToken)

Available on DocumentSemanticTokensProvider, provided by the DocumentSemanticTokensProvider$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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