question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’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:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
dabbottcommented, Jun 7, 2017

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.

1reaction
raaffaaeellcommented, Jun 4, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found