From 233863ef691a5d74c58649ea7fd0b0a345f38a56 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Mon, 4 Aug 2025 05:53:27 +1000 Subject: [PATCH 1/3] Add new pathMappings option --- package.json | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/package.json b/package.json index f86e867977..fe0d72134e 100644 --- a/package.json +++ b/package.json @@ -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.", + "items": { + "type": "object", + "properties": { + "localRoot": { + "type": "string", + "description": "The local root to map." + }, + "remoteRoot": { + "type": "string", + "description": "The remote root to map." + } + } + }, + "default": [] } } }, @@ -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." + } + } + }, + "default": [] } } } From 1034eaf54db6a1a72e28e1cba8fc66cef9f1392d Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Wed, 6 Aug 2025 03:48:03 +1000 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fe0d72134e..3b7d6dab4a 100644 --- a/package.json +++ b/package.json @@ -596,7 +596,8 @@ "type": "string", "description": "The remote root to map." } - } + }, + "required": ["localRoot", "remoteRoot"] }, "default": [] } @@ -648,7 +649,8 @@ "type": "string", "description": "The remote root to map." } - } + }, + "required": ["localRoot", "remoteRoot"] }, "default": [] } From adcb41c1e632bf3cc0b4f9aaeb5a0b7d403783db Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Wed, 6 Aug 2025 05:03:21 +1000 Subject: [PATCH 3/3] prettier fixes --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3b7d6dab4a..f840351e35 100644 --- a/package.json +++ b/package.json @@ -597,7 +597,10 @@ "description": "The remote root to map." } }, - "required": ["localRoot", "remoteRoot"] + "required": [ + "localRoot", + "remoteRoot" + ] }, "default": [] } @@ -650,7 +653,10 @@ "description": "The remote root to map." } }, - "required": ["localRoot", "remoteRoot"] + "required": [ + "localRoot", + "remoteRoot" + ] }, "default": [] }