lime-vscode-extension icon indicating copy to clipboard operation
lime-vscode-extension copied to clipboard

Path for lime.projectFile in multi-root projects

Open 47rooks opened this issue 2 years ago • 4 comments

Currently lime.projectFile on Windows, at any rate, requires an absolute path when specified in a multi-root workspace *.code-workspace file. It would be great if this could be made a path relative to the location of the *.code-workspace file. That way you could version control this file:

  • in a portable way
  • without exposing directory structure on your system outside the repo clone

47rooks avatar Feb 15 '24 14:02 47rooks

ok - the projectFile path is relative. The problem is that the lime extension spawns the run task in the lower level directory - the directory that contains the project.xml. So if you have this sort of structure:

composites
    examples
    tests
    composites.code-workspace

if you set lime.projectFile to "..\examples\Project.xml" then the plugin will correctly build.

47rooks avatar Feb 17 '24 16:02 47rooks

So is that good enough, or is there still some change you want to see?

player-03 avatar Feb 18 '24 19:02 player-03

Actually not sure. It is a bit counter-intuitive to have to set this this way. It would make more sense for it to be relative to the code-workspace file location. Obviously this can be used - I am still playing with it and it's not broken yet. I guess it depends a bit on what the plot is for the lime-extension to support multi-root workspaces.

The main thing right now though is being able to switch to different Project.xml files in this structure. But that's really a different issue. I'll file one on that separately I guess because at the moment I have to manually edit the code-wrokspaces to be able to switch between tests and examples which both have Project.xmls.

47rooks avatar Feb 18 '24 22:02 47rooks

I guess it depends a bit on what the plot is for the lime-extension to support multi-root workspaces.

Unfortunately, we can't support multi-root workspaces until the Haxe extension does first. At least not without providing our own custom Haxe code intelligence.

joshtynjala avatar Feb 19 '24 16:02 joshtynjala