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
With allowing VS Code's Terminal: Run Recent Command for Python REPL users using MacOS and Linux, there was an issue where success/failure decoration for commands ran after the Terminal: Run Recent Command were inappropriately cached.
For example, running a Terminal: Run Recent Command that generated fail/red decoration and then trying to run successful command after that would have the decoration cached to the red failure state, instead of the correct/blue decoration.
Setup:
Make sure you have Python installed in your computer.
Make sure you did not turn off shell integration.
Steps:
Open Python file. (aka. .py file)
Write some Python code. (Ignore this step if you already have Python code in your previously set up Python file)
Shift+enter on line with Python code and observe the code you just executed has been sent to Python REPL properly.
Shift+enter on multiple times and send command to REPL, so we have much history to use for Terminal: Run Recent Command. Make effort to mix in code that would generate failure, thus red decoration for shell integration, and code that would generate success, thus blue decoration for shell integration.
Run Terminal: Run Recent Command and select the line that lead to failure. Observe that code gets sent to REPL with red decoration.
Try running successful Python command, and see if you get the correct/blue decoration.
Try mixing successful, invalid code with Terminal:Run Recent Command to see whether you get appropriate decoration everytime.
The text was updated successfully, but these errors were encountered:
Refs: #22811
Complexity: 3
Create Issue
Thank you in advance for testing this TPI.
Background Information
With allowing VS Code's
Terminal: Run Recent Command
for Python REPL users using MacOS and Linux, there was an issue where success/failure decoration for commands ran after theTerminal: Run Recent Command
were inappropriately cached.For example, running a
Terminal: Run Recent Command
that generated fail/red decoration and then trying to run successful command after that would have the decoration cached to the red failure state, instead of the correct/blue decoration.Setup:
Steps:
Terminal: Run Recent Command
. Make effort to mix in code that would generate failure, thus red decoration for shell integration, and code that would generate success, thus blue decoration for shell integration.Terminal: Run Recent Command
and select the line that lead to failure. Observe that code gets sent to REPL with red decoration.Terminal:Run Recent Command
to see whether you get appropriate decoration everytime.The text was updated successfully, but these errors were encountered: