xmake-vscode
xmake-vscode copied to clipboard
Consider using an existing library for variable replacement to support multi-root workspaces
Is your feature request related to a problem? Please describe.
The extension currently doesn't work well with multi-root workspaces due to being unable to understand the variables used to describe the path to a project root.
Describe the solution you'd like
Consider using https://github.com/DominicVonk/vscode-variables to replace the current replaceVars function, as it is able to resolve the correct paths for many of the existing variables.
Describe alternatives you've considered
No response
Additional context
This will make the plugin more robust and may also bring the following issues closer to being resolved:
- https://github.com/xmake-io/xmake-vscode/issues/160
- https://github.com/xmake-io/xmake-vscode/issues/242
I haven't had time to improve it recently, you can try it and open a pr.
@waruqi #287