Explorar o código

Clarify the function of the extra integer given by the debugger (#245)

This closes #242.
Nils "Linkpy" Reid %!s(int64=4) %!d(string=hai) anos
pai
achega
8115fba367
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      src/debugger/mediator.ts

+ 7 - 1
src/debugger/mediator.ts

@@ -29,7 +29,13 @@ export class Mediator {
 
 				let lines: string[] = parameters;
 				lines.forEach((line) => {
-					this.output.appendLine(line);
+					let message_content: string = line[0];
+					//let message_kind: number = line[1];
+
+					// OutputChannel doesn't give a way to distinguish between a 
+					// regular string (message_kind == 0) and an error string (message_kind == 1).
+
+					this.output.appendLine(message_content);
 				});
 				break;