DocumentFilter class
A document filter denotes a document by different properties like the {@link TextDocument.languageIdlanguage}, the {@link Uri.schemescheme} of its resource, or a glob-pattern that is applied to the {@link TextDocument.fileNamepath}.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
- DocumentFilter({String? language, String? notebookType, String? scheme, Object? pattern})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String?
-
Available on DocumentFilter, provided by the DocumentFilter$Typings extension
A language id, liketypescript
.no setter - notebookType → String?
-
Available on DocumentFilter, provided by the DocumentFilter$Typings extension
The {@link NotebookDocument.notebookTypetype} of a notebook, likejupyter-notebook
. This allows to narrow down on the type of a notebook that a {@link NotebookCell.documentcell document} belongs to.no setter - pattern → Object?
-
Available on DocumentFilter, provided by the DocumentFilter$Typings extension
A {@link GlobPatternglob pattern} that is matched on the absolute path of the document. Use a {@link RelativePatternrelative pattern} to filter documents to a {@link WorkspaceFolderworkspace folder}.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheme → String?
-
Available on DocumentFilter, provided by the DocumentFilter$Typings extension
A Uri {@link Uri.schemescheme}, likefile
oruntitled
.no setter
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