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
fix(language-service): correctly handle host directive inputs/outputs #48147
fix(language-service): correctly handle host directive inputs/outputs #48147
Conversation
tsSymbol: symbol.tsSymbol, | ||
exposedInputs: current.inputs, | ||
exposedOutputs: current.outputs, | ||
selector: meta.selector || '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The || ''
here is weird, but I don't know the context behind why the language service requires a selector for all directives, even though directives can be declared without selectors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before the directive composition, a directive couldn't match anything unless it had a selector. I think the correct thing would be to make this optional now. Can you add a TODO or make the change if it's easy enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a TODO for myself. I'll send a follow-up PR once this one goes in.
24e4803
to
4e7ddbc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM!
Adds some logic to correctly handle hidden or aliased inputs/outputs in the language service. Fixes angular#48102.
4e7ddbc
to
0d27a64
Compare
This PR was merged into the repository by commit fd2eea5. |
This is a follow-up from angular#48147. Changes the `DirectiveSymbol.selector` to be nullable since it's possible to have directives without a selector.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
…angular#48147) Adds some logic to correctly handle hidden or aliased inputs/outputs in the language service. Fixes angular#48102. PR Close angular#48147
Adds some logic to correctly handle hidden or aliased inputs/outputs in the language service.
Fixes #48102.