madskristensen/PackageInstaller

Problem with new Angular 2 npm Packages

Closed this issue · 0 comments

Installed product versions

  • Visual Studio 2015, Update 2
  • This extension: 1.7.78

Description

Visual Studio crashes when trying to install an npm package such as @angular/core.

Steps to recreate

  1. Create a Web API (.net 4.5) project (or any web project)
  2. Right-click the project and select Quick install package...
  3. Begin typing @angular to bring in the new Angular 2 packages
  4. As soon as you type in the slash / it crashes.

Current behavior

Since the package name to be installed is in a drop-down of "found" packages, I suspect that it's crashing on the slash, such as those found in Angular 2, and treating it as the start of an escape character.

Expected behavior

It should bring in Angular 2 packages, such as the following

{
"dependencies": {
    "@angular/common": "^2.0.0-rc.1",
    "@angular/compiler": "^2.0.0-rc.1",
    "@angular/core": "^2.0.0-rc.1",
    "@angular/platform-browser": "^2.0.0-rc.1",
    "@angular/platform-browser-dynamic": "^2.0.0-rc.1",
    "rxjs": "^5.0.0-beta.6",
    "zone.js": "^0.6.12"
  }
}

image