Commit 9a2adb1
committed
Add indexVersion and cross-file diagnostics
Introduce a monotonically-increasing indexVersion in Analyzer and bump it whenever the global symbol index mutates (e.g. updateAllIndexes, removeFromIndex). In the diagnostics handler, track the analyzer indexVersion and, when it changes, schedule a debounced cross-file revalidation (CROSS_FILE_DEBOUNCE_MS = 800ms) that re-runs diagnostics for all open workspace documents except the triggering URI. Non-workspace files receive cleared diagnostics. This ensures open files pick up cross-file symbol additions/removals without requiring manual edits.1 parent 2c6b50b commit 9a2adb1
2 files changed
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
313 | 321 | | |
314 | 322 | | |
315 | 323 | | |
| |||
335 | 343 | | |
336 | 344 | | |
337 | 345 | | |
| 346 | + | |
338 | 347 | | |
339 | 348 | | |
340 | 349 | | |
| |||
694 | 703 | | |
695 | 704 | | |
696 | 705 | | |
| 706 | + | |
697 | 707 | | |
698 | 708 | | |
699 | 709 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
30 | 54 | | |
31 | 55 | | |
32 | 56 | | |
| |||
60 | 84 | | |
61 | 85 | | |
62 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
63 | 96 | | |
64 | 97 | | |
65 | 98 | | |
| |||
0 commit comments