Skip to content

Service is broken in external HTML templates with CLI 1.1.0 #102

Closed
@cyrilletuzi

Description

@cyrilletuzi

Bug Report or Feature Request (mark with an x)

- [x] bug report 

Versions.

cli 1.1.0
VS Code Angular Language Service 0.1.3

Repro steps.

  1. Use VS Code with official Angular Language Service plugin installed.
  2. Create a project with CLI : ng new app
  3. Completion and error checking in HTML templates doesn't work.
  4. npm uninstall @angular/language-service
  5. Restart VS Code.
  6. Now it works.

Desired functionality.

VS Code Angular Language Service plugin seems to use :

  • it's own install of @angular/language-service if it's not present in node_modules
  • if present, it uses the project dependency, and unfortunately, the plugin is not always up to date with the last release of @angular/language-service.

Angular CLI last 1.1.0 now installs @angular/language-service by default, so it's broken.

I've open the same issue in angular/angular-cli#6536 as I'm not sure which side should correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions