-
Notifications
You must be signed in to change notification settings - Fork 60
Typing module A
at the top of an empty .res
file causes VSCode to not respond
#409
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
Comments
Would you add some details? |
It happened in a pre-existing project as well as in a quick Edit: Ah, but it only happens when rescript-vscode is activated. |
To rule out an issue with building the extension locally, would you try with the |
I already tried it both with the built vsix (rescript-vscode-194bd3a.vsix) as well as locally built. |
Also happens on my machine with the VSIX built from master. Happens with "Node.res", too. |
Actually it does not seem to be related to the filename at all. |
module A
at the top of an empty .res
file causes VSCode to not respond
You are right, it seems the file just needs to be empty and the |
Can see it now, thanks. |
Turns out the compact array notation bases on offset used by semantic tokens for speed will crash on an invalid index and bring down the whole thing without any debug info. Well spotted. |
Thank you for the fast fix! |
When I create a file called
NodeJs.res
in a rescript project, and typemodule A
in it, VSCode completely crashes.I tried to get something meaningful out of the debugger, but there is nothing.
(tested with current master/194bd3a)
The text was updated successfully, but these errors were encountered: