This commit is contained in:
Johannes Rieken
2021-05-31 15:55:15 +02:00
parent 220f89ba3c
commit f2fb2b8cbe
9 changed files with 44 additions and 27 deletions

View File

@@ -144,7 +144,7 @@ export class ExtHostNotebookDocument {
private readonly _textDocumentsAndEditors: ExtHostDocumentsAndEditors,
private readonly _textDocuments: ExtHostDocuments,
private readonly _emitter: INotebookEventEmitter,
private readonly _viewType: string,
private readonly _notebookType: string,
private _metadata: extHostTypes.NotebookDocumentMetadata,
readonly uri: URI,
) { }
@@ -159,7 +159,8 @@ export class ExtHostNotebookDocument {
this._notebook = {
get uri() { return that.uri; },
get version() { return that._versionId; },
get viewType() { return that._viewType; },
get viewType() { return that._notebookType; },
get notebookType() { return that._notebookType; },
get isDirty() { return that._isDirty; },
get isUntitled() { return that.uri.scheme === Schemas.untitled; },
get isClosed() { return that._disposed; },