angular-docs-cn/packages/language-service/ivy
Keen Yee Liau e8896b9de3 fix(language-service): [ivy] do not retrieve ts.Program at startup (#38120)
This commit removes compiler instantiation at startup.
This is because the constructor is invoked during the plugin loading phase,
in which the project has not been completely loaded.

Retrieving `ts.Program` at startup will trigger an `updateGraph` operation,
which could only be called after the Project has loaded completely.
Without this change, the Ivy LS cannot be loaded as a tsserver plugin.

Note that the whole `Compiler` class is temporary, so changes made there are
only for development. Once we have proper integration with ngtsc the
`Compiler` class would be removed.

PR Close #38120
2020-07-30 16:54:19 -07:00
..
compiler fix(language-service): [ivy] do not retrieve ts.Program at startup (#38120) 2020-07-30 16:54:19 -07:00
test test(language-service): disable ivy ls tests on CI (#37348) 2020-06-01 17:18:51 -04:00
BUILD.bazel feat(language-service): [ivy] wrap ngtsc to handle typecheck files (#36930) 2020-05-08 14:42:11 -07:00
language_service.ts fix(language-service): [ivy] do not retrieve ts.Program at startup (#38120) 2020-07-30 16:54:19 -07:00
ts_plugin.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00