Code Monkey home page Code Monkey logo

vscode-deno's Introduction

VS Code Deno extension

Build Status 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 resolve 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.

vscode-deno's People

Contributors

axetroy avatar dependabot[bot] avatar justjavac avatar nufflee avatar parrotdance avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.