Skip to content

Commit 2835924

Browse files
committed
feat(vscode): only restart extension host when self-updating
1 parent 1e1d3ed commit 2835924

File tree

3 files changed

+9
-108
lines changed

3 files changed

+9
-108
lines changed

client/src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ function updateExtension(context: vscode.ExtensionContext, release: string) {
235235
return;
236236
}
237237
vscode.window
238-
.showInformationMessage(`Extension updated to ${release}. Reload to apply changes.`, "Reload now", "Later")
238+
.showInformationMessage(`Extension updated to ${release}. Reload to apply changes.`, "Reload extensions", "Later")
239239
.then((resp) => {
240-
if (resp === "Reload now") vscode.commands.executeCommand("workbench.action.reloadWindow");
240+
if (resp === "Reload extensions") vscode.commands.executeCommand("workbench.action.restartExtensionHost");
241241
});
242242
}
243243
},

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,12 @@
185185
"typescript": "^5.4.2",
186186
"vscode-languageclient": "^9.0.1",
187187
"vscode-uri": "^3.0.8"
188+
},
189+
"pnpm": {
190+
"onlyBuiltDependencies": [
191+
"@biomejs/biome",
192+
"esbuild",
193+
"keytar"
194+
]
188195
}
189196
}

pnpm-lock.yaml

Lines changed: 0 additions & 106 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)