Skip to content

Commit a8579af

Browse files
Merge pull request #847 from Microsoft/marshallDiagnosticsCode
Properly marshall diagnostic codes to the managed layer
2 parents b379840 + 0b7453b commit a8579af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/services/shims.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ module ts {
502502
start: diagnostic.start,
503503
length: diagnostic.length,
504504
/// TODO: no need for the tolowerCase call
505-
category: DiagnosticCategory[diagnostic.category].toLowerCase()
505+
category: DiagnosticCategory[diagnostic.category].toLowerCase(),
506+
code: diagnostic.code
506507
};
507508
}
508509

0 commit comments

Comments
 (0)