Skip to content

Deno: find project root using deno.json/deno.jsonc#4306

Merged
hsanson merged 1 commit into
dense-analysis:masterfrom
dirkjonker:deno-project-root
Sep 11, 2022
Merged

Deno: find project root using deno.json/deno.jsonc#4306
hsanson merged 1 commit into
dense-analysis:masterfrom
dirkjonker:deno-project-root

Conversation

@dirkjonker
Copy link
Copy Markdown
Contributor

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

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
Copy link
Copy Markdown
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

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

Thanks, looks good.

@hsanson hsanson merged commit 1458b87 into dense-analysis:master Sep 11, 2022
@dirkjonker dirkjonker deleted the deno-project-root branch September 11, 2022 12:31
mnikulin pushed a commit to mnikulin/ale that referenced this pull request Nov 12, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants