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
Will-navigate event should forward to opener service #90360
Conversation
idk - we are using "normal" link with a click listener in many other places and that seems to work just fine. I see two issues with this:
I'd suggest to stick to what we have been doing before or have "global" listener inside the renderer so that this isn't desktop-only |
The problem with the current approach is that we also need to handle keyboard |
Yeah for web we need a different solution, good point. I think finding consumers should be relatively easier going for the |
I'm not going to hunt all consumers of opener service. If you think this isn't good enough, I can just use click and key down handlers and let this go, like everyone else. |
Doesn't that make a case for a Link-widget which does all of that, e.g using the opener service and having a command registered and so |
OK, closing it up! |
@bpasero In case you'd like to adopt in Notifications: ac834c0#diff-9f5d19be21bb00b33fa612b5e0d42066R19 |
@joaomoreno I can look into it. Can we move this helper to the opener service into a |
Yes, thanks! |
Related to #89215
This makes it that attempts to navigate the page in VS Code just get forwarded to
OpenerService.open
calls. Eg. clicking something like<a href="https://github.com">this</a>
will eventually callopenerService.open('https://github.com')
.This is useful in notifications, where we currently listen to click events, and empty view contents #89215.
@bpasero @jrieken @mjbvz Let me know your thoughts.