Skip to content

Run Python File in Terminal should save the file first #1316

@qubitron

Description

@qubitron

Environment data

  • VS Code version: 1.21.1
  • Extension version (available under the Extensions sidebar): 2018.3.1
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Run Python File in Terminal does not save the file before running it in the terminal

Expected behavior

Run Python File in Terminal should save the file before running it in the terminal. I've gotten confused a few times when I type something into a file and try to run it, and it produces unexpected results, only to realize I forgot to save.

Steps to reproduce:

  1. Create a new .py file
  2. Type print("hello world") into the file, but don't save!
  3. Right->click in the editor and select Run Python File in Terminal
  4. Observe no output (because the file was not saved)

Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions