angular-docs-cn/packages/language-service/ivy/test
Andrew Scott bd34bc9e89 fix(language-service): bound attributes should not break directive matching (#41597)
The language service uses an elements attributes to determine if it
matches a directive in the component scope. We do this by accumulating
all attribute bindings and matching against the selectors for the
available directives. The compiler itself does a similar thing. In
addition, the compiler does not use the value of `BoundAttribute`s to
match directives (cdf1ea1951/packages/compiler/src/render3/view/util.ts (L174-L206)). This commit changes the language
service to also ignore bound attribute values for directive matching.

Fixes https://github.com/angular/vscode-ng-language-service/issues/1278

PR Close #41597
2021-04-13 18:23:49 -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) 2021-04-13 13:51:47 -07:00
definitions_spec.ts refactor(language-service): migrate definitions_spec to new testing package (#40966) 2021-02-24 08:54:34 -08:00
diagnostic_spec.ts fix(language-service): use 'any' instead of failing for inline TCBs (#41513) 2021-04-12 21:02:20 -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