OnClick event on Gutter
See original GitHub issueHow could I handle OnClick
events on Gutter, similar to how breakpoints does?
The intention was to connect it with a decorator (previously created with vscode.window.createTextEditorDecorationType
) so the user should Click on the Gutter and create/destroy the decorator assigned to the line where the user clicked.
Thanks in advance
Issue Analytics
- State:
- Created 7 years ago
- Reactions:162
- Comments:19 (2 by maintainers)
Top Results From Across the Web
VS Code Extension: Click event on decoration - Stack Overflow
I am rendering an icon on the gutter like this. Is there a way to get click event on what is being rendered...
Read more >How add my widget only onclick of my custom gutter
I have the event handler on the gutter and I wanted to add my widget to the view when a user clicked on...
Read more >Angular (forked) - StackBlitz
export class AppComponent {. name = 'Angular';. test(e) {. console.log('click event triggered > ', e). ;. } AA(e) {. console.log('(gutterClick) event.
Read more >Button - Quasar Framework
When not disabled or spinning, QBtn emits a @click event, as soon as it is clicked or tapped. QBtn API. QBtn ...
Read more >Too many gutter icons shown on top of each other can cause ...
A proposed solution is to have a small icon [+] displayed, so when the user hovers their mouse over this gutter icon, Visual...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’re also seeing usability issues with our user testing and the existing interaction model.
Currently, users need to:
This is much easier to understand when you see it:
What they’re expecting:
I the expectation is based on experience with breakpoints. Developers are conditioned to view a gutter icon, click on it, and take action.
We’d be happy to implement this as it seems to be a popular request from a number of extension authors (133 upvotes as of this comment).
It would be great to have this ability. Bump for this! It greatly increases the ability to have options from icons showing in the gutter.