Skip to content
VS Code extension that provides Deno support using the typescript-deno-plugin
Branch: master
Clone or download
Latest commit 7e81cdb Mar 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
.vscode
i18n
images add screenshots Mar 7, 2019
schemas
snippets feat: add snippets for deno std Mar 9, 2019
src Merge pull request #7 from axetroy/disposables Mar 11, 2019
.gitignore Revert "bundling extension using webpack" Mar 9, 2019
.vscodeignore Revert "bundling extension using webpack" Mar 9, 2019
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
deno.png
package.json release v1.0.7 Mar 11, 2019
package.nls.json first commit Mar 7, 2019
tsconfig.json first commit Mar 7, 2019
yarn.lock feat: use execa instead of child_process.exec for better child process Mar 9, 2019

README.md

VS Code Deno extension

Version Downloads

Adds Deno support for VS Code using the TypeScript Deno language service plugin.

Usage

This extension works using VS Code's built-in version of TypeScript. You do not need to configure the plugin in your tsconfig.json if you are using VS Code's version of TypeScript.

If you are using VS Code 1.30 or older and are using a workspace version of typescript, you must currently configure the TS Server plugin manually by following these instructions

Preview

without this plugin

If we write from "./hello.ts", the editor(VS Code) will prompt for a tilde error. Because the default TypeScript project does not need to write the extension .ts.

ts(2691): An import path cannot end with a '.ts' extension. Consider importing './hello' instead.

ts(2691)

ts(2691)

Deno allows imports from URLs, like the browser. But TypeScript can not find the module from URLs.

ts(2307): Cannot find module 'https://deno.land/x/std/log/mod'.

ts(2307)

after install this plugin

Deno caches remote imports in a special directory specified by the $DENO_DIR environmental variable. It defaults to the system's cache directory if $DENO_DIR is not specified.

This plugin can resove remote imports as local path.

with-plugin

Configuration

You can configure the Deno extension using a tsconfig as described here, or configure it with VS Code settings. This requires VS Code 1.30+ and TS 3.2+. Note the VS Code based configuration overrides the tsconfig configuration.

  • deno.enabled - Enable/disable this extension. Default is true.

  • deno.packageManager - The package manager you use to install node modules. Default is npm. (Not implemented)

  • deno.alwaysShowStatus - Always show the Deno status bar item. Default is true.

  • deno.autoFmtOnSave - Turns auto format on save on or off. Default is false. (Not implemented)

Commands

This extension contributes the following commands to the Command palette.

  • Enable Deno - Enable this extension.
  • Disable Deno - Disable this extension.

Contribute

Report a bug or a suggestion by posting an issue on the git repository.

You can’t perform that action at this time.