-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Debug Provider to return launch configurations 'in-memory' to the debugger #54212
Comments
@rodrigovaras your proposed "simple way" API returns the contents of launch configs which makes it easy to merge 'in-memory' launch configs for use in VS Code's drop down menu. If I understand your approach correctly then you want to use the proposed API to "share" launch configs between host and runtime by replicating them. So the launch configs are not really dynamically created "new" launch configs, but they are just read from some other location. What do you think about an alternative API where you could directly specify the location of the launch.json? With this approach VS Code could transparently support viewing and editing of remote locations. /cc @isidorn |
Adding @jramsay which is now maintaining that part of code. |
The real issue to resolve on our case is how we can expose on the guest side a good way to show the current ‘shared’ debugged sessions. This is different from launching a new debug session from the guest side, but a way to connect to existing co-debug sessions after you disconnect from them, basically how we can re attach to an existing session. To explain this better,
Today we offer a not very intuitive mechanism to reattach, by selecting a command that offer some quick options, I don’t think nobody could figure out easily. |
@rodrigovaras you said:
Is it correct that you do not really need a "dynamically created launch config" showing up in the drop down but that adding "custom commands" to that drop down would be sufficient? The drop down could look like this: |
Yes, that would be enough, sounds like a great solution.
|
Hi Rodrigo, I am Isidor and I work with Andre on debug in VSCode. We could add the command in the debug dropdown as Andre sketched out and that would mean we are adding a new contribution point. Since Live Share has its own viewlet, why don't you add this action to the top inside the LiveShare viewlet? |
These are good alternatives, adding @lostintangent to comment. |
Since the Live Share viewlet represents the “command center” for all things shared in the collaboration session, the intention was to eventually display the list of active debug sessions in it, much like we already do for terminals, servers, etc. So if folks think that’s the right approach, then that sounds great to me 👍 We can discuss the experience on our end, and presumably have all the APIs we would need? |
If you would display a list of active debug sessions there than it absolutetly makes sense to put this action there. If I understand correctly you would use Tree api to show all sessions, and every tree item can have an action next to it. The action could be "Attach to Session" with some nice icon (similar how the SCM viewlet shows actions on the right of every item). |
With feature #88230 dynamic (aka 'in-memory') launch configurations are supported via the |
The only way to start a debug session in vscode is by populating the launch.json content. In the 'live share' extension the launhc.json is not the only source of debug configuartions, for example when connected to a VS host there will be no launch.json file. Also live share will artificially create all the 'shared debug configurations' available on runtime without the need to change the content of launch.json.
a simple way to achieve is by something like this:
The text was updated successfully, but these errors were encountered: