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

Add 'electron' target #48

Closed TomByrne closed 5 years ago

TomByrne commented 5 years ago

Would be great if you could add the electron target. I know it's possible to add in openfl.lime-vscode-extension-1.2.1\bin\lime-vscode.js, but would be great if you could add by default.

Gama11 commented 5 years ago

@jgranick Should this be part of the UI by default, or is it the target too young / untested for that (assuming that's the reason why it hasn't been added thus far)?

Beyond that, we might need a setting for "custom targets", e.g. for people wanting to test the HL target with a Lime from source rebuilt for HL support.

jgranick commented 5 years ago

The plan was for Lime to automatically provide the targets available, though with target aliases, this is perhaps a little more complicated.

In theory, it would be nice for lime display project.xml --targets to know if you have lime-switch installed and can target Nintendo, for example. Perhaps this is too fancy

Otherwise we would add targets like Switch or Electron, and get developers who wonder why they might not work

Gama11 commented 5 years ago

Sure, but Electron is not one of those targets, is it? It's shipped by default with Lime?

Gama11 commented 5 years ago

I guess it still could be confusing for people using older Lime versions that didn't support it yet.

jgranick commented 5 years ago

Current dev supports Electron and allows support for adding new targets using settings