xmake-vscode icon indicating copy to clipboard operation
xmake-vscode copied to clipboard

Consider using an existing library for variable replacement to support multi-root workspaces

Open smac89 opened this issue 1 year ago • 2 comments

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

smac89 avatar Feb 19 '25 15:02 smac89

I haven't had time to improve it recently, you can try it and open a pr.

waruqi avatar Feb 19 '25 15:02 waruqi

@waruqi #287

smac89 avatar Feb 19 '25 16:02 smac89