angular-cn/packages/language-service/ivy/test
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
..
legacy fix(language-service): Always attempt HTML AST to template AST conversion for LS (#41068) 2021-03-03 21:13:58 +00:00
BUILD.bazel test(language-service): update compiler_spec to use the new testing env (#40679) 2021-02-22 08:40:41 -08: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 fix(language-service): don't show external template diagnostics in ts files (#41070) 2021-03-03 21:40:50 +00:00
completions_spec.ts fix(language-service): Only provide dom completions for inline templates (#41078) 2021-03-04 14:51:06 -08: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): don't show external template diagnostics in ts files (#41070) 2021-03-03 21:40:50 +00: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(compiler-cli): add `useInlining` option to type check config (#41043) 2021-03-18 09:52:47 -07:00
references_spec.ts fix(language-service): only provide template results on reference requests (#41041) 2021-03-03 09:39:11 -08:00
type_definitions_spec.ts test(language-service): remove circular dependency (#40966) 2021-02-24 08:54:35 -08:00