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

fix: Disable block syntax parsing when no project in workspace suppor… #1962

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

atscott
Copy link
Collaborator

@atscott atscott commented Nov 8, 2023

…ts it

This commit adds a check to ensure any project in the workspace supports block syntax. If not, the block syntax parsing in the compiler should be disabled. Note that the language server is shared for all projects in the workspace. If on supports block syntax, we have to enable it.

fixes #1958

@dylhunn dylhunn self-requested a review November 8, 2023 17:39
@atscott atscott force-pushed the disableBlockSyntax branch 2 times, most recently from 48041f8 to 83aefab Compare November 8, 2023 22:16
…ts it

This commit adds a check to ensure a root in the workspace supports
block syntax. If not, the block syntax parsing in the compiler is
disabled. Note that the language server is shared for all roots and all projects
in the workspace. If on supports block syntax, we have to enable it.

In the future, it would be better to find a way to make this a
per-project configuration based on the version of Angular used in that
project.

fixes angular#1958
@atscott atscott force-pushed the disableBlockSyntax branch from 83aefab to 7d7f5d4 Compare November 8, 2023 22:18
@atscott atscott added target: patch This PR is targeted for the next patch release action: merge Ready to merge target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Nov 8, 2023
@atscott atscott merged commit 0189dc8 into angular:main Nov 8, 2023
5 checks passed
atscott added a commit to atscott/vscode-ng-language-service that referenced this pull request Nov 8, 2023
…ts it (angular#1962)

This commit adds a check to ensure a root in the workspace supports
block syntax. If not, the block syntax parsing in the compiler is
disabled. Note that the language server is shared for all roots and all projects
in the workspace. If on supports block syntax, we have to enable it.

In the future, it would be better to find a way to make this a
per-project configuration based on the version of Angular used in that
project.

fixes angular#1958
atscott added a commit that referenced this pull request Nov 8, 2023
…ts it (#1962) (#1964)

This commit adds a check to ensure a root in the workspace supports
block syntax. If not, the block syntax parsing in the compiler is
disabled. Note that the language server is shared for all roots and all projects
in the workspace. If on supports block syntax, we have to enable it.

In the future, it would be better to find a way to make this a
per-project configuration based on the version of Angular used in that
project.

fixes #1958
@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 Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge Ready to merge target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emails viewed as unknown blocks
2 participants