mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
Hook custom editor backup cancellation into the extension layer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user