madskristensen / PackageInstaller

A Visual Studio extension
Other
67 stars 15 forks source link

Problem with new Angular 2 npm Packages #14

Closed dagilleland closed 8 years ago

dagilleland commented 8 years ago

Installed product versions

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