Commit 0f13d77
Fix: always pull diagnostics on didOpen even if document is known via tab
When a document is restored from a tab (e.g., hot exit), the tab open
event fires before the didOpen notification. The tab handler triggers a
diagnostic pull with potentially stale content. Previously, when didOpen
fired, the knows() check would skip re-pulling diagnostics.
Now the didOpen handler always triggers a diagnostic pull. The existing
pullAsync logic handles deduplication - if a request is already active,
it cancels it and reschedules with the current document content.
Fixes #1558
Co-authored-by: dbaeumer <1931590+dbaeumer@users.noreply.github.com>1 parent eef3bb2 commit 0f13d77
2 files changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | 867 | | |
872 | 868 | | |
873 | 869 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments