Skip to content

Commit 3f40e47

Browse files
Don't access diagnostics directly. Use the supported Program API for them.
1 parent febe320 commit 3f40e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1813,7 +1813,7 @@ namespace ts {
18131813

18141814
var program = createProgram([inputFileName], options, compilerHost);
18151815

1816-
addRange(/*to*/ diagnostics, /*from*/ sourceFile.parseDiagnostics);
1816+
addRange(/*to*/ diagnostics, /*from*/ program.getSyntacticDiagnostics(sourceFile));
18171817
addRange(/*to*/ diagnostics, /*from*/ program.getOptionsDiagnostics());
18181818

18191819
// Emit

0 commit comments

Comments
 (0)