KEMBAR78
VSCode opens output panel after each save · Issue #9603 · microsoft/vscode-python · GitHub
Skip to content

VSCode opens output panel after each save #9603

@ymyke

Description

@ymyke

Environment 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 How to update the language server to the latest stable version #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.

(See https://stackoverflow.com/questions/59694465/how-to-prevent-vscode-opening-output-panel-after-each-save )

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.

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions