lifeart/ember-language-server

named blocks yield arguments autocomplete

lifeart opened this issue · 1 comments

extends #372

It will be good to have builtin autocomplete/go-to definition working for hashed yield arguments

{{! parent-component.hbs }}
{{yield (hash Foo=(component "foo") to="head")}}

{{! component using parent-component }}
<ParentComponent>
   <:head as |p|>
      <p.Foo />
  </head>
</ParentComponent>  

Go to definition sample:

<Ui::BottomContainer as |p|>
  <p.Foo />
</Ui::BottomContainer>

Also, solves "go-to-definition" case for it

to do:

  • skip yield context analyzis if template does not include {{yield
  • check go to definition support for yield parts

add component name autocomplete for component helper
image