fix: handle Continue On in unpublished git repo with no working changes (#246561)

* fix: handle Continue On in unpublished git repo with no working changes

* fix: register leaked disposable

* fix: increase timeout
This commit is contained in:
Joyce Er
2025-04-14 17:34:17 -07:00
committed by GitHub
parent c5759394bf
commit b7beb62a30
3 changed files with 32 additions and 12 deletions

View File

@@ -13,11 +13,12 @@ export class GitEditSessionIdentityProvider implements vscode.EditSessionIdentit
private providerRegistration: vscode.Disposable;
constructor(private model: Model) {
this.providerRegistration = vscode.workspace.registerEditSessionIdentityProvider('file', this);
vscode.workspace.onWillCreateEditSessionIdentity((e) => {
e.waitUntil(this._onWillCreateEditSessionIdentity(e.workspaceFolder));
});
this.providerRegistration = vscode.Disposable.from(
vscode.workspace.registerEditSessionIdentityProvider('file', this),
vscode.workspace.onWillCreateEditSessionIdentity((e) => {
e.waitUntil(this._onWillCreateEditSessionIdentity(e.workspaceFolder));
})
);
}
dispose() {