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 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,24 @@
"type": "string",
"description": "If you would like to use a custom coreclr attach debug launch configuration for the debug session, specify the name here. Otherwise a default basic config will be used. The config must be a coreclr attach config. Launch configs are not supported.",
"default": false
},
"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.

"items": {
"type": "object",
"properties": {
"localRoot": {
"type": "string",
"description": "The local root to map."
},
"remoteRoot": {
"type": "string",
"description": "The remote root to map."
}
}
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 pathMappings schema doesn't specify 'required' properties for the localRoot and remoteRoot fields. Consider adding 'required': ['localRoot', 'remoteRoot'] to ensure both properties are provided when pathMappings are configured.

Suggested change
}
},
"required": ["localRoot", "remoteRoot"]

Copilot uses AI. Check for mistakes.

},
"default": []
}
}
},
Expand Down Expand Up @@ -615,6 +633,24 @@
"type": "boolean",
"description": "Determines whether a temporary PowerShell Extension Terminal is created for each debugging session, useful for debugging PowerShell classes and binary modules. Overrides the user setting 'powershell.debugging.createTemporaryIntegratedConsole'.",
"default": false
},
"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.",
"items": {
"type": "object",
"properties": {
"localRoot": {
"type": "string",
"description": "The local root to map."
},
"remoteRoot": {
"type": "string",
"description": "The remote root to map."
}
}
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 pathMappings schema doesn't specify 'required' properties for the localRoot and remoteRoot fields. Consider adding 'required': ['localRoot', 'remoteRoot'] to ensure both properties are provided when pathMappings are configured.

Suggested change
}
},
"required": ["localRoot", "remoteRoot"]

Copilot uses AI. Check for mistakes.

},
"default": []
}
}
}
Expand Down
Loading