Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix astro-ls server not starting #759

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Conversation

shusch
Copy link
Contributor

@shusch shusch commented Jul 8, 2024

In astro-ls server, I got the following error and :LspStatus failed.

error message:

Failed to initialize astro-ls with error -32603: Request initialize failed with message: The `typescript.tsdk` init option is required. It should point to a directory containing a `typescript.js` or `tsserverlibrary.js` file, such as `node_modules/typescript/lib`.

Volar, which astro-ls depends on, now uses tsdk instead of serverPath in initializationOptions, so I fixed it.

@mattn mattn merged commit f7cb396 into mattn:master Jul 25, 2024
14 checks passed
@mattn
Copy link
Owner

mattn commented Jul 25, 2024

Thank you

@shusch shusch deleted the fix-astro-settings branch July 25, 2024 14:15
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.

2 participants