Skip to content

Run-file-in-terminal button resembles tab scroll - resulting in inadvertent launch of script #UI #16184

@dmcbride64

Description

@dmcbride64

Environment data

  • VS Code version: 1.55.2
  • Extension version (available under the Extensions sidebar): v2021.4.765268190
  • OS and version: OS X 11.3.1
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.7
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: v2021.4.765268190
  • Value of the python.languageServer setting: Jedi

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

The run-file-in-terminal button is located in horizontal line with the file tabs. It's location and appearance make it appear to be a tab scroll: tabs slide to the left, revealing tabs that are off the screen to the right

Actual behaviour

Script launches

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Open many files
  2. Look for one file in the row of tabs. Maybe it's hidden to the right of the toolbar.
  3. Click green arrow button that looks like a tab scroll button, seen on other applications, that slides tabs to the left and brings hidden tabs into view.
  4. In actuality the tool launches a script that you didn't want to launch.
  5. Spend time cleaning up the results of the inadvertent script launch.

I've now done this twice.

Suggest that you alter or move the "run file in terminal" button so that it's less likely to be mistaken for a "tab scroll
Screen Shot 2021-05-06 at 4 53 56 PM
" button.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions