mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
backup - wire cancellation into backup() method
This commit is contained in:
@@ -567,7 +567,7 @@ class MainThreadCustomEditorModel extends Disposable implements ICustomEditorMod
|
||||
}
|
||||
}
|
||||
|
||||
public async backup(): Promise<IWorkingCopyBackup> {
|
||||
public async backup(token: CancellationToken): Promise<IWorkingCopyBackup> {
|
||||
const editors = this._getEditors();
|
||||
if (!editors.length) {
|
||||
throw new Error('No editors found for resource, cannot back up');
|
||||
|
||||
Reference in New Issue
Block a user