vmikeska / vsc-npm-switcher Goto Github PK
View Code? Open in Web Editor NEWVisual Studio Code plugin for switching between local and remote npm packages for debugging purposes
License: MIT License
Visual Studio Code plugin for switching between local and remote npm packages for debugging purposes
License: MIT License
When using packages in private registries, the extension fails when trying to switch to latest version:
This is probably because the npm view
command is not following the private registry located at .npmrc
file inside project.
There is a workaround for switching to remote package, by specifing a specific version of the package, but developer should know the latest version to use it.
if multiple packages are referenced in the settings.json file then an error of Cannot read property 'split' of undefined
is displayed and the extension's sidebar panel no longer displays any packages.
Example settings.json:
{
"extensions.ignoreRecommendations": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"window.zoomLevel": 0,
"dependencyDebugger.libraries": [
{"name":"sample-one", "path":"../sample-one"},
{"name":"sample-two", "path":"../sample-two"}
]
}
NOTE: if only one package is referenced in the settings.json file then the extension is able to parse it successfully
OS Where issue experienced: Windows 10
VS Code Version: 1.52.1
Project Type where issue experienced: Typescript library
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.