Repository navigation
Fixes #7749 - Focus on CodeLens click - #9249
Conversation
Focus & move cursor position on click of the empty (unlinked) area of a CodeLens line
|
Hi Eric Amodio (@eamodio), I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
| this._mouseDownOperation.start(t.type, e); | ||
| e.preventDefault(); | ||
| } | ||
| } else if (targetIsWidget && (<string>t.detail).indexOf('codeLensWidget') === 0) { |
There was a problem hiding this comment.
This is a layer breaker -- the editor core should not know about specific widgets. We perhaps need something similar to shouldSuppressMouseDownOnViewZone but with content widgets
|
Eric Amodio (@eamodio) The change is good overall, but there is a layer breaker where the core editor should not know about specific widgets. Usually, this sounds like an addition to the editor API. To overcome this layer breaker, I suggest to add a new optional flag on |
|
alexandrudima Ah, makes perfect sense -- will look at adding that. Thanks! |
Isolates the editor from knowing about specific widgets
|
alexandrudima I think I've resolved the layer break now -- please let me know if there are any other issues or anything to be addressed. Thanks! |
|
alexandrudima Just wanted to check in on this -- all look ok? |
|
Eric Amodio (@eamodio) Looks great! Thank you! |
|
alexandrudima awesome! Thank you! |
Also focus & move cursor position on click of the empty (unlinked) area of a CodeLens line
#7749
I wanted to create a
constforcodeLensWidget, but wasn't sure where it should go. Also not sure if that is the right (best) way to tell if it is a codelens.Let me know if anything needs updating.
Thanks!