Skip to content

Commit

Permalink
fix(typescript-estree): ensure parents are defined during subsequent …
Browse files Browse the repository at this point in the history
…parses (#500)
  • Loading branch information
uniqueiniquity authored and bradzacher committed May 8, 2019
1 parent d52a683 commit 665278f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/typescript-estree/src/tsconfig-parser.ts
Expand Up @@ -89,7 +89,10 @@ export function calculateProjectParserOptions(

if (typeof existingWatch !== 'undefined') {
// get new program (updated if necessary)
results.push(existingWatch.getProgram().getProgram());
const updatedProgram = existingWatch.getProgram().getProgram();
updatedProgram.getTypeChecker(); // sets parent pointers in source files
results.push(updatedProgram);

continue;
}

Expand Down

0 comments on commit 665278f

Please sign in to comment.