Restart Pylance without reload prompt once it is detected
See original GitHub issueThis shows the experience when creating a sample python dev container: https://cln.sh/KBwsUa (wait to the end of the recording…)
That I need to reload the window is not what I’d expect from a sample dev container (or in general). Since the Python extension activates on the existence of requirements.txt
(see here) the language server change listener (see here is active.
It’s unclear to why we need to reload the window if there is no open file at all. Also, we should make an effort to not require a reload. For example, the TS extension can recover from language server crashes/restarts without any reload.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Pylance does not recognise newly installed pip packages
This question will happen when Pylance doesn't detect the module immediately. You may Reload Window from Command Palette to refresh the current project....
Read more >Pylance - Visual Studio Marketplace
Used to parse the source code for a package when a typestub is not found. Accepted values: true (default); false. python.analysis.indexing. Used ...
Read more >Visual Studio Code (Windows) - Setting up a ... - YouTube
In this Python Programming Tutorial, we will be learning how to set up a Python development environment in VSCode on Windows.
Read more >Have you tried Pylance for VS Code? If not, here's why you ...
If you work with Python and Visual Studio Code, go ahead and do yourself a favor: download the Pylance extension (preview) and try...
Read more >Reload / Restart Visual Studio Code Window
This post & video explained to Reload or Restart the Visual Studio Code. ... visual studio code in the market place, if some...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like one of the endgame queries forgot to exclude on-testplan items for bugs. I’ll label this issue as verified just to kick it off the query.
Throwing my hat in the ring. I have adevcontainer post create command that install my reqs (poetry install) and it takes some time. By the time it is done, the pylance reload window disappeared and nothing gets done. It’s a non-starter, since I won’t be able to reload the window, and if I do, same happens, cycle repeats itself.
What is the purpose of this window reload upon installing pylance?