mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 05:28:19 -05:00
avoid revert if it is not dirty
This commit is contained in:
@@ -133,7 +133,7 @@ export class NotebookEditorInput extends EditorInput {
|
||||
}
|
||||
|
||||
async revert(group: GroupIdentifier, options?: IRevertOptions): Promise<void> {
|
||||
if (this._textModel) {
|
||||
if (this._textModel && this._textModel.object.isDirty()) {
|
||||
await this._textModel.object.revert(options);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user