Skip to content

feat(language-service): add quick info for inline templates in ivy #39060

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

Closed
wants to merge 1 commit into from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Sep 30, 2020

Adds implementation for getQuickInfoAtPosition to the Ivy Language
Service, which now returns ts.QuickInfo for inline templates.

@atscott atscott added action: review The PR is still awaiting reviews from at least one requested reviewer area: language-service Issues related to Angular's VS Code language service target: major This PR is targeted for the next major release labels Sep 30, 2020
@atscott atscott requested review from kyliau and ayazhafiz September 30, 2020 15:40
@atscott atscott self-assigned this Sep 30, 2020
@ngbot ngbot bot modified the milestone: needsTriage Sep 30, 2020
@pullapprove pullapprove bot requested a review from josephperrott September 30, 2020 15:40
@atscott atscott force-pushed the keenpairing branch 2 times, most recently from 2aa4b3a to 4c5ee5e Compare September 30, 2020 16:11
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Reviewed-for: dev-infra

@atscott atscott force-pushed the keenpairing branch 2 times, most recently from 98122c1 to 85480f7 Compare September 30, 2020 19:43
Copy link
Contributor

@ayazhafiz ayazhafiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very nice!! Awesome stuff.

A general comment: does this work with ref-, bind-, on- syntaxes? If so, could tests for that be added as well?

@atscott atscott force-pushed the keenpairing branch 3 times, most recently from a0f4333 to e5a730c Compare October 1, 2020 18:37
@atscott atscott requested review from ayazhafiz and kyliau October 1, 2020 20:13
Comment on lines 199 to 203
/**
* Returns a new `ts.SymbolDisplayPart` array which has the alias imports from the tcb filtered
* out, i.e. `i0.NgForOf`.
*/
export function filterAliasImports(displayParts: ts.SymbolDisplayPart[]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I almost feel like this should be a util provided by the compiler. But I guess the language service relies on the TCB leaking, so I am ambivalent either way. Just thought I would comment.

@atscott atscott force-pushed the keenpairing branch 3 times, most recently from 4dc345b to 06713f3 Compare October 1, 2020 22:50
Adds implementation for `getQuickInfoAtPosition` to the Ivy Language
Service, which now returns `ts.QuickInfo` for inline templates.
@atscott atscott added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 2, 2020
@angular-automatic-lock-bot
Copy link

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 Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker 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.

6 participants