Skip to content

Commit 11dbe49

Browse files
Improve error discovery when the LSP process cannot be started
1 parent 2d3528d commit 11dbe49

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

vscode-client/src/extension.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function activate(context: ExtensionContext) {
2929

3030
start(context, command, explainshellEndpoint, highlightParsingErrors)
3131
} catch (error) {
32-
handleMissingExecutable()
32+
handleStartError(error)
3333
}
3434
}
3535

@@ -93,7 +93,9 @@ function handleOutdatedExecutable() {
9393
window.showErrorMessage(message, { modal: false })
9494
}
9595

96-
function handleMissingExecutable() {
97-
const message = `Can't find bash-language-server on your PATH. Please install it using "npm i -g bash-language-server".`
96+
function handleStartError(error: Error) {
97+
const message =
98+
'Unable to start bash-language-server, did you install it? Open DevTools for additional details.'
99+
console.error(error)
98100
window.showErrorMessage(message, { modal: false })
99101
}

0 commit comments

Comments
 (0)