You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Do not open "save as" window when running existing Python files #21209
Interpret a python script by clicking on the button "Run Python File in Terminal"
(The file (script) is already saved and the "Save Before Run" option is on "always")
Expected
Automatic save Before Run
Actual
A window that asks to save file as ...
Steps to reproduce:
Diagnostic data
Python version (& distribution if applicable, e.g. Anaconda): 3.11.0
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
Value of the python.languageServer setting: Default
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Kartik Raj (@karrtikr) ; Yes that's it ;
I explain the problem again :
if I interpret a python script (by clicking on the button "Run Python File in Terminal") I always have a window that asks me to save my file! except that the latter is already saved and the "Save Before Run" option is on "always" ! ("ctrl + F5" still works) to note that no problem for earlier versions (<= 2023.9.11241009)
I understand, although "Save before run" option only applies when running "Tasks" (defined in tasks.json). Running Python files is not a task, so that setting does not apply here.
to note that no problem for earlier versions (<= 2023.9.11241009)
Although we can try to revert to this behavior you described, whcih should work for you. Marking this as a bug.
Activity
karrtikr commentedon May 10, 2023
Are you referring to this?

It only applies to "Task" as per description.
profRidha commentedon May 10, 2023
Kartik Raj (@karrtikr) ; Yes that's it ;


I explain the problem again :
if I interpret a python script (by clicking on the button "Run Python File in Terminal") I always have a window that asks me to save my file! except that the latter is already saved and the "Save Before Run" option is on "always" ! ("ctrl + F5" still works)
to note that no problem for earlier versions (<= 2023.9.11241009)
karrtikr commentedon May 10, 2023
I understand, although "Save before run" option only applies when running "Tasks" (defined in
tasks.json). Running Python files is not a task, so that setting does not apply here.Although we can try to revert to this behavior you described, whcih should work for you. Marking this as a bug.
[-]Save Before Run[/-][+]Do not open "save as" window when running existing Python files[/+]karrtikr commentedon May 10, 2023
Opened microsoft/vscode#182124 on VSCode.
Do not open "save as" window when running existing Python files (#21232)
Do not open "save as" window when running existing Python files (micr…
Merged PR posit-dev/positron-python#122: Merging upstream vscode-pyth…
Merged PR posit-dev/positron-python#122: Merging upstream vscode-pyth…