Skip to content

Commit

Permalink
Fix #9 - Include error code in messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
PranayAgarwal committed Nov 8, 2016
1 parent 0911855 commit af8b37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typechecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit af8b37c

Please sign in to comment.