Skip to content

Commit dc48e50

Browse files
authored
Replace window reload with restart extension host (#955)
UI can stay, it's just a faster way to reload extensions without losing unsaved data and has been available for at least 1-2 years in vscode now.
1 parent b0273b1 commit dc48e50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/prompts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function prompt_for_reload() {
55
const message = "Reload VSCode to apply settings";
66
vscode.window.showErrorMessage(message, "Reload").then(item => {
77
if (item === "Reload") {
8-
vscode.commands.executeCommand("workbench.action.reloadWindow");
8+
vscode.commands.executeCommand("workbench.action.restartExtensionHost");
99
}
1010
});
1111
}

0 commit comments

Comments
 (0)