forked from smithy-lang/smithy-language-server
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from disneystreaming/fix-stale-and-tempfile-dia…
…gnostics 1. Publish diagnostics for files that have failures in the model (not just files that triggered failed compilation) 2. Explicitly publish empty list of diagnostics for files that have no errors (to clear out between compilation) 3. Never publish diagnostics for temporary files we create during `didChange`. Instead: - Massage a list of validation events, to change the locations of diagnostics to point at real workspace files - Don't persist the model (`this.project`) if we're not working with real files (as in the case of `didOpen` and `didSave`). This prevents stale diagnostics from accumulating with every change until the user presses Save. 4. Add tests for all this nightmare.
- Loading branch information
Showing
5 changed files
with
344 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.