-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
vscode.debug.activeDebugSession is updated asynchronously #70125
Comments
I just checked with the Insiders version from 2019-03-11T08:42:16.804Z and the bug is still there. |
This issue and #69534 are probably originating from the same change: some internal method has become asynchronous. This was breaking the But A better approach would be to register a A safe way to find the correct debug session is to pass a magic property to |
I am not assuming that |
The |
In 2 of my extensions, I start a debug session and then try to read
vscode.debug.activeDebugSession
, like this:Starting with version 1.32.1, the session I get is
undefined
. However, I found a very simple workaround:So it seems that
vscode.debug.activeDebugSession
is updated asynchronously immediately after the promise fromvscode.debug.startDebugging()
is resolved.I think that this is probably related to #69534, maybe the fix for that issue will also solve this one. I will check this as soon as there is an Insiders build containing that fix.
The text was updated successfully, but these errors were encountered: