actually remove fileName from the notebook document implementation, https://github.com/microsoft/vscode/issues/121329

This commit is contained in:
Johannes Rieken
2021-04-15 16:25:10 +02:00
parent 45097cfcc9
commit c079d216f0

View File

@@ -153,10 +153,9 @@ export class ExtHostNotebookDocument {
get notebookDocument(): vscode.NotebookDocument {
if (!this._notebook) {
const that = this;
this._notebook = Object.freeze({
this._notebook = {
get uri() { return that.uri; },
get version() { return that._versionId; },
get fileName() { return that.uri.fsPath; },
get viewType() { return that._viewType; },
get isDirty() { return that._isDirty; },
get isUntitled() { return that.uri.scheme === Schemas.untitled; },
@@ -174,7 +173,7 @@ export class ExtHostNotebookDocument {
save() {
return that._save();
}
});
};
}
return this._notebook;
}