Skip to content

Integrated Terminal Window becomes active #1284

Closed

Description

@tchapin

Environment data

  • VS Code version: 1.21.1
  • Extension version (available under the Extensions sidebar): 2018.3.1 (29 Mar 2018)
  • OS and version: Microsoft Windows 10 Pro 10.0.16299 Build 16299
  • Python version (& distribution if applicable, e.g. Anaconda): 2.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A

Actual behavior

When running a Python script in debugger, the Terminal window receives focus every time, regardless of what window previously had focus.

Expected behavior

When the DEBUG CONSOLE is active, it remains active when a script is run.

Steps to reproduce:

  1. select "DEBUG CONSOLE"
  2. run program
  3. Observe that TERMINAL has focus. To see the content in DEBUG CONSOLE you have to click to activate that window.

Activity

  1. brettcannon commented on Apr 5, 2018

    @brettcannon
    Member

    Do we control this, Don Jayamanne (@DonJayamanne) ?

  2. DonJayamanne commented on Apr 5, 2018

    @DonJayamanne

    Ted Chapin (@tchapin)
    In the past the extension used the debug console as the default output. However we've changed this default behavior in recent versions (as that doesn't support user input and leads confusions amongst users).

    There are two solutions (open launch.json to make the following changes):

    • Change the console to none
      This will revert back to the previous behavior (integrated terminal will not be used for debugging).
    • Change the value of internalConsoleOptions to openOnSessionStart

    Brett Cannon (@brettcannon) the setting internalConsoleOptions is something provided by VS Code, and that's what controls the display of the debug console. The problem is with the use of the terminal, focus goes to the terminal.

    Do we control this

    No. However there are ways around this (as mentioned above).

  3. locked as resolved and limited conversation to collaborators on Jul 11, 2018
  4. added a commit that references this issue on Jul 18, 2018
    e54947e
  5. added a commit that references this issue on Apr 15, 2026
    437afb5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions