mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
fix: handle cancellation errors inside edit session identity provider (#247450)
This commit is contained in:
@@ -16,7 +16,13 @@ export class GitEditSessionIdentityProvider implements vscode.EditSessionIdentit
|
||||
this.providerRegistration = vscode.Disposable.from(
|
||||
vscode.workspace.registerEditSessionIdentityProvider('file', this),
|
||||
vscode.workspace.onWillCreateEditSessionIdentity((e) => {
|
||||
e.waitUntil(this._onWillCreateEditSessionIdentity(e.workspaceFolder));
|
||||
e.waitUntil(
|
||||
this._onWillCreateEditSessionIdentity(e.workspaceFolder).catch(err => {
|
||||
if (err instanceof vscode.CancellationError) {
|
||||
throw err;
|
||||
}
|
||||
})
|
||||
);
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user