mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user