提交 2b820b4b 编写于 作者: M Matt Bierner

Hook custom editor backup cancellation into the extension layer

上级 7a4e81a6
......@@ -604,6 +604,10 @@ class MainThreadCustomEditorModel extends Disposable implements ICustomEditorMod
this._proxy.$backup(this._editorResource.toJSON(), this.viewType, token)));
this._hotExitState = pendingState;
token.onCancellationRequested(() => {
pendingState.operation.cancel();
});
try {
const backupId = await pendingState.operation;
// Make sure state has not changed in the meantime
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册