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
The code now runs slowly with this extension; when I click the "Run" button, it takes 5 seconds to start, and the command launching the code—along with the result—only appears after a 5-second delay. Without this extension, the code runs as usual—very quickly
The code now runs slowly with this extension; when I click the "Run" button, it takes 5 minutes to start, and the command launching the code—along with the result—only appears after a 5-second delay. Without this extension, the code runs as usual—very quickly
I was getting about a 5 second delay after pressing the "Run" button before the Python script actually started running. Downgrading the extension to version 1.36.0 seemed to solve the issue.
This looks like a regression introduced by #1741, which added a wait for VS Code’s shell integration before sending a Python command to the terminal. The Run button uses this same execution path, so if shell integration is unavailable and no new terminal prompt output is detected, it waits for the default five-second timeout before launching the script. This wait can repeat even when reusing an existing terminal, explaining the delay before the command and its output appear rather than slower execution of the Python code itself. Downgrading to 1.36.0 removes this added wait, which makes that change a strong suspect.
Reacted by Eduardo Villalpando Mello and Oscar "Mouton Binoclard" Barral
Hello, Just wanted to add my findings to the issue as well.
With the Python Environments extension installed, opening a new integrated terminal took about five seconds. Clicking Run Python File had the same delay before the terminal appeared. This happened with both PowerShell and Command Prompt. After uninstalling Python Environments, terminal startup and running the file were immediate.
The integrated terminal should open promptly; running a Python file should not incur a multi-second delay before the terminal appears.
Uninstalling python-environments returns everything to normal.
Hello. Issue was caused by a wrong synchronization of shell integration readiness lookup and timeout that was occuring when running the file. Should now be fixed in today's nightly release. Please let me know if the issue persists in any way.
Activity
Xenakios commentedon Sep 26, 2026
I was getting about a 5 second delay after pressing the "Run" button before the Python script actually started running. Downgrading the extension to version 1.36.0 seemed to solve the issue.
StellaHuang95 commentedon Sep 28, 2026
This looks like a regression introduced by #1741, which added a wait for VS Code’s shell integration before sending a Python command to the terminal. The Run button uses this same execution path, so if shell integration is unavailable and no new terminal prompt output is detected, it waits for the default five-second timeout before launching the script. This wait can repeat even when reusing an existing terminal, explaining the delay before the command and its output appear rather than slower execution of the Python code itself. Downgrading to 1.36.0 removes this added wait, which makes that change a strong suspect.
edvilme commentedon Sep 30, 2026
Hello, thanks for bringing this to our attention. To help narrow down the delay, could you please tell us:
terminal.integrated.shellIntegration.enabled, and have you customizedterminal.integrated.shellIntegration.timeout?sable2100 commentedon Oct 2, 2026
Hello, Just wanted to add my findings to the issue as well.
With the Python Environments extension installed, opening a new integrated terminal took about five seconds. Clicking Run Python File had the same delay before the terminal appeared. This happened with both PowerShell and Command Prompt. After uninstalling Python Environments, terminal startup and running the file were immediate.
The integrated terminal should open promptly; running a Python file should not incur a multi-second delay before the terminal appears.
Uninstalling python-environments returns everything to normal.
CarterSwinney commentedon Oct 7, 2026
For now, I found a solution:
It worked for me; I'm not sure about others, but it's worth mentioning! :D
edvilme commentedon Oct 22, 2026
Hello. Issue was caused by a wrong synchronization of shell integration readiness lookup and timeout that was occuring when running the file. Should now be fixed in today's nightly release. Please let me know if the issue persists in any way.