mesonbuild / vscode-meson

Meson for VisualStudio Code
Apache License 2.0
100 stars 50 forks source link

Expand `${workspaceFolder}` in `mesonbuild.muonPath` #130

Open tristan957 opened 1 year ago

tristan957 commented 1 year ago

I have a feeling there is a VSCode extension API for this, but I would have to go looking.

{
  "mesonbuild.muonPath": "${workspaceFolder}/build/muon"
}
Failed to enable linter muon: spawn ${workspaceFolder}/build/muon ENOENT
tristan957 commented 1 year ago

WTF https://github.com/microsoft/vscode-python/blob/b68facc42f684f26c5f83f3cfe895e7aa4bb2bee/src/client/common/variables/systemVariables.ts

VSCode please...

https://github.com/microsoft/vscode/issues/46471

liam-clink commented 3 months ago

What about this for at least that one token? https://github.com/leidegre/vscode-clang/blob/master/extension.js#L210-L238

tristan957 commented 3 months ago

I'll give it some thought. Thanks for grabbing that link.

liam-clink commented 3 months ago

There's also the vscode-python code that you yourself mention here: https://github.com/microsoft/vscode-python/blob/b68facc42f684f26c5f83f3cfe895e7aa4bb2bee/src/client/common/variables/systemVariables.ts What prevents this code from being used for this extension?

tristan957 commented 3 months ago

Mostly me not wanting to maintain it. It's all just a hack until VSCode recognizes that they should have given us this API at least 6 years ago.