Skip to content

Fix execution of debug prompt commands - #1803

Merged
Andy Jordan (andyleejordan) merged 2 commits into
masterfrom
andschwa/debug-prompt
May 17, 2022
Merged

Fix execution of debug prompt commands#1803
Andy Jordan (andyleejordan) merged 2 commits into
masterfrom
andschwa/debug-prompt

Conversation

@andyleejordan

Copy link
Copy Markdown
Member

Thanks to a brilliant idea from Patrick, this simplifies how we choose which commands to execute through PowerShell's debugger API, and also fixes an issue where a user's custom prompt function wasn't aware that it was in the debugger.

This fixes PowerShell/vscode-powershell#3980.

Thanks to a brilliant idea from Patrick, this simplifies how we choose
which commands to execute through PowerShell's debugger API, and also
fixes an issue where a user's custom prompt function wasn't aware that
it was in the debugger.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing needs to change real quick otherwise LGTM

…chronousPowerShellTask.cs

Co-authored-by: Patrick Meinecke <SeeminglyScience@users.noreply.github.com>
@andyleejordan

Copy link
Copy Markdown
Member Author

Good catch! Committed.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

Custom prompt function no longer sees PSDebugContext

2 participants