fix(language-service): Clear caches when program changes (#21337)

This commit fixes a bug whereby the caches are not cleared when the
program changes. This subsequently produces the incorrect error of
'Component ... is not included in a module ...'.

PR Close #19405

PR Close #21337
This commit is contained in:
Keen Yee Liau
2018-01-05 12:33:26 -08:00
committed by Alex Eagle
parent 2d44a2ab0d
commit 43e1520260
3 changed files with 26 additions and 6 deletions

View File

@ -248,7 +248,7 @@ describe('diagnostics', () => {
template: \`
<div *ngIf="comps | async; let comps; else loading">
</div>
<ng-template #loading>Loading comps...</ng-template>
<ng-template #loading>Loading comps...</ng-template>
\`
})
export class MyComponent {}