feat(language-service): [ivy] wrap ngtsc to handle typecheck files (#36930)
This commit adds a Compiler interface that wraps the actual ngtsc compiler. The language-service specific compiler manages multiple typecheck files using the Project interface, creating and adding ScriptInfos as necessary. This commit also adds `overrideInlineTemplate()` method to the mock service so that we could test the Compiler diagnostics feature. PR Close #36930
This commit is contained in:

committed by
Misko Hevery

parent
82a3bd5e8b
commit
1142c378fd
15
packages/language-service/ivy/compiler/BUILD.bazel
Normal file
15
packages/language-service/ivy/compiler/BUILD.bazel
Normal file
@ -0,0 +1,15 @@
|
||||
load("//tools:defaults.bzl", "ts_library")
|
||||
|
||||
package(default_visibility = ["//packages/language-service/ivy:__pkg__"])
|
||||
|
||||
ts_library(
|
||||
name = "compiler",
|
||||
srcs = glob(["*.ts"]),
|
||||
deps = [
|
||||
"//packages/compiler-cli",
|
||||
"//packages/compiler-cli/src/ngtsc/core",
|
||||
"//packages/compiler-cli/src/ngtsc/file_system",
|
||||
"//packages/compiler-cli/src/ngtsc/typecheck",
|
||||
"@npm//typescript",
|
||||
],
|
||||
)
|
Reference in New Issue
Block a user