angular-cn/packages/language-service/test
Keen Yee Liau 97fc45f32a fix(language-service): Invalidate Reflector caches when program changes (#32357)
This commit fixes a bug introduced in the recent refactoring whereby
caches become stale when the program changes.
This is because StaticReflector keeps its own caches that are not
clearable. The previous refactoring tried to reuse the same instance,
leading to out-of-sync program state.

Clearing out the *entire* cache is very inefficient. Instead, we could
just invalidate the symbols in the files that have changed. This
requires changes to the API of StaticReflector, but put this on hold
until the refactoring of language service for Ivy commences.

PR closes https://github.com/angular/angular/issues/32301

PR Close #32357
2019-08-28 17:22:50 -07:00
..
BUILD.bazel build: update rules_nodejs and clean up bazel warnings (#30370) 2019-05-14 10:08:45 -07:00
completions_spec.ts refactor(language-service): Return ts.CompletionInfo for getCompletionsAt() (#32116) 2019-08-14 14:09:51 -07:00
definitions_spec.ts feat(language-service): add definitions for templateUrl (#32238) 2019-08-28 17:09:46 -07:00
diagnostics_spec.ts test(language-service): Add test for CRLF line endings (#32245) 2019-08-21 15:21:09 -07:00
hover_spec.ts fix(language-service): Make Definition and QuickInfo compatible with TS LS (#31972) 2019-08-08 12:00:56 -07:00
html_info_spec.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
language_service_spec.ts refactor: clean up language service from unused code and imports (#30534) 2019-05-17 13:32:06 -07:00
reflector_host_spec.ts fix(language-service): Remove 'context' used for module resolution (#32015) 2019-08-13 11:19:18 -07:00
template_references_spec.ts refactor(language-service): Remove NgLSHost -> NgLS dependency (#31122) 2019-06-19 15:19:56 -07:00
template_spec.ts refactor(language-service): add generic decorator property verifications (#32252) 2019-08-22 16:04:14 -07:00
test_data.ts fix(language-service): Make Definition and QuickInfo compatible with TS LS (#31972) 2019-08-08 12:00:56 -07:00
test_utils.ts test(language-service): Fix diagnostic tests (#32161) 2019-08-16 15:26:05 -07:00
ts_plugin_spec.ts feat(language-service): Introduce 'angularOnly' flag (#31935) 2019-08-01 17:43:21 -07:00
typescript_host_spec.ts fix(language-service): Invalidate Reflector caches when program changes (#32357) 2019-08-28 17:22:50 -07:00
utils_spec.ts refactor(language-service): Omit typechecking for finding directives (#32156) 2019-08-16 09:58:28 -07:00