mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
untitled editor tests
This commit is contained in:
@@ -83,7 +83,9 @@ export class UntitledEditorInput extends AbstractUntitledEditorInput {
|
||||
}
|
||||
|
||||
public revert(): TPromise<boolean> {
|
||||
this.cachedModel.revert();
|
||||
if (this.cachedModel) {
|
||||
this.cachedModel.revert();
|
||||
}
|
||||
|
||||
this.dispose(); // a reverted untitled editor is no longer valid, so we dispose it
|
||||
|
||||
|
||||
Reference in New Issue
Block a user