Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
14 changes: 14 additions & 0 deletions src/features/DebugSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const StopDebuggerNotificationType = new NotificationType<void>(

export enum DebugConfig {
LaunchCurrentFile,
LaunchCurrentFileWithArgsPrompt,
LaunchScript,
InteractiveSession,
AttachHostProcess,
Expand Down Expand Up @@ -79,6 +80,13 @@ export const DebugConfigurations: Record<DebugConfig, DebugConfiguration> = {
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",
Expand Down Expand Up @@ -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",
Expand Down
Loading