mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
@@ -545,7 +545,7 @@ class MainThreadCustomEditorModel extends ResourceWorkingCopy implements ICustom
|
||||
}
|
||||
}
|
||||
|
||||
public async revert(_options?: IRevertOptions) {
|
||||
public async revert(options?: IRevertOptions) {
|
||||
if (!this._editable) {
|
||||
return;
|
||||
}
|
||||
@@ -554,7 +554,10 @@ class MainThreadCustomEditorModel extends ResourceWorkingCopy implements ICustom
|
||||
return;
|
||||
}
|
||||
|
||||
this._proxy.$revert(this._editorResource, this.viewType, CancellationToken.None);
|
||||
if (!options?.soft) {
|
||||
this._proxy.$revert(this._editorResource, this.viewType, CancellationToken.None);
|
||||
}
|
||||
|
||||
this.change(() => {
|
||||
this._isDirtyFromContentChange = false;
|
||||
this._fromBackup = false;
|
||||
|
||||
Reference in New Issue
Block a user