|
@@ -23,9 +23,12 @@ import { build_sub_values, parse_next_scene_node, split_buffers } from "./helper
|
|
import { VariantDecoder } from "./variables/variant_decoder";
|
|
import { VariantDecoder } from "./variables/variant_decoder";
|
|
import { VariantEncoder } from "./variables/variant_encoder";
|
|
import { VariantEncoder } from "./variables/variant_encoder";
|
|
import { RawObject } from "./variables/variants";
|
|
import { RawObject } from "./variables/variants";
|
|
|
|
+import BBCodeToAnsi from 'bbcode-to-ansi';
|
|
|
|
|
|
const log = createLogger("debugger.controller", { output: "Godot Debugger" });
|
|
const log = createLogger("debugger.controller", { output: "Godot Debugger" });
|
|
const socketLog = createLogger("debugger.socket");
|
|
const socketLog = createLogger("debugger.socket");
|
|
|
|
+//initialize bbcodeParser and set default output color to grey
|
|
|
|
+const bbcodeParser = new BBCodeToAnsi("\u001b[38;2;211;211;211m");
|
|
|
|
|
|
class Command {
|
|
class Command {
|
|
public command: string = "";
|
|
public command: string = "";
|
|
@@ -427,9 +430,8 @@ export class ServerController {
|
|
this.didFirstOutput = true;
|
|
this.didFirstOutput = true;
|
|
// this.request_scene_tree();
|
|
// this.request_scene_tree();
|
|
}
|
|
}
|
|
- const lines = command.parameters;
|
|
|
|
- for (const line of lines) {
|
|
|
|
- debug.activeDebugConsole.appendLine(ansi.bright.blue + line[0]);
|
|
|
|
|
|
+ for (const output of command.parameters){
|
|
|
|
+ output[0].split("\n").forEach(line => debug.activeDebugConsole.appendLine(bbcodeParser.parse(line)));
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
}
|
|
}
|