angular-cn/packages/language-service/ivy
Zach Arend 09aefd2904 fix(compiler-cli): add `useInlining` option to type check config (#41043)
This commit fixes the behavior when creating a type constructor for a directive when the following
conditions are met.
1. The directive has bound generic parameters.
2. Inlining is not available. (This happens for language service compiles).

Previously, we would throw an error saying 'Inlining is not supported in this environment.' The
compiler would stop type checking, and the developer could lose out on getting errors after the
compiler gives up.

This commit adds a useInlineTypeConstructors to the type check config. When set to false, we use
`any` type for bound generic parameters to avoid crashing. When set to true, we inline the type
constructor when inlining is required.

Addresses #40963

PR Close #41043
2021-03-18 09:52:47 -07:00
..
test fix(compiler-cli): add `useInlining` option to type check config (#41043) 2021-03-18 09:52:47 -07:00
testing fix(language-service): Add plugin option to force strictTemplates (#41062) 2021-03-03 09:48:06 -08:00
BUILD.bazel refactor(language-service): pull out interfaces on package toplevel (#40621) 2021-02-03 09:19:54 -08: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 dom completions for inline templates (#41078) 2021-03-04 14:51:06 -08:00
compiler_factory.ts perf(language-service): update NgCompiler via resource-only path when able (#40585) 2021-02-02 16:24:56 -08:00
completions.ts fix(language-service): Only provide dom completions for inline templates (#41078) 2021-03-04 14:51:06 -08:00
definitions.ts refactor(compiler-cli): remove event output helper from TCB (#40738) 2021-02-10 11:06:35 -08: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): Only provide dom completions for inline templates (#41078) 2021-03-04 14:51:06 -08:00
quick_info.ts refactor(compiler-cli): Enable pipe information when checkTypeOfPipes=false (#39555) 2020-12-11 16:19:15 -08:00
references.ts fix(language-service): only provide template results on reference requests (#41041) 2021-03-03 09:39:11 -08:00
template_target.ts refactor(language-service): Have TemplateTarget recognize two way bindings (#40185) 2021-01-07 13:18:38 -08:00
ts_plugin.ts fix(language-service): Add plugin option to force strictTemplates (#41062) 2021-03-03 09:48:06 -08: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): fix go to definition for template variables and references (#40455) 2021-01-19 13:03:14 -08:00