vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

A way to disable deno for JavaScript

Open Mqxx opened this issue 1 year ago • 2 comments

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

Unfortunately, it is currently only possible to activate Deno globally in the entire project. For example, if I am working on a project where I have both a client and a server, I would like to have Deno enabled only for my TypeScript backend. If Deno is also enabled for JavaScript then I have no access to for example the DOM or other "frontend only" APIs. Then when I want to work on my client, I get autocomplete only when I disable Deno.

Describe the solution you'd like

I would wish that you could turn Deno on/off specifically for certain languages. As an example like this:

{
    "deno.enable": true,
    "deno.unstable": true,
    "[javascript]": {
        "deno.enable": false <-- Grayed out (does not work)
    }
}

Mqxx avatar Jun 22 '23 06:06 Mqxx

@Mqxx Maybe you can do this 👇

{
  "deno.enable": true,
  "deno.unstable": true,
  "deno.enablePaths": ["./your/serviceDir"]
}

markthree avatar Jun 22 '23 07:06 markthree

That works thanks for the suggestion! But I would still like to be able to disable Deno for certain languages.

Mqxx avatar Jun 22 '23 08:06 Mqxx

It's more reasonable for the use case described to allowlist by directory, per-language doesn't make a lot of sense. Declining for now.

nayeemrmn avatar Jun 19 '24 18:06 nayeemrmn

Declining for now.

@nayeemrmn Will you re-open and close this again as not planned (instead of completed) so that it can be correctly indexed?

jsejcksn avatar Jun 19 '24 18:06 jsejcksn