-
Notifications
You must be signed in to change notification settings - Fork 369
Description
In this code here, workspace diagnostics is repolling every 2 seconds:
| this.pullWorkspace(); |
This makes Pylance continuously do analysis. At least for items that don't seem to save the fact that there are no errors. (Previous result ids don't exist for files that aren't open, but workspace mode asks for all files).
I'm not sure if the polling is as design (might be) but missing the previous result id seems like a bug?
For example, in the issue where we found this:
microsoft/pylance-release#7499
The user has a single file open.
Our result contains all files though. The next poll request only has a previous result id for the file that's open. If all previous results were passed, we would mark the next request as unchanged, but we can't because of the missing result ids for the unopened files.