question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Go to Definition" from hover popup

See original GitHub issue

Check out this quick example:

image

As you see, VS Code knows the type of _event, yet there’s no way to navigate to the definition of LoanCancelledEvent, because it’s just a static text in the popup, and it’s nowhere near in the editor to click on. So, it would be neat if this popup let you “go to definition” of the symbol, just like Ctrl/Cmd+Click in the editor. Something like this:

image

Currently (v1.63.0), if you press any key while the popup is visible, it will disappear (at least in Windows). And if you hold Ctrl/Cmd while hovering over the symbol, you’ll get some extra content in the popup unrelated to what I’m suggesting. So, I’d say the user should not have to hold any keys for this feature to work - the popup would simply appear with clickable symbols right away.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:31
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tjx666commented, Oct 10, 2022

@jrieken I think this is a very useful feature for code reading especialiy for javascript code. Hope this will be implemented soon.

image
1reaction
mataslibcommented, Dec 14, 2021

Since I have switched from intelij to vscode I miss this feature a lot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Viewing type definitions - Visual Studio (Windows)
Ctrl+click is a shortcut for mouse users to quickly access Go To Definition. Symbols become clickable when you press Ctrl and hover over...
Read more >
Dynamically positioned popup definitions that show on hover
When the user hovers over any div with the name '.mp' for example, then the definition shows below it in a little popup...
Read more >
On cmd/ctrl+struct hover popup definition : GO-2552 - YouTrack
When a user holds control/cmd and hovers over a function it generates a popup with the definition of the function. To improve the...
Read more >
Programmatic Language Features - Visual Studio Code
You hover over JavaScript code in VS Code; VS Code informs the Language Client ... Right click a variable, function, or method and...
Read more >
Features - LSP for Sublime Text
"Hover" is a general term for an informational popup that appears when you bring your mouse to a word in the file. Sublime...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found