Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 8dcad5d

Browse files
author
Stanislav Panferov
committed
feat(checker): fix compiler reference
1 parent 44baa68 commit 8dcad5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function processCompile(payload: ICompilePayload) {
121121
if (allDiagnostics.length) {
122122
console.error(colors.yellow('Checker diagnostics:'))
123123
allDiagnostics.forEach(diagnostic => {
124-
let message = ts.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
124+
let message = env.compiler.flattenDiagnosticMessageText(diagnostic.messageText, '\n');
125125

126126
if (diagnostic.file) {
127127
let { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);

0 commit comments

Comments
 (0)