angular-cn/packages/language-service/ivy
Zach Arend fe5bf7f53f fix(compiler-cli): autocomplete literal types in templates. (#41456) (#41645)
This adds string literals, number literals, `true`, `false`, `null` and
`undefined` to autocomplete results in templates.

For example, when completing an input of union type.

Component: `@Input('input') input!: 'a'|'b'|null;`
Template: `[input]="|"`

Provide `'a'`, `'b'`, and `null` as autocompletion entries.

Previously we did not include literal types because we only included
results from the component context (`ctx.`) and the template scope.

This is the second attempt at this. The first attempt is in
1d12c50f63 and it was reverted in 75f881e078150b0d095f2c54a916fc67a10444f6.

PR Close #41645
2021-04-16 08:54:27 -07:00
..
test fix(compiler-cli): autocomplete literal types in templates. (#41456) (#41645) 2021-04-16 08:54:27 -07:00
testing feat(language-service): implement signature help (#41581) 2021-04-13 12:39:17 -07:00
BUILD.bazel fix(compiler-cli): ensure the compiler tracks `ts.Program`s correctly (#41291) 2021-04-08 10:20:38 -07:00
adapters.ts fix(language-service): resolve to the pre-compiled style when compiled css url is provided (#41538) 2021-04-14 09:15:00 -07:00
attribute_completions.ts fix(language-service): Only provide Angular property completions in templates (#41278) 2021-04-01 11:37:30 -07:00
compiler_factory.ts refactor(compiler-cli): replace the `IncrementalDriver` with a new design (#41475) 2021-04-13 13:05:35 -07:00
completions.ts fix(compiler-cli): autocomplete literal types in templates. (#41456) (#41645) 2021-04-16 08:54:27 -07:00
definitions.ts fix(compiler-cli): ensure the compiler tracks `ts.Program`s correctly (#41291) 2021-04-08 10:20:38 -07:00
display_parts.ts feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00
language_service.ts fix(language-service): use script versions for incremental compilations (#41475) 2021-04-13 13:05:36 -07:00
quick_info.ts fix(compiler-cli): ensure the compiler tracks `ts.Program`s correctly (#41291) 2021-04-08 10:20:38 -07:00
references.ts fix(compiler-cli): ensure the compiler tracks `ts.Program`s correctly (#41291) 2021-04-08 10:20:38 -07:00
signature_help.ts feat(language-service): implement signature help (#41581) 2021-04-13 12:39:17 -07:00
template_target.ts refactor(language-service): specifically identify empty argument positions (#41581) 2021-04-13 12:39:17 -07:00
ts_plugin.ts feat(language-service): implement signature help (#41581) 2021-04-13 12:39:17 -07:00
ts_utils.ts perf(language-service): short-circuit LS operations (#40946) 2021-02-22 13:19:09 -08:00
utils.ts fix(language-service): bound attributes should not break directive matching (#41597) 2021-04-13 18:23:49 -07:00