VSCode plugin
See original GitHub issueI’m going to write a VSCode plugin for import-js, unless someone else has already written one.
After talking with @lencioni, it sounds like there are two approaches: import the import-js package directly as a dependency (like the Atom plugin), or have the user install via npm i -g import-js and integrate with the CLI (like the Sublime plugin). I tend to prefer the Atom plugin, since it’s simpler for the user, so I’m planning to base the VSCode plugin off the Atom plugin.
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Managing Extensions in Visual Studio Code
Discover, add, update, disable and uninstall Visual Studio Code extensions (plug-ins) through the Extension Marketplace.
Read more >Extension API - Visual Studio Code
Visual Studio Code is built with extensibility in mind. From the UI to the editing experience, almost every part of VS Code can...
Read more >Your First Extension - Visual Studio Code
Create your first Visual Studio Code extension (plug-in) with a simple Hello World example.
Read more >Extensions for Visual Studio Code
One place for all extensions for Visual Studio, Azure DevOps Services, Azure DevOps Server and Visual Studio Code. Discover and install extensions and ......
Read more >Extensions Capabilities Overview - Visual Studio Code
Learn the details of what's possible with Visual Studio Code's rich extension (plug-in) API.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

It’s a work in progress, but here’s what I have so far:
https://github.com/dabbott/vscode-import-js
You can install it from the VS Code marketplace. Just search “importjs”.
I wasn’t able to call some of the CLI commands from VS Code (possibly env/path issues?), so instead I based it off the sublime plugin.
Hey there, user from the sqlite3 issue. I got my version of the plugin to work on my computer, but sadly couldnt find a solution for other builds (like a generic script to build against the right target).
I added this script to my package.json
"rebuild-sqlite3-win": "cd node_modules/sqlite3 && npm run prepublish && node-gyp configure --module_name=node_sqlite3 --module_path=../lib/binding/node-v53-win32-ia32 && node-gyp node-gyp rebuild --target=1.6.8 --runtime=electron --arch=ia32 --target_platform=win32 --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/node-v53-win32-ia32"following advice from this repo https://github.com/bytheway/electron-sqlite3
But yeah, I did not find much else about compiling modules for vscode