angular-cn/packages/language-service/test
Keen Yee Liau bbb2798d41 fix(language-service): Use tsLSHost.fileExists() to resolve modules (#32642)
The ModuleResolutionHost implementation inside ReflectorHost currently
relies on reading the snapshot to determine if a file exists, and use
the snapshot to retrieve the file content.
It is more straightforward and efficient to use the already existing
method fileExists() instead.

At runtime, the TypeScript LanguageServiceHost is really a Project, so
both fileExists() and readFile() methods are defined.

As a micro-optimization, skip fs lookup for tsx files.

PR Close #32642
2019-09-12 17:18:06 -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): move to using mockHost as much as possible (#32589) 2019-09-11 19:27:27 -04:00
definitions_spec.ts feat(language-service): add definitions for styleUrls (#32464) 2019-09-09 16:04:14 -04:00
diagnostics_spec.ts feat(language-service): provide diagnostic for invalid templateUrls (#32586) 2019-09-12 11:47:44 -07:00
hover_spec.ts refactor(language-service): cleanup tests for Hover (#32378) 2019-08-28 17:25:07 -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): Use tsLSHost.fileExists() to resolve modules (#32642) 2019-09-12 17:18:06 -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 feat(language-service): add definitions for styleUrls (#32464) 2019-09-09 16:04:14 -04:00
test_utils.ts test(language-service): Make tests better by adding more assertions (#32630) 2019-09-12 10:23:51 -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 test(language-service): Make tests better by adding more assertions (#32630) 2019-09-12 10:23:51 -07:00
utils_spec.ts refactor(language-service): Omit typechecking for finding directives (#32156) 2019-08-16 09:58:28 -07:00