-
Notifications
You must be signed in to change notification settings - Fork 510
Debugger won't run until ENTER
is pressed in integrated console
#3513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugger won't run until ENTER
is pressed in integrated console
#3513
Comments
Before
|
And then afterwards:
|
I was bit by this in the pester test adapter, glad to see it's a known issue. |
@andschwa I think it's this: public async Task<IEnumerable<TResult>> ExecuteCommandAsync<TResult>(
PSCommand psCommand,
StringBuilder errorMessages,
ExecutionOptions executionOptions,
CancellationToken cancellationToken = default)
{
// (...)
cancellationToken.Register(() => shell.Stop()); Linked cancellation token sources work by essentially registering a cancellation handler on the target token. I'm guessing the handlers are invoked sequentially on the same thread, and if that's the case then the link handler will never fire because Might get away with just changing it to |
Haha, oops, our bad. @rjmholt and I added the |
This also applies to "Run selection" etc. |
Oh whoops! |
Prerequisites
Summary
This is currently only happening with v2021.8.1-preview (the PowerShell Preview extension) and PowerShell 7, but it happens on Windows and macOS. @SeeminglyScience confirmed for me: run any PowerShell script in the debugger, it won't actually do anything (like run to a breakpoint or completion) until you manually go to the integrated console and press
ENTER
.PowerShell Version
Visual Studio Code Version
Extension Version
[email protected]
Steps to Reproduce
ENTER
is sentVisuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: