Commit 5cd765a
authored
Fix angry module LSP diagnostic (#6086)
### What was changed?
Improve LSP diagnostics, so instead of
<img width="278" alt="image"
src="https://github.com/user-attachments/assets/36977d46-a9e0-406c-af33-7a317426a767"
/>
the IDE shows
<img width="250" alt="image"
src="https://github.com/user-attachments/assets/87c9c5df-89a4-49ea-8882-8322881dad19"
/>
For the errors:
`not resolving module '_module' because there were errors in resolving
its nested module 'A'"`
`boolean literal used as if it had type int"`
### How has this been tested?
- Added an LSP test
<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>1 parent 7db1e5f commit 5cd765a
File tree
2 files changed
+21
-1
lines changed- Source
- DafnyCore/AST/Modules
- DafnyLanguageServer.Test/Diagnostics
2 files changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
21 | 41 | | |
22 | 42 | | |
23 | 43 | | |
| |||
0 commit comments