mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
some fixes around untitled files
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user