angular-docs-cn/packages/language-service/ivy
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
..
test fix(language-service): bound attributes should not break directive matching (#41597) 2021-04-13 18:23:49 -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 perf(language-service): update NgCompiler via resource-only path when able (#40585) 2021-02-02 16:24:56 -08: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) 2021-04-13 13:51:47 -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