vscode_deno icon indicating copy to clipboard operation
vscode_deno copied to clipboard

deno.path doesn't resolve environment variables

Open Xernisfy opened this issue 3 years ago • 1 comments

The setting "deno.path" doesn't seem to resolve environment variables.

In my settings.json I want to use an environment variable to resolve to deno.

Basically what I would like it to work with: "deno.path": "${env:USERPROFILE}\\Applications\\deno\\deno.exe" or "deno.path": "%USERPROFILE%\\Applications\\deno\\deno.exe"

But it does work with an absolute path: "deno.path": "C:\\Users\\<username>\\Applications\\deno\\deno.exe"

I tried this with the global settings.json and a workspace file.

Expected behavior

The environment variable should be resolved and enable the extension to find deno.

Screenshots

image

image

Versions

vscode: 1.54.3 (user setup) deno: 1.8.2 extension: 3.2.0 os: Win10 build 19042

Xernisfy avatar Mar 26 '21 10:03 Xernisfy

Currently vscode does not provide a service that does this (see: https://github.com/microsoft/vscode/issues/2809) though I would really want something that is provided to extensions that would make this automatically work instead of trying to build it ourselves.

kitsonk avatar May 11 '21 06:05 kitsonk