angular / vscode-ng-language-service

Angular extension for Visual Studio Code
MIT License
773 stars 116 forks source link

Directive scope warnings #2011

Open 0-don opened 6 months ago

0-don commented 6 months ago

🐞 bug report

Description

The VSCode Angular Language Service extension does not highlight directives that are not imported or unused, unlike WebStorm, which correctly indicates such directives.

Bug Type

What does this bug affect

Reproduction

Steps to reproduce the behavior:

  1. Create an Angular component or directive.
  2. Omit the import statement for a used directive in the component's template.
  3. No highlighting or error is shown for the missing import.

Expected behavior

Directives that are not imported or unused should be highlighted as errors. image