Skip to content

Fixed error when initializationOptions is undefined #656

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

Merged
merged 1 commit into from
Nov 9, 2022

Conversation

anbcodes
Copy link
Contributor

@anbcodes anbcodes commented Nov 9, 2022

This PR fixes an issue where the language server crashes if the initalizationOptions property is not defined. The initializationOptions property is optional according to the language server protocol specification, so the server shouldn't rely on it being an object.

This also fixes helix-editor/helix#2213. Helix does not send the initializationOptions by default and so the language server was crashing.

@bradlc
Copy link
Contributor

bradlc commented Nov 9, 2022

Thank you!

@bradlc bradlc merged commit a740b0e into tailwindlabs:master Nov 9, 2022
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.

Tailwind language server shows errors
2 participants