openfl / lime-vscode-extension

Visual Studio Code extension for OpenFL and Lime projects written in Haxe
https://marketplace.visualstudio.com/items?itemName=openfl.lime-vscode-extension
MIT License
27 stars 4 forks source link

Lime project detection is too naive #103

Closed EliteMasterEric closed 1 month ago

EliteMasterEric commented 8 months ago

I am working on a project called PickHaxe, for developing Minecraft mods using Haxe.

I opted to include workspace parameters in a project.xml file, which works great, but causes issues as the Lime extension complains that the project configuration is invalid.

I use a different top-level XML tag for my projects, so ideally that could be used for detection.

player-03 commented 8 months ago

Can you post the problem parameters?

EliteMasterEric commented 8 months ago

Here is an example of what a PickHaxe project.xml looks like:

https://github.com/EliteMasterEric/PickHaxe-Samples/blob/master/madeinhaxe/project.xml

player-03 commented 8 months ago

Oh, I see what you're saying. You want to make it stop detecting (and thus complaining about) these files, because they were never meant to have anything to do with Lime. Fair enough.

With Lime itself you can specify a custom path and then it'll ignore project.xml, so maybe the extension should offer the same option.

joshtynjala commented 1 month ago

With Lime itself you can specify a custom path and then it'll ignore project.xml, so maybe the extension should offer the same option.

There's a lime.projectFile setting in lime-vscode-extension. That should do it.