vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

Allow using different deno configs for different dirs

Open kt3k opened this issue 2 years ago • 2 comments

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.

kt3k avatar Jan 12 '23 10:01 kt3k

Related #713

Leokuma avatar Jan 20 '23 02:01 Leokuma

I see there is an open PR https://github.com/denoland/deno/pull/20410 - Workspace support. Is this issue related to this PR?

mindreframer avatar Oct 01 '23 13:10 mindreframer