Add cancellation on CustomEditor.save

For #91702
This commit is contained in:
Matt Bierner
2020-03-04 15:46:15 -08:00
parent 415a40e542
commit 077cd38d26
4 changed files with 9 additions and 7 deletions

View File

@@ -625,7 +625,7 @@ class MainThreadCustomEditorModel extends Disposable implements ICustomEditorMod
if (!this._editable) {
return false;
}
await this._proxy.$onSave(this.resource, this.viewType);
await createCancelablePromise(token => this._proxy.$onSave(this.resource, this.viewType, token));
this.setDirty(false);
return true;
}