Prechádzať zdrojové kódy

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

This closes #242.
Nils "Linkpy" Reid 4 rokov pred
rodič
commit
8115fba367
1 zmenil súbory, kde vykonal 7 pridanie a 1 odobranie
  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;