angular-docs-cn/packages/language-service/ivy
Alex Rickabaugh 66378ed0ef feat(language-service): complete attributes on elements (#40032)
This commit adds attribute completion to the Language Service. It completes
from 3 sources:

1. inputs/outputs of directives currently present on the element
2. inputs/outputs/attributes of directives in scope for the element, that
   would become present if the input/output/attribute was added
3. DOM properties and attributes

We distinguish between completion of a property binding (`[foo|]`) and a
completion in an attribute context (`foo|`). For the latter, bindings to
the attribute are offered, as well as a property binding which adds the
square bracket notation.

To determine hypothetical matches (directives which would become present if
a binding is added), directives in scope are scanned and matched against a
hypothetical version of the element which has the attribute.

PR Close #40032
2020-12-14 12:08:41 -08:00
..
test feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00
BUILD.bazel feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00
adapters.ts refactor(language-service): language_service_adapter -> adapters (#39619) 2020-11-17 14:45:09 -08:00
attribute_completions.ts feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00
compiler_factory.ts fix(compiler-cli): track poisoned scopes with a flag (#39923) 2020-12-03 13:42:13 -08:00
completions.ts feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00
definitions.ts refactor(language-service): add context to template target system (#40032) 2020-12-14 12:08:40 -08:00
display_parts.ts feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00
language_service.ts feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00
quick_info.ts refactor(compiler-cli): Enable pipe information when checkTypeOfPipes=false (#39555) 2020-12-11 16:19:15 -08:00
references.ts refactor(language-service): add context to template target system (#40032) 2020-12-14 12:08:40 -08:00
template_target.ts feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00
ts_plugin.ts feat(language-service): implement autocompletion for global properties (Ivy) (#39250) 2020-12-04 10:19:45 -08:00
ts_utils.ts refactor(language-service): Use compiler APIs in Ivy to get definitions for external resources (#39476) 2020-11-06 09:17:33 -08:00
utils.ts feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00