-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Consider not having a singleton debugConsole #37279
Comments
Yep, I thought the same when starting to work on this API. But then I noticed that the lifecycle of a DebugSession is the same as that of a debug adapter |
I do not see an alternative to introducing the debug console singleton. |
It is dangerous tho |
Would it be better to use an |
Maybe... It at least signals that there can be (in the future) many and that they can change... If you ever want to support showing multiple debug consoles (which I think isn't a crazy request given that I can launch many debuggers at once) in parallel then the API shouldn't be in your way |
Renamed |
re #37167
Would it make sense to have the console on the
DebugSession
-type? It would still print to the (implementation-singleton) console but will allow us to have multiple consoles in the future (when multiple debug sessions are active). Something like thisThe text was updated successfully, but these errors were encountered: