Skip to content

Fix extension crash when renaming a file. #422

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
May 13, 2022
Merged

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