angular-docs-cn/packages/language-service
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
..
bundles refactor(dev-infra): ng_rollup_bundle rule should leverage `@bazel/rollup` (#37623) 2020-06-22 10:55:28 -07:00
ivy refactor(compiler-cli): make IncrementalBuild strategy configurable (#37339) 2020-06-15 09:50:08 -07:00
src fix(language-service): incorrect autocomplete results on unknown symbol (#37518) 2020-06-26 14:51:32 -07:00
test fix(language-service): incorrect autocomplete results on unknown symbol (#37518) 2020-06-26 14:51:32 -07:00
BUILD.bazel refactor(language-service): move TS utils to separate file (#36984) 2020-05-11 11:07:50 -07:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
language-service.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json fix(language-service): non-existent module format in package output (#37623) 2020-06-22 10:55:29 -07:00