some fixes around untitled files

This commit is contained in:
Benjamin Pasero
2016-06-17 12:49:42 +02:00
parent 2cac9dd2fa
commit 6efb6f1500
2 changed files with 10 additions and 3 deletions

View File

@@ -99,6 +99,8 @@ export class UntitledEditorInput extends AbstractUntitledEditorInput {
public revert(): TPromise<boolean> {
this.cachedModel.revert();
this.dispose(); // a reverted untitled editor is no longer valid, so we dispose it
return TPromise.as(true);
}