angular-cn/packages/language-service/src
Keen Yee Liau adb562bca6 fix(language-service): create StaticReflector once only (#32543)
The creation of StaticReflector in createMetadataResolver() is a very expensive operation because it involves numerous module resolutions.
To make matter worse, since the API of the Reflector does not provide the ability to invalidate its internal caches, it has to be destroyed and recreated on *every* program change.
This has a HUGE impact on performance.
This PR fixes this problem by carefully invalidating all StaticSymbols in a file that has changed, thereby reducing the overhead of recomputation on program change.

PR Close #32543
2019-10-03 15:02:03 -07:00
..
common.ts refactor(language-service): Remove redudant 'TemplateInfo' type (#32250) 2019-08-22 12:32:41 -07:00
completions.ts refactor(language-service): let -> const (#32668) 2019-09-13 08:56:43 -07:00
definitions.ts feat(language-service): add definitions for styleUrls (#32464) 2019-09-09 16:04:14 -04:00
diagnostics.ts feat(language-service): provide diagnostics for invalid styleUrls (#32674) 2019-09-17 13:38:37 -07:00
expressions.ts fix(language-service): remove tsickle dependency 2017-08-16 11:33:49 -07:00
hover.ts feat(language-service): module definitions on directive hover (#32763) 2019-10-02 13:26:30 -07:00
html_info.ts refactor(core): remove misc, completely unused functions from DomAdapter (#32278) 2019-08-26 10:39:09 -07:00
language_service.ts feat(language-service): module definitions on directive hover (#32763) 2019-10-02 13:26:30 -07:00
locate_symbol.ts fix(language-service): Create DirectiveKind enum (#32376) 2019-08-28 17:23:53 -07:00
reflector_host.ts fix(language-service): Use tsLSHost.fileExists() to resolve modules (#32642) 2019-09-12 17:18:06 -07:00
template.ts refactor(language-service): add generic decorator property verifications (#32252) 2019-08-22 16:04:14 -07:00
ts_plugin.ts fix(language-service): Return empty external files during project initialization (#32519) 2019-09-09 12:22:19 -04:00
types.ts fix(language-service): Use ts.CompletionEntry for completions (#32375) 2019-09-04 11:53:14 -07:00
typescript_host.ts fix(language-service): create StaticReflector once only (#32543) 2019-10-03 15:02:03 -07:00
utils.ts feat(language-service): provide diagnostic for invalid templateUrls (#32586) 2019-09-12 11:47:44 -07:00
version.ts style: remove empty comments (#23404) 2018-05-10 15:48:13 -07:00