From 4bfbf097c86813641c52459a6ef2a2e1a6e2bbe1 Mon Sep 17 00:00:00 2001 From: Darlington Ogbuefi Date: Sun, 30 Aug 2026 17:30:49 +0100 Subject: [PATCH 1/2] Fix PowerShell launch current file args snippet (#4671) --- package.json | 14 ++++++++++++++ src/features/DebugSession.ts | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/package.json b/package.json index 75eaf159e8..22b6f9098a 100644 --- a/package.json +++ b/package.json @@ -545,6 +545,20 @@ "cwd": "^\"\\${cwd}\"" } }, + { + "label": "PowerShell: Launch Current File w/Args Prompt", + "description": "Launch and debug the current file, prompting for command-line arguments", + "body": { + "name": "PowerShell Launch Current File w/Args Prompt", + "type": "PowerShell", + "request": "launch", + "script": "^\"\\${file}\"", + "args": [ + "\\${command:SpecifyScriptArgs}" + ], + "cwd": "^\"\\${cwd}\"" + } + }, { "label": "PowerShell: Launch Script", "description": "Launch and debug the specified file or command", diff --git a/src/features/DebugSession.ts b/src/features/DebugSession.ts index 020dff73b0..3f9a568b93 100644 --- a/src/features/DebugSession.ts +++ b/src/features/DebugSession.ts @@ -48,6 +48,7 @@ export const StopDebuggerNotificationType = new NotificationType( export enum DebugConfig { LaunchCurrentFile, + LaunchCurrentFileWithArgsPrompt, LaunchScript, InteractiveSession, AttachHostProcess, @@ -79,6 +80,13 @@ export const DebugConfigurations: Record = { script: "${file}", args: [], }, + [DebugConfig.LaunchCurrentFileWithArgsPrompt]: { + name: "PowerShell: Launch Current File w/Args Prompt", + type: "PowerShell", + request: "launch", + script: "${file}", + args: ["${command:SpecifyScriptArgs}"], + }, [DebugConfig.LaunchScript]: { name: "PowerShell: Launch Script", type: "PowerShell", @@ -241,6 +249,12 @@ export class DebugSessionFeature description: "Launch and debug the file in the currently active editor window", }, + { + id: DebugConfig.LaunchCurrentFileWithArgsPrompt, + label: "Launch Current File w/Args Prompt", + description: + "Launch and debug the current file, prompting for command-line arguments", + }, { id: DebugConfig.LaunchScript, label: "Launch Script", From 118fd6184f228d124027d9d525b27b12b3b16097 Mon Sep 17 00:00:00 2001 From: Darlington Ogbuefi Date: Sun, 6 Sep 2026 22:31:48 +0100 Subject: [PATCH 2/2] Add parameter outline setting #5153 --- package.json | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 22b6f9098a..7216ba8628 100644 --- a/package.json +++ b/package.json @@ -545,20 +545,6 @@ "cwd": "^\"\\${cwd}\"" } }, - { - "label": "PowerShell: Launch Current File w/Args Prompt", - "description": "Launch and debug the current file, prompting for command-line arguments", - "body": { - "name": "PowerShell Launch Current File w/Args Prompt", - "type": "PowerShell", - "request": "launch", - "script": "^\"\\${file}\"", - "args": [ - "\\${command:SpecifyScriptArgs}" - ], - "cwd": "^\"\\${cwd}\"" - } - }, { "label": "PowerShell: Launch Script", "description": "Launch and debug the specified file or command", @@ -1053,6 +1039,11 @@ "default": false, "markdownDescription": "Specifies to search for references only within open documents instead of all workspace files. An alternative to `#powershell.enableReferencesCodeLens#` that allows large workspaces to support some references without the performance impact." }, + "powershell.enableParameterOutline": { + "type": "boolean", + "default": false, + "markdownDescription": "Specifies whether parameters are displayed in the Outline view." + }, "powershell.debugging.createTemporaryIntegratedConsole": { "type": "boolean", "default": false,