Skip to content

Commit 2ccac57

Browse files
committed
feat: add error code when lsp check fails
1 parent 549a4a2 commit 2ccac57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/shared/lsp/utils/platform.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export async function validateNodeExe(nodePath: string[], lsp: string, args: str
6868
})
6969
if (!ok2 || selfExit) {
7070
throw new ToolkitError(
71-
`amazonqLsp: failed to run (exitcode=${lspProc.exitCode()}): ${lspProc.toString(false, true)}`
71+
`amazonqLsp: failed to run (exitcode=${lspProc.exitCode()}): ${lspProc.toString(false, true)}`,
72+
{ code: 'InvalidLSP' }
7273
)
7374
}
7475
} finally {

0 commit comments

Comments
 (0)