Skip to content

Conversation

jborean93
Copy link
Contributor

PR Summary

Adds the parameter -WindowActionOnEnd that corresponds to the new VSCode attach configuration option
temporaryConsoleWindowActionOnDebugEnd.

PR Context

PR that added the VSCode debug option PowerShell/vscode-powershell#5255.

Adds the parameter `-WindowActionOnEnd` that corresponds to the new
VSCode attach configuration option
`temporaryConsoleWindowActionOnDebugEnd`.
@Copilot Copilot AI review requested due to automatic review settings August 26, 2025 20:49
@jborean93 jborean93 requested a review from a team as a code owner August 26, 2025 20:49
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 -WindowActionOnEnd parameter with three possible values: Close, Hide, and Keep
  • 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.

File Description
module/docs/Start-DebugAttachSession.md Updates documentation to include new -WindowActionOnEnd parameter in syntax and parameter descriptions
module/PowerShellEditorServices/Commands/Public/Start-DebugAttachSession.ps1 Adds parameter definition and implementation logic for -WindowActionOnEnd

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -190,6 +191,22 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -WindowActionOnEnd

Specifies the action to take on the temporary debug console created by the debug client after the attached session ends. This corresponds to the VSCode attach configuration option `temporaryConsoleWindowActionOnDebugEnd`. Setting to `Close` will close the debug console, `Hide` will move back to the last debug console before the attach session started, and `Keep` (default) will keep the active terminal as the attached session.
Copy link
Preview

Copilot AI Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant