untitled editor tests

This commit is contained in:
Benjamin Pasero
2016-09-06 16:36:10 +02:00
parent 2bb55b7cff
commit 2791e5c5be
14 changed files with 120 additions and 48 deletions

View File

@@ -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