vscode_deno
vscode_deno copied to clipboard
deno.path doesn't resolve environment variables
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
Versions
vscode: 1.54.3 (user setup) deno: 1.8.2 extension: 3.2.0 os: Win10 build 19042
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.