vscode-phoenix icon indicating copy to clipboard operation
vscode-phoenix copied to clipboard

Support go to component definition from heex templates

Open onnimonni opened this issue 1 year ago • 2 comments

Currently it's not easy to navigate from components used in heex templates into the elixir file containing the component definition.

Similarly it would really help if we could show the implemented slots directly by hovering over the component or when writing a new component.

More information here: https://elixirforum.com/t/navigating-from-heex-templates-to-core-components-ex-in-vscode/60593

onnimonni avatar Dec 31 '23 08:12 onnimonni

We'd gladly accept a PR that adds this! Thanks!

chrismccord avatar Jan 01 '24 15:01 chrismccord

two things come to mind. I assume it will need to know the difference between knowing to point you to the module head vs the function head cause you could be navigating from a functional component or a full fledged liveview. Maybe hashing out what you wish you had here will help other contribute.

joshchernoff avatar Jan 14 '24 22:01 joshchernoff