question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VSCode opens output panel after each save

See original GitHub issue

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 #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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
int19hcommented, Jan 30, 2020

Validated.

1reaction
ericsnowcurrentlycommented, Jan 21, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent VSCode opening output panel after each save?
started opening the Output panel each time I save a file. If the panel is already open with another view (e.g., Terminal), the...
Read more >
VS Code API | Visual Studio Code Extension API
VS Code API. VS Code API is a set of JavaScript APIs that you can invoke in your Visual Studio Code extension. This...
Read more >
VS Code tips — The output view - YouTube
The output view in VS Code shows logs from VS Code and from installed extensions.While you probably don't need to check it all...
Read more >
Advanced Visual Studio Code for Python Developers
Visual Studio Code, or VS Code for short, is a free and open source code editor ... arguments and put the test output...
Read more >
Use the Visual Studio Code mssql extension - SQL Server
Visual Studio Code opens a new Plain Text file by default. ... After specifying each value, press Enter to continue.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found