angular-cn/packages/language-service
Keen Yee Liau 63624a2d46 feat(language-service): [Ivy] getSemanticDiagnostics for external templates (#39065)
This PR enables `getSemanticDiagnostics()` to be called on external templates.

Several changes are needed to land this feature:

1. The adapter needs to implement two additional methods:
   a. `readResource()`
       Load the template from snapshot instead of reading from disk
   b. `getModifiedResourceFiles()`
       Inform the compiler that external templates have changed so that the
       loader could invalidate its internal cache.
2. Create `ScriptInfo` for external templates in MockHost.
   Prior to this, MockHost only track changes in TypeScript files. Now it
   needs to create `ScriptInfo` for external templates as well.

For (1), in order to make sure we don't reload the template if it hasn't
changed, we need to keep track of its version. Since the complexity has
increased, the adapter is refactored into its own class.

PR Close #39065
2020-10-08 08:45:54 -07:00
..
bundles build(language-service): remove typescript from ivy bundle (#38088) 2020-07-16 11:04:57 -07:00
common refactor(language-service): Extract common methods from VE and Ivy to new package (#39098) 2020-10-05 16:14:54 -07:00
ivy feat(language-service): [Ivy] getSemanticDiagnostics for external templates (#39065) 2020-10-08 08:45:54 -07:00
src feat(language-service): Add module name to directive quick info (#39121) 2020-10-08 08:45:29 -07:00
test feat(language-service): add quick info for inline templates in ivy (#39060) 2020-10-02 11:01:31 -07:00
BUILD.bazel refactor(language-service): Extract common methods from VE and Ivy to new package (#39098) 2020-10-05 16:14:54 -07:00
build.sh build(language-service): add script to build package locally (#38103) 2020-07-16 16:39:54 -07:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
language-service.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json build(language-service): Remove ls_rollup_bundle (#38086) 2020-07-16 11:04:28 -07:00