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

perf(language-service): Skip Angular analysis when quick info request… #40956

Closed
wants to merge 1 commit into from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Feb 22, 2021

…ed outside a template

The Angular LS does not provide quick info when the given position is not
inside a template. As an optimization, we can quickly look at the
file and determine if we are at a position that is part of an Angular
template. If not, we bail before asking the compiler for any more
information. Note that the Angular LS already provides no quick info
when outside a template file, but currently asks the compiler to analyze
the program before it determines that information.

…ed outside a template

The Angular LS does not provide quick info when the given position is not
inside a template. As an optimization, we can quickly look at the
file and determine if we are at a position that is part of an Angular
template. If not, we bail before asking the compiler for any more
information. Note that the Angular LS _already_ provides no quick info
when outside a template file, but currently asks the compiler to analyze
the program before it determines that information.
@google-cla google-cla bot added the cla: yes label Feb 22, 2021
@atscott atscott added the area: language-service Issues related to Angular's VS Code language service label Feb 22, 2021
@ngbot ngbot bot added this to the Backlog milestone Feb 22, 2021
@atscott atscott added the target: patch This PR is targeted for the next patch release label Feb 22, 2021
@atscott atscott requested a review from kyliau February 22, 2021 23:47
@kyliau kyliau added the action: merge The PR is ready for merge by the caretaker label Feb 23, 2021
@atscott atscott closed this in ad38cbb Feb 23, 2021
atscott added a commit that referenced this pull request Feb 23, 2021
…ed outside a template (#40956)

The Angular LS does not provide quick info when the given position is not
inside a template. As an optimization, we can quickly look at the
file and determine if we are at a position that is part of an Angular
template. If not, we bail before asking the compiler for any more
information. Note that the Angular LS _already_ provides no quick info
when outside a template file, but currently asks the compiler to analyze
the program before it determines that information.

PR Close #40956
@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 Mar 26, 2021
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: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants