angular-cn/packages/language-service/test
Keen Yee Liau ae5257cda6 fix(language-service): incorrect autocomplete results on unknown symbol (#37518)
This commit fixes a bug whereby the language service would incorrectly
return HTML elements if autocomplete is requested for an unknown symbol.
This is because we walk through every possible scenario, and fallback to
element autocomplete if none of the scenarios match.

The fix here is to return results from interpolation if we know for sure
we are in a bound text. This means we will now return an empty results if
there is no suggestions.

This commit also refactors the code a little to make it easier to
understand.

PR Close #37518
2020-06-26 14:51:32 -07:00
..
project feat(language-service): TS references from template items (#37437) 2020-06-08 17:23:49 -07:00
BUILD.bazel feat(language-service): TS references from template items (#37437) 2020-06-08 17:23:49 -07:00
completions_spec.ts fix(language-service): incorrect autocomplete results on unknown symbol (#37518) 2020-06-26 14:51:32 -07:00
definitions_spec.ts feat(language-service): TS references from template items (#37437) 2020-06-08 17:23:49 -07:00
diagnostic_messages_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
diagnostics_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
expression_diagnostics_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
global_symbols_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
hover_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
html_info_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
language_service_spec.ts test(language-service): Remove all markers from test project (#37475) 2020-06-08 10:25:42 -07:00
mocks.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
references_spec.ts feat(language-service): TS references from template items (#37437) 2020-06-08 17:23:49 -07:00
reflector_host_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
test_utils.ts fix(language-service): Recover from error in analyzing Ng Modules (#37108) 2020-06-03 15:56:19 -07:00
ts_plugin_spec.ts fix(language-service): reinstate getExternalFiles() (#37750) 2020-06-26 09:57:08 -07:00
typescript_host_spec.ts fix(language-service): Recover from error in analyzing Ng Modules (#37108) 2020-06-03 15:56:19 -07:00
typescript_symbols_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
utils_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00