Skip to content

refactor(language-service): Prepare to support blocks in the langauge service#52038

Closed
dylhunn wants to merge 1 commit intoangular:mainfrom
dylhunn:ls-blocks
Closed

refactor(language-service): Prepare to support blocks in the langauge service#52038
dylhunn wants to merge 1 commit intoangular:mainfrom
dylhunn:ls-blocks

Conversation

@dylhunn
Copy link
Copy Markdown
Contributor

@dylhunn dylhunn commented Oct 4, 2023

Two key refactors to enable deeper language service support for blocks:

(1) We now generate accurate source spans for the various block types. Additionally, all the top-level source spans for a block are now inclusive of all the connected or descending blocks. This helps the language service visit connected blocks.

(2) The language service's template visitor was previously skipping over the AST nodes corresponding to several block types. We are now careful to visit all such nodes.

@dylhunn dylhunn 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 area: compiler Issues related to `ngc`, Angular's template compiler labels Oct 4, 2023
@dylhunn dylhunn requested a review from atscott October 4, 2023 22:30
@ngbot ngbot bot modified the milestone: Backlog Oct 4, 2023
@dylhunn
Copy link
Copy Markdown
Contributor Author

dylhunn commented Oct 4, 2023

cc @crisbeto if interested; this is the work we discussed today.

@dylhunn dylhunn force-pushed the ls-blocks branch 2 times, most recently from 790a1f8 to f5a00a4 Compare October 5, 2023 19:32
… service

Two key refactors to enable deeper language service support for blocks:

(1) We now generate accurate source spans for the various block types. Additionally, all the top-level source spans for a block are now *inclusive* of all the connected or descending blocks. This helps the language service visit connected blocks.

(2) The language service's template visitor was previously skipping over the AST nodes corresponding to several block types. We are now careful to visit all such nodes.
@dylhunn
Copy link
Copy Markdown
Contributor Author

dylhunn commented Oct 5, 2023

caretaker: saucelabs seems to be a flake. g3 failures are already red at head.

@dylhunn dylhunn added action: merge The PR is ready for merge by the caretaker merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 5, 2023
@atscott
Copy link
Copy Markdown
Contributor

atscott commented Oct 5, 2023

This PR was merged into the repository by commit 04169e1.

@atscott atscott closed this in 04169e1 Oct 5, 2023
@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 Nov 6, 2023
ChellappanRajan pushed a commit to ChellappanRajan/angular that referenced this pull request Jan 23, 2024
… service (angular#52038)

Two key refactors to enable deeper language service support for blocks:

(1) We now generate accurate source spans for the various block types. Additionally, all the top-level source spans for a block are now *inclusive* of all the connected or descending blocks. This helps the language service visit connected blocks.

(2) The language service's template visitor was previously skipping over the AST nodes corresponding to several block types. We are now careful to visit all such nodes.

PR Close angular#52038
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: compiler Issues related to `ngc`, Angular's template compiler area: language-service Issues related to Angular's VS Code language service merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants