angular / vscode-ng-language-service

Angular extension for Visual Studio Code
MIT License
781 stars 119 forks source link

Signal inputs inside an extended directive are not recognized in the HTML #2070

Open GLugano opened 4 months ago

GLugano commented 4 months ago

šŸž bug report

Is this a regression?

I'm doing a new project (Angular 18) based on an old project (Angular 14), then i have no idea if it worked in any versions after the creation of Signals.

Description

When creating a class with the directive decorator and adding inputs that are signals, extending it in another component and then trying to use that component in the HTML, the inputs from the base class are not visible.

Bug Type

This bug prevents the VSCode autocomplete/sugestion to show the inputs from the extendend directive and the possible values in it.

Reproduction

https://stackblitz.com/edit/stackblitz-starters-bdy9gh?file=src%2Fapp%2Fbutton%2Fbutton.component.ts

This code was tested in Webstorm too and the autocomplete/sugestion worked fine (not by be, but a moderator from Angular discord, i dont use Webstorm).

Expected behavior

All signal inputs from extended directives should be recognized when using autocomplete/sugestion.

šŸŒ Your Environment

Angular Version:


     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / ā–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 18.0.5
Node: 20.15.0
Package Manager: npm 9.9.3
OS: linux x64

Angular: 18.0.4
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, material-luxon-adapter, platform-browser
... platform-browser-dynamic, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1800.5
@angular-devkit/build-angular   18.0.5
@angular-devkit/core            18.0.5
@angular-devkit/schematics      18.0.5
@angular/cli                    18.0.5
@schematics/angular             18.0.5
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.4

Extension Version:

18.1.2

VSCode Version:

1.91.1

Operating System:

WSL with Ubuntu 20.04 LTS in a Windows 11 PRO 22H2

Extension options:

Only default configs.
GLugano commented 3 months ago

Any updates on this?