summaryrefslogtreecommitdiff
path: root/cli/tsc/99_main_compiler.js
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-03-29 20:00:58 +0000
committerGitHub <noreply@github.com>2024-03-29 20:00:58 +0000
commit524e451bfbd36d3f5a00a16a7115b31b56805f10 (patch)
tree4c9e846e7ec4e840a2f6470bcefdecf519a1ff27 /cli/tsc/99_main_compiler.js
parentc53b7206566131b8e0fe78f0f8ec3dbb0658e71f (diff)
fix(lsp): implement missing ts server host apis (#23131)
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
-rw-r--r--cli/tsc/99_main_compiler.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js
index e47300491..bfac52cce 100644
--- a/cli/tsc/99_main_compiler.js
+++ b/cli/tsc/99_main_compiler.js
@@ -544,6 +544,19 @@ delete Object.prototype.__proto__;
getGlobalTypingsCacheLocation() {
return undefined;
},
+ // @ts-ignore Undocumented method.
+ toPath(fileName) {
+ // @ts-ignore Undocumented function.
+ ts.toPath(
+ fileName,
+ this.getCurrentDirectory(),
+ this.getCanonicalFileName(fileName),
+ );
+ },
+ // @ts-ignore Undocumented method.
+ watchNodeModulesForPackageJsonChanges() {
+ return { close() {} };
+ },
getSourceFile(
specifier,
languageVersion,