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

Improve config change handling #292

Merged
merged 3 commits into from
Nov 28, 2024
Merged

Improve config change handling #292

merged 3 commits into from
Nov 28, 2024

Conversation

mcecode
Copy link
Contributor

@mcecode mcecode commented Nov 27, 2024

I noticed that config updates don't get reflected in the editor unless harper-ls is restarted, at least for VSCode. Hence, my original solution to just restart it, but that feels like such a brute force way and it clears all the diagnostics within the workspace. So, I thought it'd be better if the new config is reflected and the diagnostics are updated when did_change_configuration is called.

P.S. This is my first time writing any Rust so I may have made a mistake somewhere.

@elijah-potter
Copy link
Collaborator

Looks great @mcecode. I'm impressed that you were able to root through that (admittedly quite messy) file, especially for your first time writing Rust. Merging...

@elijah-potter elijah-potter merged commit 47069a8 into master Nov 28, 2024
12 checks passed
@elijah-potter elijah-potter deleted the config-change branch November 28, 2024 15:52
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.

3 participants