diff --git a/package.json b/package.json index 75eaf159e8..7216ba8628 100644 --- a/package.json +++ b/package.json @@ -1039,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, 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",