Skip to content

Conversation

cristianoc
Copy link
Collaborator

More robust solution where the file cache is set also for files with extension not .res or .resi.
In case of rename e.g. from .res to .rex an opened file notification is sent for the .rex file and a crash happens when trying to get the current file content.
After this change, the file content array is set also for the .rex` file, preventing the crash.

Fixes #392

More robust solution where the file cache is set also for files with extension not `.res` or `.resi`.
In case of rename e.g. from `.res` to `.rex` an opened file notification is sent for the `.rex` file and a crash happens when trying to get the current file content.
After this change, the file content array is set also for the .rex` file, preventing the crash.

Fixes #392
@cristianoc cristianoc merged commit 088ec72 into master May 13, 2022
@cristianoc cristianoc deleted the fixRenameCrash branch May 13, 2022 09:13
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.

Renaming a .res or .resi to another file extension crashes ReScript language server

1 participant