Skip to content
Permalink
Browse files

(in progress) make priori vscode friendly

  • Loading branch information
felipevex committed Nov 26, 2019
1 parent 73b4af8 commit 76a83521386621fe044b3f520ae648445287169a
@@ -0,0 +1,8 @@
{
"haxe.configurations": [ // one or more configurations for the haxe completion server
["priori-vscode.hxml"], // hxml file is a normal Haxe argument too
],
"haxe.displayServer": { // configuration for starting haxe completion server itself
"arguments": ["-v"], // arguments before --wait (-v is useful for debugging)
}
}
@@ -0,0 +1,4 @@
-cp helper
-cp priori

-lib jQueryExtern
BIN +733 Bytes (100%) run.n
Binary file not shown.
@@ -44,8 +44,37 @@ class PrioriRun {
Helper.g().output.print("");
Helper.g().output.print(" >>> Running " + args.command.toUpperCase() + " command", 0);

if (args.command == ArgsType.COMMAND_VSCODE) {

var error:Bool = false;

Helper.g().output.print("");
Helper.g().output.print("");
Helper.g().output.printWithUnderline("1. Loading Libs...");

// try to load priori lib
var prioriLibResult:String = PrioriRunController.getInstance().haxelib.load("priori");
if (prioriLibResult.length > 0) {
Helper.g().output.print("");
Helper.g().output.printError(prioriLibResult, "Lib error");
return;
}

// try to load project lib
var projectLibResult:String = PrioriRunController.getInstance().haxelib.load(args.currPath, args.prioriFile);
if (projectLibResult.length > 0) {
Helper.g().output.print("");
Helper.g().output.printError(projectLibResult, "Lib error");
return;
}

Helper.g().output.print("");
Helper.g().output.print("");
Helper.g().output.print("");
Helper.g().output.printWithUnderline("3. Generating vscode files from Haxe code...");

if (args.command == ArgsType.COMMAND_BUILD || args.command == ArgsType.COMMAND_RUN) {

} else if (args.command == ArgsType.COMMAND_BUILD || args.command == ArgsType.COMMAND_RUN) {

var error:Bool = false;

@@ -76,7 +105,6 @@ class PrioriRun {
Helper.g().output.printWithUnderline("2. Copying template Files...");



var templateBuildResult:String = PrioriRunController.getInstance().template.build();

if (templateBuildResult.length > 0) {
@@ -86,7 +114,6 @@ class PrioriRun {
}



Helper.g().output.print("");
Helper.g().output.print("");
Helper.g().output.print("");
@@ -27,7 +27,7 @@ class ArgsController {
result.command = clone.shift();
} else {
result.error = true;
result.errorMessage = "Command Missing: use create, build or run";
result.errorMessage = "Command Missing: use create, build or vscode";
return result;
}

@@ -31,7 +31,8 @@ class Validation {

if (value == ArgsType.COMMAND_BUILD ||
value == ArgsType.COMMAND_CREATE ||
value == ArgsType.COMMAND_RUN
value == ArgsType.COMMAND_RUN ||
value == ArgsType.COMMAND_VSCODE

) return true;

@@ -10,4 +10,5 @@ class ArgsType {
public static var COMMAND_BUILD:String = "build";
public static var COMMAND_RUN:String = "run";
public static var COMMAND_CREATE:String = "create";
public static var COMMAND_VSCODE:String = "vscode";
}

0 comments on commit 76a8352

Please sign in to comment.
You can’t perform that action at this time.