Skip to content

fix: lsp servers failing to start in the packaged desktop app - #3063

Merged
abose merged 2 commits into
mainfrom
fix
Aug 1, 2026
Merged

fix: lsp servers failing to start in the packaged desktop app#3063
abose merged 2 commits into
mainfrom
fix

Conversation

@abose

@abose abose commented Aug 1, 2026

Copy link
Copy Markdown
Member

Packaging dereferences the symlinks npm creates in node_modules/.bin, so the shim body ends up in .bin/ where its own relative require resolves against node_modules/ - vtsls died with "Cannot find module '../dist/main.js'". vscode-json-language-server broke the same way.

Resolve the bin entry the bundled package itself declares and run it on our node runtime instead of going through the .bin shim. This is also correct on Windows, where .bin/ is an sh script that cannot be spawned directly.

abose added 2 commits August 1, 2026 15:29
Packaging dereferences the symlinks npm creates in node_modules/.bin, so
the shim body ends up in .bin/ where its own relative require resolves
against node_modules/ - vtsls died with "Cannot find module
'../dist/main.js'". vscode-json-language-server broke the same way.

Resolve the bin entry the bundled package itself declares and run it on
our node runtime instead of going through the .bin shim. This is also
correct on Windows, where .bin/<command> is an sh script that cannot be
spawned directly.
@sonarqubecloud

sonarqubecloud Bot commented Aug 1, 2026

Copy link
Copy Markdown

@abose
abose merged commit e4b46df into main Aug 1, 2026
11 of 21 checks passed
@abose
abose deleted the fix branch August 1, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant