Skip to content

Get pull diagnostics working = Diagnostics from open files sometime not cleared up when file is closed. #5402

Closed
@heejaechang

Description

@heejaechang
  1. open single folder in vscode
  2. and do FAR on Path - https://github.com/microsoft/pylance-release/blob/main/testing/single/src/findallreferences.py#L6
  3. and click all files references are found

Expected: 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)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfixed in next version (main)A fix has been implemented and will appear in an upcoming version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions