angular-cn/packages/language-service/ivy/test
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
..
legacy refactor(language-service): specifically identify empty argument positions (#41581) 2021-04-13 12:39:17 -07:00
BUILD.bazel fix(language-service): show suggestion when type inference is suboptimal (#41072) 2021-03-23 09:39:19 -07:00
adapters_spec.ts fix(language-service): LSParseConfigHost.resolve should not concat abs paths (#40242) 2021-01-06 10:54:40 -08:00
compiler_spec.ts test(language-service): Add test to expose bug caused by source file change (#41500) 2021-04-09 12:22:31 -07:00
completions_spec.ts fix(compiler-cli): autocomplete literal types in templates. (#41456) (#41645) 2021-04-16 08:54:27 -07:00
definitions_spec.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
diagnostic_spec.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
gettcb_spec.ts refactor(language-service): migrate gettcb_spec to new testing package (#40966) 2021-02-24 08:54:34 -08:00
quick_info_spec.ts fix(language-service): bound attributes should not break directive matching (#41597) 2021-04-13 18:23:49 -07:00
references_spec.ts fix(language-service): only provide template results on reference requests (#41041) 2021-03-03 09:39:11 -08:00
signature_help_spec.ts feat(language-service): implement signature help (#41581) 2021-04-13 12:39:17 -07:00
type_definitions_spec.ts test(language-service): remove circular dependency (#40966) 2021-02-24 08:54:35 -08:00