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(