Skip to content

fix(@angular/language-service): prevent underlying TS Service from handling template files#55003

Closed
clydin wants to merge 1 commit intoangular:mainfrom
clydin:ls/avoid-ts-templates
Closed

fix(@angular/language-service): prevent underlying TS Service from handling template files#55003
clydin wants to merge 1 commit intoangular:mainfrom
clydin:ls/avoid-ts-templates

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented Mar 22, 2024

When the angularOnly option is disabled, the underlying TypeScript language service was previously used for all files including .html template files. This can result in incorrect responses including a large amount of invalid diagnostics for a template file. Checks have now been added to only use the Angular Language service for template files which can properly handle template files. Additionally, the check for a TypeScript file name has now been expanded to encompass all current file extension forms.

@clydin clydin added the target: minor This PR is targeted for the next minor release label Mar 22, 2024
@clydin clydin force-pushed the ls/avoid-ts-templates branch 2 times, most recently from 278f5e8 to 2b872e0 Compare March 22, 2024 22:30
…mplate files

When the `angularOnly` option is disabled, the underlying TypeScript language service
was previously used for all files including `.html` template files. This can result in
incorrect responses including a large amount of invalid diagnostics for a template file.
Checks have now been added to only use the Angular Language service for template files
which can properly handle template files. Additionally, the check for a TypeScript file
name has now been expanded to encompass all current file extension forms.
@clydin clydin force-pushed the ls/avoid-ts-templates branch from 2b872e0 to 5c1a27b Compare March 22, 2024 22:32
@clydin clydin requested a review from atscott March 23, 2024 14:36
@clydin clydin marked this pull request as ready for review March 23, 2024 14:36
@clydin clydin 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 labels Mar 23, 2024
@ngbot ngbot bot added this to the Backlog milestone Mar 23, 2024
@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 Mar 26, 2024
@dylhunn
Copy link
Copy Markdown
Contributor

dylhunn commented Mar 27, 2024

This PR was merged into the repository by commit 4166dfc.

@dylhunn dylhunn closed this in 4166dfc Mar 27, 2024
@clydin clydin deleted the ls/avoid-ts-templates branch March 27, 2024 16:58
@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 Apr 27, 2024
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 target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants