From af8b37cd7aa6713f8890c8124a35196ed631938c Mon Sep 17 00:00:00 2001 From: Pranay Agarwal Date: Mon, 7 Nov 2016 22:07:20 -0800 Subject: [PATCH] Fix #9 - Include error code in messages. --- src/typechecker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typechecker.ts b/src/typechecker.ts index 3a47275..f6a042e 100644 --- a/src/typechecker.ts +++ b/src/typechecker.ts @@ -25,7 +25,7 @@ export class HackTypeChecker { value.errors.forEach(error => { let fullMessage = ''; error.message.forEach(messageUnit => { - fullMessage = fullMessage + messageUnit.descr + '\n'; + fullMessage = fullMessage + messageUnit.descr + ' [' + messageUnit.code + ']' + '\n'; }); const diagnostic = new vscode.Diagnostic( new vscode.Range(