From 8883a7f3a23cbd63c74040587f84d1dcde54dd62 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 2a1f0877f9..6a31c9d7b7 100644 --- a/package.json +++ b/package.json @@ -596,6 +596,24 @@ "Hides the temporary PowerShell Extension Terminal when the debugging session ends and restores the previous window before the debug session had started. This does nothing if the previous window was closed during the debug session.", "Keeps the temporary PowerShell Extension Terminal open after the debugging session ends." ] + }, + "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": [] } } }, @@ -645,6 +663,24 @@ "Hides the temporary PowerShell Extension Terminal when the debugging session ends and restores the previous window before the debug session had started. This does nothing if the previous window was closed during the debug session.", "Keeps the temporary PowerShell Extension Terminal open after the debugging session ends." ] + }, + "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 28fc5aeb65846c3a59238e93cfe5559afcc26dd0 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 6a31c9d7b7..43feb935d2 100644 --- a/package.json +++ b/package.json @@ -611,7 +611,8 @@ "type": "string", "description": "The remote root to map." } - } + }, + "required": ["localRoot", "remoteRoot"] }, "default": [] } @@ -678,7 +679,8 @@ "type": "string", "description": "The remote root to map." } - } + }, + "required": ["localRoot", "remoteRoot"] }, "default": [] } From 15b36aa9b721c108ca3d9fa929b4a7b52891a189 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 43feb935d2..e934d45520 100644 --- a/package.json +++ b/package.json @@ -612,7 +612,10 @@ "description": "The remote root to map." } }, - "required": ["localRoot", "remoteRoot"] + "required": [ + "localRoot", + "remoteRoot" + ] }, "default": [] } @@ -680,7 +683,10 @@ "description": "The remote root to map." } }, - "required": ["localRoot", "remoteRoot"] + "required": [ + "localRoot", + "remoteRoot" + ] }, "default": [] }