Skip to content

Implement new diagnostics system #371

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 3 commits into from
Nov 21, 2020

Conversation

jmbockhorst
Copy link
Member

@jmbockhorst jmbockhorst commented Nov 18, 2020

Implementation of the new diagnostics system with support for cancellation. Early testing is showing a dramatic increase in responsiveness of completions, diagnostics, etc on large workspaces. I enabled type inference diagnostics for now. While these are not ready for general use, they do work on some workspaces (Rare parsing bugs or type inference bugs can cause issues). We can remove these before the next release if they aren't stable enough or enabled them under a "experimental" setting. I will be testing this at work over the next few days to hopefully iron out any issues. Closes #351.

Here is a summary of the changes:

  • Upgraded to @next version of language server protocol to support file-based cancellation tokens
  • Add interruptable diagnostic provider
  • Enable type inference compiler diagnostics
  • Removed elm-analyse
  • Expose the server protocol through the package

Client PR: elm-tooling/elm-language-client-vscode#135

@razzeee
Copy link
Member

razzeee commented Nov 18, 2020

This is conflicting btw

* Add interruptable diagnostic provider
* Enable type inference compiler diagnostics
* Remove elm-analyse
@razzeee
Copy link
Member

razzeee commented Nov 19, 2020

LGTM, let's fix the tests and get this merged.

@razzeee razzeee merged commit 959b4be into elm-tooling:master Nov 21, 2020
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.

Support cancellation for requests
2 participants