Closed ChristLBUPT closed 2 weeks ago
Language Server version: 2023.4.11 ms-python.python-2023.4.1
The versions of the Python and Pylance extensions that you are using are more than a year old. Can you please upgrade to the latest versions of both and see if this behavior still happens?
This issue has been closed automatically because it needs more information and has not had recent activity. If the issue still persists, please reopen with the information requested. Thanks.
Environment data
Code Snippet
Repro Steps
Expected behavior
The language server properties like linting and autocomplete should follow up as long as I type anything new.
Actual behavior
As shown in the gif above, the language server seems to be a little "torpid" about what I'm typing. After typing new contents, the notification of '1 file to analyse' keeps popping up on the bottom-left corner of the panel, and the linting underlines 'gradually' came up, even if I have stopped typing and waiting for linting suggestions. The autocomplete suggestings, which should have occurred as soon as I stopped typing the
torch.
, came up very slowly, after a great many '1 file to analyse' notifications.I doubt that those 'gradual' analysing procedures are about the 'outdated file contents', such as the file content just after I type the first character. It seems as if the request to the language server was 'queued' and the language server should 'deal with the earlier file contents' before actually analysing the file content that is present.
Logs
It seems that there isn't anything special about linting and language servers. But I'll still paste the outputs below: