Skip to content

Commit 0b7453b

Browse files
Properly marshall diagnostic codes to the managed layer
1 parent 0625cc4 commit 0b7453b

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)