Vscode-ng-language-service: Visual Studio Code 1.30.1

Created on 2 Jan 2019  ·  5Comments  ·  Source: angular/vscode-ng-language-service

I have installed Visual Studio Code 1.30.1 and Angular Language Service extension 0.1.11. I'm working with Angular 7.1.4 and the extension doesn't work.

Most helpful comment

Check your output carefully!

  • Open your Terminal in vscode
  • Go to OUTPUT
  • In the dropdown select Angular Language Service - that's the logging for extension

If you see an error like:

SERVER ERROR: Unexpected token } in JSON at position xxx

That's probably a problem with your tsconfig.json.
Try to JSON.parse your tsconfig.json and find what's wrong.
My problem was a trailing comma. After fixing this extension is working properly now!

All 5 comments

Same issue here on 1.30.2, i have tried to check the console but have found no errors etc.

Check your output carefully!

  • Open your Terminal in vscode
  • Go to OUTPUT
  • In the dropdown select Angular Language Service - that's the logging for extension

If you see an error like:

SERVER ERROR: Unexpected token } in JSON at position xxx

That's probably a problem with your tsconfig.json.
Try to JSON.parse your tsconfig.json and find what's wrong.
My problem was a trailing comma. After fixing this extension is working properly now!

1.30.2 on linux.
the plugin doesn't work for me on a new ng cli generated project.

Edit: turns out I have a "Go-template" plugin that takes over html files, uninstalled that one now it came back to normal.

Released v0.800.0 that fixed performance regression.
Multiple beta users confirmed that language service works well with Angular v7 and v8.
Please open another issue if this is not the case.
https://github.com/angular/vscode-ng-language-service/releases/tag/v0.800.0

Related issues:

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daveriedstra picture daveriedstra  ·  3Comments

BorntraegerMarc picture BorntraegerMarc  ·  5Comments

user3323 picture user3323  ·  4Comments

JoannaFalkowska picture JoannaFalkowska  ·  3Comments

mhamri picture mhamri  ·  4Comments