NotebookDocumentWillSaveEvent class
An event that is fired when a {@link NotebookDocumentnotebook document} will be saved.
To make modifications to the document before it is being saved, call the {@linkcode NotebookDocumentWillSaveEvent.waitUntilwaitUntil}-function with a thenable that resolves to a {@link WorkspaceEditworkspace edit}.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
- NotebookDocumentWillSaveEvent.new({CancellationToken? token, NotebookDocument? notebook, TextDocumentSaveReason? reason})
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- notebook → NotebookDocument
-
Available on NotebookDocumentWillSaveEvent, provided by the NotebookDocumentWillSaveEvent$Typings extension
The {@link NotebookDocumentnotebook document} that will be saved.no setter - reason → TextDocumentSaveReason
-
Available on NotebookDocumentWillSaveEvent, provided by the NotebookDocumentWillSaveEvent$Typings extension
The reason why save was triggered.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → CancellationToken
-
Available on NotebookDocumentWillSaveEvent, provided by the NotebookDocumentWillSaveEvent$Typings extension
A cancellation token.no setter - waitUntil → ({void Function(Future thenable) $1, void Function(Future thenable) $2})
-
Available on NotebookDocumentWillSaveEvent, provided by the NotebookDocumentWillSaveEvent$Typings extension
Overload accessor: $1, $2no 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