Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

named blocks yield arguments autocomplete #378

Open
2 tasks
lifeart opened this issue Apr 20, 2022 · 1 comment
Open
2 tasks

named blocks yield arguments autocomplete #378

lifeart opened this issue Apr 20, 2022 · 1 comment

Comments

@lifeart
Copy link
Owner

lifeart commented Apr 20, 2022

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
@lifeart
Copy link
Owner Author

lifeart commented Apr 21, 2022

add component name autocomplete for component helper
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant