Skip to content
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

[Feature Request] Wire up new debug console icon to be configurable by extensions #94063

Closed
TylerLeonhardt opened this issue Mar 31, 2020 · 8 comments
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Milestone

Comments

@TylerLeonhardt
Copy link
Member

TylerLeonhardt commented Mar 31, 2020

originally opened here PowerShell/vscode-powershell#2593

image

First time I'm seeing this little terminal icon... it looks like it's just a short cut to the Debug Console... This is not ideal because not every debugger uses the Debug Console some use an integrated terminal. This will be confusing for users.

I don't think there's any sort of configuration for us to say "hey jump to this terminal instead of the Debug Console". But it's brand new so I may be wrong.

Not using the Debug Console is a totally valid thing to do:
image

from https://microsoft.github.io/debug-adapter-protocol/overview

@vscodebot
Copy link

vscodebot bot commented Mar 31, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@isidorn
Copy link
Contributor

isidorn commented Apr 1, 2020

@TylerLeonhardt this is a valid point. Thus keeping this open as a feature request and we might change this in the future.
fyi @weinand

@isidorn isidorn added debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality labels Apr 1, 2020
@isidorn isidorn added this to the Backlog milestone Apr 1, 2020
@weinand
Copy link
Contributor

weinand commented Apr 1, 2020

@TylerLeonhardt @isidorn some clarifications:

  • the "terminal icon" in the debug viewlet is nothing new. It was there since the beginning of time (when VS Code did not even had an integrated terminal).
  • the icon represents the "debug console" and REPL, not a terminal.
  • the "debug console" is a mandatory part of the DAP adapter protocol. Output events go there and VS Code's generic REPL implementation uses it.
  • the "debug console" is surfaced in VS Code's extension API.
  • even if a Debug Adapter does not support to launch the target in the debug console, the REPL and the Output events will always end up there.
  • the "debug console" icon is not scoped to a specific debugger. So if a debug extension (with a specific debug type) would be able to configure it, that would mean we would have to track a "current debug type" and manage UI elements (like the debug console icon) based on this.

From this it is clear that the debug console and the icon representing it, is part of VS Code's debugger architecture. We are not planning to make this configurable.

But we are open to make it possible for extensions to add additional "icons"...

@weinand weinand closed this as completed Apr 1, 2020
@TylerLeonhardt
Copy link
Member Author

@weinand and @isidorn thanks for the quick reply.

the "terminal icon" in the debug viewlet is nothing new. It was there since the beginning of time (when VS Code did not even had an integrated terminal).

I'm aware of the terminal icon. We leverage it in the PowerShell extension in the satus bar:

image

which, when clicked, allows you to change the version that is used in the PowerShell Integrated Console (a terminal instance that appears in the VS Code Integrated Terminal).

the icon represents the "debug console" and REPL, not a terminal.

This might be true from the VS Code perspective, but that icon lives as a part of vscode-icons and it seems that extension authors are encouraged to reuse icons where it makes sense and in our case it makes sense to reuse the console icon for our needs.

the "debug console" is a mandatory part of the DAP adapter protocol.

Just some side feedback, this is not clear on https://microsoft.github.io/debug-adapter-protocol/overview

especially with the screenshot I posted from that link above that says you can launch in an integrated console instead of leveraging the debug console.

Anyway...

This feature request was just one suggestion.

Ideally, VS Code could have an icon that specifically represents the Debug Console a little better (adding a little bug on it or something... but this is probably where we bring @misolori in) rather than using the generic "console" icon especially since there's a debug console and an integrated terminal now.

But we are open to make it possible for extensions to add additional "icons"...

This is also something that would be ideal to help customers who are confused by the current experience.

@miguelsolorio
Copy link
Contributor

miguelsolorio commented Apr 1, 2020

Ideally, VS Code could have an icon that specifically represents the Debug Console a little better (adding a little bug on it or something... but this is probably where we bring @misolori in) rather than using the generic "console" icon especially since there's a debug console and an integrated terminal now.

Funny you mention that because we just went through an iteration and did for our the debug console in dynamic views (see #92590 (comment)) so we added this icon to our icon set:

image

So i wonder if it makes sense to update this icon in the debug viewlet as well @isidorn @weinand?

@TylerLeonhardt
Copy link
Member Author

@misolori you're awesome!

@isidorn
Copy link
Contributor

isidorn commented Apr 2, 2020

@misolori yes, as we aleardy discussed it makes sense to update the icon. I will do that right now - since that icon is just better.

@isidorn
Copy link
Contributor

isidorn commented Apr 2, 2020

Pushed via 56df825

@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants