Skip to content

Commit

Permalink
Move 迷渡's repo to denoland
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 7, 2020
1 parent 8644c6d commit 37c7ad3
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 221 deletions.
12 changes: 0 additions & 12 deletions .github/FUNDING.yml

This file was deleted.

43 changes: 0 additions & 43 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

15 changes: 0 additions & 15 deletions .github/ISSUE_TEMPLATE/custom.md

This file was deleted.

27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

10 changes: 0 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

46 changes: 0 additions & 46 deletions CODE_OF_CONDUCT.md

This file was deleted.

21 changes: 0 additions & 21 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 justjavac
Copyright (c) 2019-2020 the Deno authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
34 changes: 22 additions & 12 deletions README.md
@@ -1,22 +1,26 @@
# VS Code Deno extension
# Visual Studio Code Deno extension

[![Build Status](https://travis-ci.com/justjavac/vscode-deno.svg?branch=master)](https://travis-ci.com/justjavac/vscode-deno)
[![Version](https://vsmarketplacebadge.apphb.com/version/justjavac.vscode-deno.svg)](https://marketplace.visualstudio.com/items?itemName=justjavac.vscode-deno)
[![Downloads](https://vsmarketplacebadge.apphb.com/downloads/justjavac.vscode-deno.svg)](https://marketplace.visualstudio.com/items?itemName=justjavac.vscode-deno)

Adds Deno support for VS Code using the [TypeScript Deno language service plugin](https://github.com/justjavac/typescript-deno-plugin).
Adds Deno support for VS Code using the [TypeScript Deno language service
plugin](https://github.com/justjavac/typescript-deno-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.
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.40 or older and are [using a **workspace version** of typescript](https://code.visualstudio.com/Docs/languages/typescript#_using-newer-typescript-versions), you must currently configure the TS Server plugin manually by following [these instructions](https://github.com/justjavac/typescript-deno-plugin#configuration)
If you are using VS Code 1.40 or older and are [using a **workspace version** of
typescript](https://code.visualstudio.com/Docs/languages/typescript#_using-newer-typescript-versions),
you must currently configure the TS Server plugin manually by following [these
instructions](https://github.com/justjavac/typescript-deno-plugin#configuration)

## 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`.
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.
Expand All @@ -32,15 +36,20 @@ Deno allows imports from URLs, like the browser. But TypeScript can **not** find

### 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.
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](https://raw.githubusercontent.com/justjavac/vscode-deno/master/images/with-plugin.png)

## Configuration

You can configure the Deno extension using a `tsconfig` as described [here](https://github.com/justjavac/typescript-deno-plugin#configuration), or configure it with VS Code settings. This requires VS Code 1.40+ and TS 3.8+. Note the VS Code based configuration overrides the `tsconfig` configuration.
You can configure the Deno extension using a `tsconfig` as described
[here](https://github.com/justjavac/typescript-deno-plugin#configuration), or
configure it with VS Code settings. This requires VS Code 1.40+ and TS 3.8+.
Note the VS Code based configuration overrides the `tsconfig` configuration.

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

Expand All @@ -59,4 +68,5 @@ This extension contributes the following commands to the Command palette.

## Contribute

Report a bug or a suggestion by posting an issue on the [git repository](https://github.com/justjavac/vscode-deno).
Report a bug or a suggestion by posting an issue on the [git
repository](https://github.com/denoland/vscode_deno).
6 changes: 6 additions & 0 deletions CHANGELOG.md → Releases.md
@@ -1,5 +1,11 @@
# Changelog

## 2020-05-07

Moved from https://github.com/justjavac/vscode-deno to
https://github.com/denoland/vscode_deno in order to have an "official" Deno
plugin. Thank you 迷渡!

## 1.9.0 - 2020-05-03

- rewrite module resolver [typescript-deno-plugin#35](https://github.com/justjavac/typescript-deno-plugin/pull/35)
Expand Down
10 changes: 5 additions & 5 deletions package.json
@@ -1,20 +1,20 @@
{
"name": "vscode-deno",
"name": "vscode_deno",
"displayName": "%deno.displayName%",
"description": "%deno.description%",
"version": "1.23.0",
"publisher": "justjavac",
"version": "1.24.0",
"publisher": "the deno authors",
"icon": "deno.png",
"galleryBanner": {
"color": "#3B3738",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/justjavac/vscode-deno"
"url": "https://github.com/denoland/vscode_deno"
},
"bugs": {
"url": "https://github.com/justjavac/vscode-deno/issues"
"url": "https://github.com/denoland/vscode_deno/issues"
},
"engines": {
"vscode": "^1.40.0"
Expand Down

2 comments on commit 37c7ad3

@AmosTsay
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you did some repeat job.

@AmosTsay
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you did some repeat job.

Please sign in to comment.