Describe the bug
If session watcher is on but R: Always Use Active Terminal is off, closing an R terminal created by vscode-R does not undefine rTerm. This means that future commands that should create a new R terminal instead do nothing.
To Reproduce
- Enable setting
R: Session Watcher
- Disable setting
R: Always Use Active Terminal
- Create file
temp.R with content x <- 1
- Command
R: Run Selection/Line
- Observe
R Interactive terminal is created and line is sent to terminal
- Close
R Interactive by clicking on the terminal trashcan icon. Terminal should now be 1: cmd (if on Windows)
- Command
R: Run Selection/Line
Expected
Terminal R Interactive is created and line is sent to terminal.
Actual
Nothing happens.
This is probably not a very common combination of settings. I only ran into this while trying to debug something else.
I am putting together a PR.
Describe the bug
If session watcher is on but
R: Always Use Active Terminalis off, closing an R terminal created by vscode-R does not undefinerTerm. This means that future commands that should create a new R terminal instead do nothing.To Reproduce
R: Session WatcherR: Always Use Active Terminaltemp.Rwith contentx <- 1R: Run Selection/LineR Interactiveterminal is created and line is sent to terminalR Interactiveby clicking on the terminal trashcan icon. Terminal should now be1: cmd(if on Windows)R: Run Selection/LineExpected
Terminal
R Interactiveis created and line is sent to terminal.Actual
Nothing happens.
This is probably not a very common combination of settings. I only ran into this while trying to debug something else.
I am putting together a PR.