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 |
||
---|---|---|
.. | ||
bundles | ||
common | ||
ivy | ||
src | ||
test | ||
BUILD.bazel | ||
build.sh | ||
index.ts | ||
language-service.ts | ||
package.json |