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

Avoid sending all diagnostics on every file change #310

Merged
merged 12 commits into from
Jul 1, 2024

Conversation

Schottkyc137
Copy link
Contributor

Closes #210

This PR implements a server-side diagnostic cache, containing analysed diagnostics. On every change, new diagnostics are evaluated on the server side. Only when the diagnsotics are not in the cache are they then sent to the client.
This means that there are typically less transactions between server and client.

I'm not quite sure whether this resolves some of the performance impact seen by sending too many diagnostics as the server now has to do a lot of comparisons to check whether the diagnostics are in the cache.

@Schottkyc137 Schottkyc137 merged commit c4a1c56 into VHDL-LS:master Jul 1, 2024
10 checks passed
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.

Avoid sending diagnostics for all files on every change
1 participant