Polymer / atom-plugin

Provides autocompletion, linting, and more for web components.
Other
32 stars 8 forks source link

Implement ctrl + click to go to definition #48

Closed TimvdLippe closed 6 years ago

TimvdLippe commented 7 years ago

Implement ctrl + click on an attribute or custom element. When you hover over any element reference or attribute, the plugin will fetch the corresponding sourceRange. Once the user ctrl + clicks, the editor will jump to the corresponding file and line + column.

To make this clean, I refactored out the mouse move listener logic of TooltipManager and extracted an abstract class. This is then also used by the DefinitionFinder.

TODO:

Fixes #17 Fixes #14

TimvdLippe commented 7 years ago

@rictic were you able to take a quick look at the issue regarding undefined location returned by getDefinitionForFeatureAtPosition?

TimvdLippe commented 6 years ago

This is superseded by #69