Add WindowActionOnEnd for Start-DebugAttachSession#2252
Add WindowActionOnEnd for Start-DebugAttachSession#2252andyleejordan merged 1 commit intoPowerShell:mainfrom
Conversation
Adds the parameter `-WindowActionOnEnd` that corresponds to the new VSCode attach configuration option `temporaryConsoleWindowActionOnDebugEnd`.
There was a problem hiding this comment.
Pull Request Overview
This PR adds the -WindowActionOnEnd parameter to the Start-DebugAttachSession PowerShell command to control the behavior of temporary debug consoles after debugging sessions end. This parameter corresponds to the new VSCode attach configuration option temporaryConsoleWindowActionOnDebugEnd.
- Adds new
-WindowActionOnEndparameter with three possible values:Close,Hide, andKeep - Updates command syntax documentation to include the new parameter
- Implements the parameter mapping to the debug configuration
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
The documentation states that Keep is the default value, but the parameter definition shows Default value: None. This inconsistency should be corrected - either update the parameter definition to show Keep as the default or clarify that None means the system default behavior.

PR Summary
Adds the parameter
-WindowActionOnEndthat corresponds to the new VSCode attach configuration optiontemporaryConsoleWindowActionOnDebugEnd.PR Context
PR that added the VSCode debug option PowerShell/vscode-powershell#5255.