We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8598b1 commit b012df4Copy full SHA for b012df4
src/goInstallTools.ts
@@ -191,7 +191,11 @@ export async function installTools(
191
failures.push({ tool, reason: failed });
192
} else if (tool.name === 'gopls') {
193
// Restart the language server if a new binary has been installed.
194
- vscode.commands.executeCommand('go.languageserver.restart', RestartReason.INSTALLATION);
+ try {
195
+ vscode.commands.executeCommand('go.languageserver.restart', RestartReason.INSTALLATION);
196
+ } catch (e) {
197
+ vscode.window.showErrorMessage(`Failed to start language server: ${e}`);
198
+ }
199
}
200
201
0 commit comments