microsoft / vs-ng-language-service

Visual Studio extension for the Angular Language Service
MIT License
43 stars 15 forks source link

Angular Language Service Extension does not work #64

Closed jiayac closed 1 year ago

jiayac commented 1 year ago

Problem 1: Config not found Error Output for Angular Language Service Extension

Steps to reproduce

  1. Using Visual Studio 17.6 Enterprise
  2. Create a Standalone JSPS Angular new project
  3. Run npm install to install all packages
  4. go to the app.component.html
  5. See the Angular Language Service Extension output, we found the config not found error and Angular Language Service is not working.

    Problem 2: Angular Language Service Extension does not work

    Steps to reproduce

  6. Using Visual Studio 17.6 Enterprise
  7. Create a Standalone JSPS Angular new project
  8. Run npm install to install all packages
  9. go to the app.component.html
  10. Angular Language Service Extension output is missing, only the ESLint is available. Angular Language Service is not working at all.
jiayac commented 1 year ago

Failing case:

Info: Using typescript/lib/tsserverlibrary v5.1.0-dev.20230512 from C:\Users\jiayanchen\node_modules\typescript\lib\tsserverlibrary.js
Info: Using @angular/language-service v16.1.4 from C:\Users\jiayanchen\AppData\Local\Microsoft\VisualStudio\17.0_cc9ddff9\Extensions\ngkafw5i.yq5\node_modules\@angular\language-service\index.js
Info: Angular language server process ID: 45952
Info: Logging is turned off. To enable, run command 'Open Angular server log'.
Error: No config file for c:/Users/jiayanchen/source/repos/AngularProject4/AngularProject4/src/app/app.component.html
Error: No config file for c:/Users/jiayanchen/source/repos/AngularProject4/AngularProject4/src/app/app.component.html
Error: No config file for c:/Users/jiayanchen/source/repos/AngularProject4/AngularProject4/src/app/app.component.html
Error: No config file for c:/Users/jiayanchen/source/repos/AngularProject4/AngularProject4/src/app/app.component.html

Working case:

Info: Logging is turned off. To enable, run command 'Open Angular server log'.
Info: Angular language server process ID: 54688
Info: Using @angular/language-service v16.1.4 from C:\Users\jiayanchen\AppData\Local\Microsoft\VisualStudio\17.0_cc9ddff9\Extensions\ngkafw5i.yq5\node_modules\@angular\language-service\index.js
Info: Using typescript/lib/tsserverlibrary v5.1.0-dev.20230512 from C:\Users\jiayanchen\node_modules\typescript\lib\tsserverlibrary.js
Info: Enabling Ivy language service for c:/Users/jiayanchen/source/repos/AngularProject4/AngularProject4/tsconfig.json.

On the same project without any change basically. I am saying their might be reliablity issue regarding the user experience with Angular Language Service extension in Visual Studio.