8f1317f06f
This commit fixes a bug in which a new Ivy Compiler is created every time language service receives a new request. This is not needed if the `ts.Program` has not changed. A new class `CompilerFactory` is created to manage Compiler lifecycle and keep track of template changes so that it knows when to override them. With this change, we no longer need the method `getModifiedResourceFile()` on the adapter. Instead, we call `overrideComponentTemplate` on the template type checker. This commit also changes the incremental build strategy from `PatchedIncrementalBuildStrategy` to `TrackedIncrementalBuildStrategy`. PR Close #39231 |
||
---|---|---|
.. | ||
test | ||
BUILD.bazel | ||
compiler_factory.ts | ||
definitions.ts | ||
hybrid_visitor.ts | ||
language_service.ts | ||
language_service_adapter.ts | ||
quick_info.ts | ||
ts_plugin.ts | ||
utils.ts |