diff options
author | Dirk Jonker <dirkjonker@gmail.com> | 2022-09-11 03:57:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-11 10:57:03 +0900 |
commit | 1458b8749c28b607ee5b3112a9ef1dbfacb10578 (patch) | |
tree | c6cc2f65330a671a5ce86cb64e42387393811a65 /autoload | |
parent | a51fd9dababe43d239b8bdc1c10ac1f5397d6739 (diff) | |
download | ale-1458b8749c28b607ee5b3112a9ef1dbfacb10578.zip |
Deno: find project root using deno.json/deno.jsonc (#4306)
Deno LSP automatically detects config files named deno.json or
deno.jsonc since version 1.18.
For Deno 1.18+ this means that ALE no longer needs to resolve the
project root. However, removing the project root logic from ALE means
breaking changes for people that are still using an older version.
Adding deno.json to the list of looking files to look for will keep the
behavior consistent and compatible with the Deno config file naming
convention.
See also:
https://deno.com/blog/v1.18#auto-discovery-of-the-config-file
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/handlers/deno.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/ale/handlers/deno.vim b/autoload/ale/handlers/deno.vim index 1b5e1718..b762f983 100644 --- a/autoload/ale/handlers/deno.vim +++ b/autoload/ale/handlers/deno.vim @@ -29,6 +29,8 @@ function! ale#handlers#deno#GetProjectRoot(buffer) abort endif let l:possible_project_roots = [ + \ 'deno.json', + \ 'deno.jsonc', \ 'tsconfig.json', \ '.git', \ bufname(a:buffer), |