Skip to content

VS Code language service is broken in 1.1.0 due to unessecary package #6536

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.
  3. Completion and error checking in HTML external 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.

I see no use to pre-install @angular/language-service as the developer won't use it directly, and plugins should manage their own dependencies to be sure to use the good version.

So I think commit bb99fac should be reverted.

I've open the same issue in VS Code Angular Language Service project too : angular/vscode-ng-language-service#102

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenteffort1: easy (hours)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions