File tree 2 files changed +8
-2
lines changed
packages/typescript-estree/src/create-program 2 files changed +8
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import fs from 'fs';
3
3
import path from 'path' ;
4
4
import ts from 'typescript' ;
5
5
import { Extra } from '../parser-options' ;
6
- import { WatchCompilerHostOfConfigFile } from '.. /WatchCompilerHostOfConfigFile' ;
6
+ import { WatchCompilerHostOfConfigFile } from './WatchCompilerHostOfConfigFile' ;
7
7
import {
8
8
canonicalDirname ,
9
9
CanonicalPath ,
@@ -160,7 +160,13 @@ function getProgramsForProjects(
160
160
161
161
if ( fileList . has ( filePath ) ) {
162
162
log ( 'Found existing program for file. %s' , filePath ) ;
163
- return [ updatedProgram || existingWatch . getProgram ( ) . getProgram ( ) ] ;
163
+
164
+ updatedProgram =
165
+ updatedProgram || existingWatch . getProgram ( ) . getProgram ( ) ;
166
+ // sets parent pointers in source files
167
+ updatedProgram . getTypeChecker ( ) ;
168
+
169
+ return [ updatedProgram ] ;
164
170
}
165
171
}
166
172
log (
You can’t perform that action at this time.
0 commit comments