microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.31k stars 1.18k forks source link

Run Recent Command does not cover multi-line Python REPL commands #24191

Open rzhao271 opened 2 weeks ago

rzhao271 commented 2 weeks ago

On macOS or Linux or WSL,

  1. Enable python.terminal.shellIntegration.enabled.
  2. Run "Python: Clear Cache and Reload Window".
  3. Open a terminal and start a Python REPL.
  4. Type for i in range(5): and press Enter.
  5. Type print(i) (including the spaces) and press Enter.
  6. Press Enter again.
  7. The REPL should print integers from 0 to 4.
  8. Run "Terminal: Run Recent Command..."
  9. :bug: Only print(i) shows up in the quick pick.
anthonykim1 commented 1 week ago

thanks for this - would need to investigate if multi-line commands for Python shelll type specifically is being properly stored in core.