fix(compiler-cli): autocomplete literal types in templates by zarend · Pull Request #41645 · angular/angular
zarend
added
action: cleanup
labels
Apr 15, 2021
zarend
added
action: review
and removed action: cleanup
The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviewslabels
Apr 15, 2021
zarend
added
action: merge
and removed action: review
The PR is still awaiting reviews from at least one requested reviewerlabels
Apr 15, 2021
AndrewKushnir
added
the
action: cleanup
label
Apr 15, 2021…41456) 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 1d12c50 and it was reverted in 75f881e.
AndrewKushnir
changed the title
Revert "Revert "fix(compiler-cli): autocomplete literal types in temp…
fix(compiler-cli): autocomplete literal types in templates
AndrewKushnir pushed a commit that referenced this pull request
Apr 16, 2021…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 1d12c50 and it was reverted in 75f881e. PR Close #41645
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters