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

Only check for expressions when keys are scalar #141

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

winstliu
Copy link
Member

@winstliu winstliu commented Dec 5, 2022

Compile-time expressions must have scalar keys; e.g. [array]: value will never be an expression. We now check the node to make sure it's scalar before seeing if it has a value to prevent the language server from crashing.

Fixes #140

@winstliu winstliu merged commit 9d81ece into main Dec 6, 2022
@winstliu winstliu deleted the user/winstonliu/expression-key-must-be-scalar branch December 6, 2022 16:16
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.

Language server crashes when pasting certain text
1 participant