-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Open
Labels
P5The team acknowledges the request but does not plan to address it, it remains open for discussionThe team acknowledges the request but does not plan to address it, it remains open for discussionarea: vscode-extensionIssues related to the Angular Language Service VsCode extensionIssues related to the Angular Language Service VsCode extension
Milestone
Description
Which @angular/* package(s) are the source of the bug?
language-service
Is this a regression?
No
Description
Angular Language Service (ALS) incorrectly reports an error in non-Angular TypeScript libraries inside an Nx monorepo when a class contains methods named like Angular lifecycle hooks (e.g. ngOnInit).
The diagnostic shown is:
Class is using Angular features but is not decorated. Please add an explicit Angular decorator.
This happens even when:
- the project is not Angular
- there are no Angular decorators
- the library is built with @nx/js:tsc
- ESLint rules are disabled
- the file is not part of any Angular compilation
The error disappears immediately when the Angular Language Service extension is disabled, confirming ALS as the source.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run ng version)
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P5The team acknowledges the request but does not plan to address it, it remains open for discussionThe team acknowledges the request but does not plan to address it, it remains open for discussionarea: vscode-extensionIssues related to the Angular Language Service VsCode extensionIssues related to the Angular Language Service VsCode extension

