Coder Social home page Coder Social logo

bartlomieju / vscode_deno Goto Github PK

View Code? Open in Web Editor NEW

This project forked from denoland/vscode_deno

0.0 1.0 0.0 18.87 MB

Visual Studio Code plugin for Deno

Home Page: https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno

License: MIT License

TypeScript 99.92% JavaScript 0.08%

vscode_deno's Introduction

Visual Studio Code Deno extension

GitHub Workflow Status

Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Downloads Visual Studio Marketplace Rating Visual Studio Marketplace Rating (Stars)

GitHub code size in bytes GitHub repo size GitHub

Adds Deno support for the Visual Studio Code.

screenshot

Features:

Full intellisense support

Deno Support

Intelligent module import

Import

Supports importing ECMAScript modules

Import

Diagnostics and quick fixes

Diagnostics

Optional use of Deno's built in formatting

Format

Client/Server model with LSP

The extension separates Client/Server with LSP

This means that complicated problems are handled on the server-side

The extension won't block your Visual Studio Code

Process

Supports `Import Maps` for Deno

import_map

External type definitions

The extension supports the following ways to load external declaration files

These are all supported by Deno

  1. Compiler hint
// @deno-types="./foo.d.ts"
import { foo } from "./foo.js";

see example

  1. Triple-slash reference directive
/// <reference types="https://raw.githubusercontent.com/date-fns/date-fns/master/typings.d.ts" />

import { format } from "https://deno.land/x/date_fns/index.js";

format(new Date(), "yyyy/MM/DD");

see example

  1. X-TypeScript-Types custom header
import { array } from "https://cdn.pika.dev/fp-ts";

const M = array.getMonoid<number>();
console.log("concat Array", M.concat([1, 2], [2, 3]));

Usage

  1. Download and enable the extension from the Visual Studio Marketplace

  2. Enable Deno for your project:

    Create a file .vscode/settings.json in your project folder:

    // .vscode/settings.json
    {
      "deno.enable": true,
    }
  3. Enjoy!

Configuration

  • deno.enable - Enable extension. Default is false

  • deno.import_map - The file paths of Import Map. Default is null

  • deno.unstable - If Deno's unstable mode is enabled. Default is false

We recommend that you do not set global configuration. It should be configured in .vscode/settings.json in the project directory:

// .vscode/settings.json
{
  "deno.enable": true,
  "deno.import_map": "./path/to/import_map.json",
  "deno.unstable": false,
}

This extension also provides Deno's formatting tools, settings are in .vscode/settings.json:

// .vscode/settings.json
{
  "[typescript]": {
    "editor.defaultFormatter": "denoland.vscode-deno",
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "denoland.vscode-deno",
  },
}

Contribute

Follow these steps to contribute, the community needs your strength.

  1. Fork project

  2. Clone onto your computer:

    $ git clone https://github.com/your_github_name/vscode_deno.git
    $ cd vscode_deno
    $ yarn # or npm install
  3. Disable extension in Visual Studio Code if you have extension before

  4. Start debug extension

    Open Visual Studio Code, find the Run item in the sidebar and then run Launch Client task.

    Wait for Visual Studio Code debugger to open a new window

  5. Try updating Visual Studio Code and restart the debugger

  6. Finally, push to your fork and send a PR

Thanks

This project was originally a fork of justjavac/vscode-deno and axetroy/vscode-deno. Thanks for their contributions.

License

The MIT License

vscode_deno's People

Contributors

axetroy avatar bartlomieju avatar denisbrodbeck avatar dependabot[bot] avatar flaque avatar johnstoncode avatar justjavac avatar jwebcoder avatar kevinbioj avatar kirlovon avatar msal4 avatar nufflee avatar parrotdance avatar ry avatar stanislavstrelnikov avatar zhmushan 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.