Skip to content

Commit 1c313c5

Browse files
committed
Restore some of the code from 1ee364d
We still need to write to the outputFile variable
1 parent 1ee364d commit 1c313c5

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/lime/extension/Main.hx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,21 @@ class Main
866866
}
867867

868868
var targetItem = getTargetItem();
869+
var commandLine = limeExecutable + " " + getCommandArguments("display", targetItem);
870+
var additionalArgs = getDebugArguments(targetItem, null);
871+
if (additionalArgs != null) commandLine += " " + additionalArgs.join(" ");
872+
commandLine += " --output-file";
873+
commandLine = StringTools.replace(commandLine, "-verbose", "");
874+
875+
try
876+
{
877+
var output = ChildProcess.execSync(commandLine, {cwd: workspace.workspaceFolders[0].uri.fsPath});
878+
outputFile = StringTools.trim(Std.string(output));
879+
}
880+
catch (e:Dynamic)
881+
{
882+
trace(e);
883+
}
869884

870885
if (!Reflect.hasField(config, "preLaunchTask"))
871886
{

0 commit comments

Comments
 (0)