angular-docs-cn/packages/language-service/ivy
JoostK 30c82cd177 fix(compiler-cli): inline type checking instructions no longer prevent incremental reuse (#42759)
Source files that contain directives or components that need an inline
type constructor or inline template type-check block would always be
considered as affected in incremental rebuilds. The inline operations
cause the source file to be updated in the TypeScript program that is
created for template type-checking, which becomes the reuse program
in a subsequent incremental rebuild.

In an incremental rebuild, the source files from the new user program
are compared to those from the reuse program. The updated source files
are not the same as the original source file from the user program, so
the incremental engine would mark the file which needed inline
operations as affected. This prevents incremental reuse for these files,
causing sub-optimal rebuild performance.

This commit attaches the original source file for source files that have
been updated with inline operations, such that the incremental engine
is able to compare source files using the original source file.

Fixes #42543

PR Close #42759
2021-07-07 15:17:25 -07:00
..
test feat(compiler): add support for shorthand property declarations in templates (#42421) 2021-06-21 23:40:47 +00:00
testing ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -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 fix(language-service): resolve to the pre-compiled style when compiled css url is provided (#41538) 2021-04-14 09:15:00 -07: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(language-service): fix autocomplete info display for some cases (#42472) 2021-06-07 12:25:53 -07:00
definitions.ts fix(language-service): 'go to defininition' for objects defined in template (#42559) 2021-06-14 14:13:48 -07:00
display_parts.ts fix(language-service): fix autocomplete info display for some cases (#42472) 2021-06-07 12:25:53 -07:00
language_service.ts fix(compiler-cli): inline type checking instructions no longer prevent incremental reuse (#42759) 2021-07-07 15:17:25 -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_and_rename.ts ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
references_and_rename_utils.ts ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00
signature_help.ts feat(language-service): implement signature help (#41581) 2021-04-13 12:39:17 -07:00
template_target.ts fix(language-service): Use last child end span for parent without close tag (#42554) 2021-06-14 14:10:46 -07:00
ts_plugin.ts feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
ts_utils.ts feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
utils.ts ci: add lint error for files with missing trailing new-line (#42478) 2021-06-04 13:31:03 -07:00