Skip to content

Debug: add pathMappings option #5254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jborean93
Copy link
Contributor

@jborean93 jborean93 commented Aug 3, 2025

PR Summary

PR to add the options added in the PR PowerShell/PowerShellEditorServices#2251.

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets.
Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
  • Summarized changes
  • [NA] PR has tests
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@JustinGrote JustinGrote changed the title WIP: Add new pathMappings option Debug: add pathMappings option Aug 5, 2025
@JustinGrote JustinGrote marked this pull request as ready for review August 5, 2025 15:04
@Copilot Copilot AI review requested due to automatic review settings August 5, 2025 15:04
@JustinGrote
Copy link
Collaborator

Moving to ready per @jborean93 discord comment.

Copy link

@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 a new pathMappings configuration option to PowerShell debug configurations to support debugging remote PowerShell host processes. The feature enables mapping between local and remote file paths during debugging sessions.

  • Adds pathMappings array property to both PowerShell launch and attach debug configurations
  • Each path mapping consists of localRoot and remoteRoot properties for file path translation
  • Provides detailed descriptions for the new configuration options

},
"pathMappings": {
"type": "array",
"description": "Optional: An array of path mappings to use when debugging a remote PowerShell host process. Each mapping is an object with 'localRoot' and 'remoteRoot' properties. This is only used if the current integrated terminal is connected to a remote PowerShell runspace.",
Copy link
Preview

Copilot AI Aug 5, 2025

Choose a reason for hiding this comment

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

The description for the attach configuration includes additional context about remote PowerShell runspace requirements, while the launch configuration description (line 639) omits this important detail. Consider adding consistent context to both descriptions or removing the extra detail from the attach description for consistency.

Copilot uses AI. Check for mistakes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Attach is always a remote runspace so is implied to always work. It is only the launch configuration that has the added caveat.

jborean93 and others added 2 commits August 6, 2025 03:48
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

2 participants