Plugin for vscode, atom-ide, or any editor using typescript server, that allows Intellisense for importing from other protocols, no only from files.
Made for usage with kwruntime.
Visual Studio Code without plugin enabled:
Visual Studio Code with plugin enabled:
You can use intellisense for the same protocols supported by kwruntime
// Of course, kwruntime doesn't have support for `deno` modules
// but this shows how plugin can provide intellisense for http/https urls
import { serve } from "https://deno.land/[email protected]/http/server.ts"
// intelissense for npm:// imports
import axios from 'npm://[email protected]'
// intelissense for github
import * as async from 'github://kwruntime/[email protected]/util/async.ts'
//same as: import * as async from 'gh+/kwruntime/[email protected]/util/async.ts'
// intelissense for gitlab
import {Tmux} from 'gitlab://jamesxt94/tmux@d0e0b805/src/Tmux.ts'See in action:
- Install kwruntime.
- Create a tsconfig.json with this content (see the plugins section):
{
"compilerOptions": {
"moduleResolution": "node",
"module": "es2020",
"target": "esnext",
"outDir": "out",
"lib": [
"es6",
"dom"
],
"esModuleInterop": true,
"sourceMap": true,
"paths": {
"*.ts": "*"
},
"plugins": [{ "enableForWorkspaceTypeScriptVersions": true, "name": "kwruntime-plugin" }]
},
"exclude": [
"node_modules",
".vscode-test"
]
}- Install this repo as the plugin. In your package.json add dev dependency
"devDepedencies": {
"typescript": "^4.5.x",
"kwruntime-plugin": "git://github.com/kwruntime/vscode-plugin"
}- Install the module
- If you use
vscodemake CTRL+SHIFT+P and search "Select Typescript version", and please select the local node_modules installed typescript package.




