ember-tooling / ember-language-server

Language Server Protocol implementation for Ember.js projects
MIT License
100 stars 39 forks source link

Code Lens | Addon-provided components #399

Open evoactivity opened 9 months ago

evoactivity commented 9 months ago

A code lens that displays which addon a certain component/helper/modifier invocation comes from.


This came from @locks, moving this to here for tracking.

lifeart commented 9 months ago

@evoactivity we already have it, if I understand request correctly.

image

EMBER FILE USAGES

evoactivity commented 9 months ago

I think the request is to show which addon a particular component is from. Useful for classic hbs files.

So for example if someone was using the <Marquee></Marquee> component from https://github.com/evoactivity/ember-fast-marquee/ there would be some way to see it is being used from ember-fast-marquee.

lifeart commented 9 months ago

Go-to definition should work for this case, not sure why extra functionality may be needed (practically). One possible improvement - show addon name in autocomplete metadata.

evoactivity commented 9 months ago

If it already exists that's fine, I just spotted this in a project board in the repo @locks had set up last year.