VSCode opens output panel after each save
See original GitHub issueEnvironment data
-
VS Code version: Version: 1.41.1 (user setup) Commit: 26076a4de974ead31f97692a0d32f90d735645c0 Date: 2019-12-18T14:58:56.166Z Electron: 6.1.5 Chrome: 76.0.3809.146 Node.js: 12.4.0 V8: 7.6.303.31-electron.0 OS: Windows_NT x64 10.0.18362
-
Extension version (available under the Extensions sidebar): 2020.1.58038
-
OS and version: Windows_NT x64 10.0.18362
-
Python version (& distribution if applicable, e.g. Anaconda): 3.7.5, 64-bit, Anaconda
-
Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
-
Relevant/affected Python packages and their versions: not sure, none?
-
Jedi or Language Server? (i.e. what is
"python.jediEnabled"
set to; more info #3977):"python.jediEnabled": true
Expected behaviour
Saving a file should silently save the file and trigger linting and symbol rebuilding in the background.
Actual behaviour
Saving a file triggers linting and symbol rebuilding but each time opens (or refocuses, if another panel is already open) the output panel, where the output of these processes is shown.
Steps to reproduce:
Not sure how to reproduce this in another installation but these are the settings that seem to be relevant:
"python.workspaceSymbols.rebuildOnFileSave": true,
"python.linting.enabled": true,
Original problem specification as submitted to Stack Overflow:
My VSCode recently (within the last 2 weeks, so I am assuming there was some change in the last VSCode release) started opening the Output panel each time I save a file. If the panel is already open with another view (e.g., Terminal), the focus switches to the Output panel.
The Output panel gets opened because I have enabled these settings:
"python.workspaceSymbols.rebuildOnFileSave": true,
"python.linting.enabled": true,
Hence, the corresponding output is shown in the Output panel.
If I set those settings to false, the Output panel does not open after the save.
However, I have had those exact settings for months and no other relevant changes in my config and never had the problem that the Output panel opens after each saves. And I would like to have the settings as given above.
Question: How can I prevent the Output panel from opening after each saves? Or prevent it from opening altogether?
I haven’t found a setting to do this. And I’m surprised that no other users seem to have this issue.
Brett Cannnon’s comment to that on SO:
The trigger is that "python.workspaceSymbols.rebuildOnFileSave": true
was not implemented until the latest release. As for why the Output Panel is opening, I’m not sure. If you could open an issue at https://github.com/microsoft/vscode-python then hopefully we can figure out what’s going on.
(Clumsy) Workaround until fixed
Bind a key to workbench.action.togglePanel so at least you can close the panel immediately after each open.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Validated.
As @brettcannon noted, we added the “python.workspaceSymbols.rebuildOnFileSave” setting in the January release. The handler for the new setting leverages some older code, and that older code forces the output panel into focus (which was appropriate then). However, for the on-save case you’re right that we don’t want to bring the output panel into focus. We’ll work on a fix.