-
Notifications
You must be signed in to change notification settings - Fork 764
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
Get pull diagnostics working = Diagnostics from open files sometime not cleared up when file is closed. #5402
Comments
I think this might be a VS code issue. We get this during find all references for a file that isn't open:
Which then causes us to show diagnostics for a file that isn't open. |
I can reproduce this with typescript code too. It's not just python. |
See this: It seems we need to switch to a pull model if we want this to work correctly. It has to do with hidden tabs. |
In fact the documentation for pull mentions that textDocument/didOpen didClose are not a consistent method to actually tell what files are visible in the editor: |
Did open specifically says this: DidOpenTextDocument Notification (:arrow_right:) |
Switching to a pull method can sort of work, but I believe there's a bug in vscode-language-client: |
This is a prerequisite to fixing this pylance issue: microsoft/pylance-release#5402 --------- Co-authored-by: Erik De Bonte <erikd@microsoft.com>
This is a prerequisite to fixing this pylance issue: microsoft/pylance-release#5402 --------- Co-authored-by: Erik De Bonte <erikd@microsoft.com>
This is a prerequisite to fixing this pylance issue: microsoft/pylance-release#5402 --------- Co-authored-by: Erik De Bonte <erikd@microsoft.com>
single
folder invscode
FAR
onPath
- https://github.com/microsoft/pylance-release/blob/main/testing/single/src/findallreferences.py#L6Expected: diagnostics are cleared as new file is opened and old files are automatically closed.
Actual: diagnostics are left in problems tab for long time (but it eventually goes away)
...
this repro with
2023.12.1
so must be existing bug.it eventually goes away so it could be a perf issue. (such as even if a file is closed, we don't cancel pending request such as semantic token or checker requests running in BG so BG is staled or something like that)
The text was updated successfully, but these errors were encountered: