Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using different deno configs for different dirs #787

Closed
Tracked by #968 ...
kt3k opened this issue Jan 12, 2023 · 2 comments · Fixed by denoland/deno#24206
Closed
Tracked by #968 ...

Allow using different deno configs for different dirs #787

kt3k opened this issue Jan 12, 2023 · 2 comments · Fixed by denoland/deno#24206
Labels

Comments

@kt3k
Copy link
Member

kt3k commented Jan 12, 2023

Is your feature request related to a problem? Please describe.

I want to use 2 different deno configs in a single repository. They have different importMap settings which have conflicting entries.

Describe the solution you'd like

Auto-detect different deno.json in subdirectories, and partition their handling in the language server.

To override auto-detections, allow "deno.config" option to accept object value of the form:

{
  ...
  "deno.config": {
    "path/to/foo": "path/to/foo/deno.json",
    "path/to/bar": "path/to/bar/deno.json"
  }
  ...
}

and apply each config only to the corresponding directory.

@Leokuma
Copy link
Contributor

Leokuma commented Jan 20, 2023

Related #713

@mindreframer
Copy link

I see there is an open PR denoland/deno#20410 - Workspace support. Is this issue related to this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants