Skip to content

Commit

Permalink
Merge pull request #2367 from codefori/fix/workspaceListener
Browse files Browse the repository at this point in the history
Build workspace watcher only once
  • Loading branch information
sebjulliand authored Nov 26, 2024
2 parents 737837c + 913ae07 commit b13e390
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/local/deployment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export namespace Deployment {

const workspaces = vscode.workspace.workspaceFolders;
if (workspaces && workspaces.length > 0) {
buildWatcher().then(bw => context.subscriptions.push(bw));
buildWatcher().then(context.subscriptions.push);
}

instance.subscribe(
Expand All @@ -57,7 +57,6 @@ export namespace Deployment {

if (workspaces && connection && storage && config) {
if (workspaces.length > 0) {
buildWatcher().then(bw => context.subscriptions.push(bw));
button.show();
}

Expand Down

0 comments on commit b13e390

Please sign in to comment.