Skip to content

feat(language-service): Completions for custom-event bindings - #32085

Closed
andrius-pra wants to merge 1 commit into
angular:masterfrom
andrius-pra:event-binding-completions
Closed

andrius-pra wants to merge 1 commit into
angular:masterfrom
andrius-pra:event-binding-completions

Conversation

@andrius-pra

@andrius-pra andrius-pra commented Aug 9, 2019 •

Copy link
Copy Markdown
Contributor

Resolves type of $event variable in a event binding. So language service can provide completions for $event type members.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

The method getEventDeclaration() always returns "any" type for the event. So language service can't provide completions for $event variable.

Issue Number: #25545

What is the new behavior?

Determine the type of the event based on the Observable<T> or EventEmitter<T> types.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@andrius-pra
andrius-pra requested review from a team August 9, 2019 18:48
@kara kara added the area: language-service Issues related to Angular's VS Code language service label Aug 14, 2019
@ngbot ngbot Bot added this to the needsTriage milestone Aug 14, 2019
@andrius-pra andrius-pra changed the title feat(language-service): Completions for event bindings feat(language-service): Completions for custom-element bindings Sep 9, 2019
@kyliau
kyliau self-requested a review September 17, 2019 19:22
@kyliau kyliau added the target: major This PR is targeted for the next major release label Sep 17, 2019
Resolves type of $event variable in a custom event binding. So language service can provide completions for $event type members.
@andrius-pra andrius-pra changed the title feat(language-service): Completions for custom-element bindings feat(language-service): Completions for custom-event bindings Nov 24, 2019
@andrius-pra andrius-pra closed this Jan 3, 2020
@andrius-pra

Copy link
Copy Markdown
Contributor Author

Duplicate of #34570

@ayazhafiz

Copy link
Copy Markdown
Contributor

I didn't see that there was an existing PR for this. If you'd like, feel free to re-open this PR and I will close the other one.

@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Feb 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: language-service Issues related to Angular's VS Code language service cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants