angular/packages/language-service
Zach Arend 296f887383 fix(compiler-cli): autocomplete literal types in templates
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 attmpet is in , then was
reverted in 75f881e078.
2021-04-16 08:56:35 -07:00
..
bundles build(language-service): remove typescript from ivy bundle (#38088) 2020-07-16 11:04:57 -07:00
ivy fix(compiler-cli): autocomplete literal types in templates 2021-04-16 08:56:35 -07:00
src fix(compiler): allow binding to autocomplete property on select and textarea elements (#40928) 2021-03-03 10:00:28 -08:00
test fix(language-service): Paths on Windows should be normalized (#40492) 2021-01-20 08:46:03 -08:00
api.ts fix(language-service): Add plugin option to force strictTemplates (#41063) 2021-03-03 09:54:46 -08:00
BUILD.bazel refactor(language-service): pull out interfaces on package toplevel (#40773) 2021-02-10 10:37:58 -08:00
build.sh build(language-service): install @angular/language-service in root node_modules (#40058) 2020-12-10 13:48:04 -08:00
index.ts refactor(language-service): pull out interfaces on package toplevel (#40773) 2021-02-10 10:37:58 -08:00
package.json build(language-service): Remove ls_rollup_bundle (#38086) 2020-07-16 11:04:28 -07:00