PowerShell / PowerShell/PowerShellEditorServices
forceClearScrollbackBuffer conflicts with focusConsoleOnExecute
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 767
- Forks
- 266
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 1
Description
Adding the following setting "powershell.integratedConsole.forceClearScrollbackBuffer":true causes the setting "powershell.integratedConsole.focusConsoleOnExecute": false to be ignored.
This means that the focus shifts to the terminal instead of staying inside the code window
System Details
System Details Output
Issue Description
I am experiencing a problem with keeping the focus on the code window instead of the terminal windows
Expected Behaviour
When i run/execute powershell code i expect the focus to stay in the code windows when this setting is added :
"powershell.integratedConsole.focusConsoleOnExecute": false
Actual Behaviour
The setting "powershell.integratedConsole.focusConsoleOnExecute": false is being ignored when i added "powershell.integratedConsole.forceClearScrollbackBuffer": true,, so everytime i execute code my cursor/marker is focused to the terminal windows.
Attached Logs
Follow the instructions in the troubleshooting docs
about capturing and sending logs.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by enabling powershell.integratedConsole.forceClearScrollbackBuffer and disabling powershell.integratedConsole.focusConsoleOnExecute, then trace the integrated-console execution and focus handling. Done means clearing the scrollback buffer no longer overrides the focus setting, with the cursor remaining in the code window after execution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100