From e16c3b09f74dfa6c096fb50c8cd09b1974e75fb0 Mon Sep 17 00:00:00 2001 From: Mohammed Chelouti <70812484+motato1@users.noreply.github.com> Date: Mon, 11 Jan 2021 21:55:17 +0100 Subject: [PATCH] doc: Add documentation for Deno --- doc/ale-supported-languages-and-tools.txt | 1 + doc/ale-typescript.txt | 33 +++++++++++++++++++ supported-tools.md | 1 + .../test_typescript_deno_lsp.vader | 1 - 4 files changed, 35 insertions(+), 1 deletion(-) diff --git a/doc/ale-supported-languages-and-tools.txt b/doc/ale-supported-languages-and-tools.txt index a44ad75b..b47e1b2c 100644 --- a/doc/ale-supported-languages-and-tools.txt +++ b/doc/ale-supported-languages-and-tools.txt @@ -498,6 +498,7 @@ Notes: * `thrift` * TypeScript * `eslint` + * `deno` * `fecs` * `prettier` * `standard` diff --git a/doc/ale-typescript.txt b/doc/ale-typescript.txt index 026d17ce..56735b55 100644 --- a/doc/ale-typescript.txt +++ b/doc/ale-typescript.txt @@ -10,6 +10,39 @@ the two languages are, the `eslint` linter for TypeScript uses the JavaScript options for `eslint` too. See: |ale-javascript-eslint|. +=============================================================================== +deno *ale-typescript-deno* + +Starting from version 1.6.0, Deno comes with its own language server. Earlier +versions are not supported. + +g:ale_deno_executable *g:ale_deno_executable* + *b:ale_deno_executable* + Type: |String| + Default: `'deno'` + + +g:ale_deno_lsp_project_root *g:ale_deno_lsp_project_root* + *b:ale_deno_lsp_project_root* + Type: |String| + Default: `''` + + If this variable is left unset, ALE will try to find the project root by + executing the following steps in the given order: + + 1. Find an ancestor directory containing a tsconfig.json. + 2. Find an ancestory irectory containing a .git folder. + 3. Use the directory of the current buffer (if the buffer was opened from + a file). + +g:ale_deno_unstable *g:ale_deno_unstable* + *b:ale_deno_unstable* + Type: |Number| + Default: `0` + + Enable or disable unstable Deno features and APIs. + + =============================================================================== prettier *ale-typescript-prettier* diff --git a/supported-tools.md b/supported-tools.md index 8ed83d6c..88ad70a4 100644 --- a/supported-tools.md +++ b/supported-tools.md @@ -507,6 +507,7 @@ formatting. * [thrift](http://thrift.apache.org/) * TypeScript * [eslint](http://eslint.org/) + * [deno](https://deno.land/) * [fecs](http://fecs.baidu.com/) * [prettier](https://github.com/prettier/prettier) * [standard](http://standardjs.com/) diff --git a/test/command_callback/test_typescript_deno_lsp.vader b/test/command_callback/test_typescript_deno_lsp.vader index b6e4db0e..01cbc851 100644 --- a/test/command_callback/test_typescript_deno_lsp.vader +++ b/test/command_callback/test_typescript_deno_lsp.vader @@ -54,7 +54,6 @@ Execute(Should use user-specified project root): \ 'unstable': v:false \} - Execute(Check Deno LSP command): AssertLinter 'deno', [ \ ale#Escape('deno') . ' lsp',