Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axetroy/vscode-deno
Visual Studio Code Deno extension
https://github.com/axetroy/vscode-deno
deno deno-support typescript-deno-plugin vscode-deno vscode-extension
Last synced: 3 months ago
JSON representation
Visual Studio Code Deno extension
- Host: GitHub
- URL: https://github.com/axetroy/vscode-deno
- Owner: axetroy
- License: mit
- Archived: true
- Created: 2019-03-09T16:53:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T12:42:30.000Z (over 4 years ago)
- Last Synced: 2024-09-20T00:28:00.217Z (5 months ago)
- Topics: deno, deno-support, typescript-deno-plugin, vscode-deno, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=axetroy.vscode-deno
- Size: 22.8 MB
- Stars: 102
- Watchers: 4
- Forks: 9
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-luooooob - axetroy/vscode-deno - Visual Studio Code Deno extension (TypeScript)
README
> The project is no longer maintained. move to [official extension](https://github.com/denoland/vscode_deno)
English | [中文简体](README_zh-CN.md)
# Visual Studio Code Deno extension

[](https://coveralls.io/github/axetroy/vscode-deno?branch=refs/heads/master)
[](https://deepscan.io/dashboard#view=project&tid=6484&pid=9924&bid=132500)





Adds Deno support for the Visual Studio Code.

Features:
Full intellisense support

Intelligent module import

Supports importing ECMAScript modules

Diagnostics and quick fixes

Optional use of Deno's built in formatting

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

Supports `Import Maps` for Deno

External type definitions
The extension supports the following ways to load external declaration files
> These are all supported by Deno
1. Compiler hint
```ts
// @deno-types="./foo.d.ts"
import { foo } from "./foo.js";
```see [example](/examples/compile-hint/mod.ts)
2. `Triple-slash` reference directive
```ts
///import { format } from "https://deno.land/x/date_fns/index.js";
format(new Date(), "yyyy/MM/DD");
```see [example](/examples/react/mod.tsx)
3. `X-TypeScript-Types` custom header
```ts
import { array } from "https://cdn.pika.dev/fp-ts";const M = array.getMonoid();
console.log("concat Array", M.concat([1, 2], [2, 3]));
```Deno version manager integration
Investigating integration into the extension
We recommend you using [dvm](https://github.com/axetroy/dvm) for the manager Deno version.
## Usage
1. Download and enable the extension from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=axetroy.vscode-deno)
2. Enable Deno for your project:
Create a file `.vscode/settings.json` in your project folder:
```json5
// .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:
```json5
// .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`:
```json5
// .vscode/settings.json
{
"[typescript]": {
"editor.defaultFormatter": "axetroy.vscode-deno",
},
"[typescriptreact]": {
"editor.defaultFormatter": "axetroy.vscode-deno",
},
}
```## Contribute
Follow these steps to contribute, the community needs your strength.
1. Fork project
2. Clone onto your computer:
```bash
$ 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](https://github.com/justjavac/vscode-deno), Thanks for their contributions.
## License
The [MIT License](LICENSE)