diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-03-29 20:00:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-29 20:00:58 +0000 |
commit | 524e451bfbd36d3f5a00a16a7115b31b56805f10 (patch) | |
tree | 4c9e846e7ec4e840a2f6470bcefdecf519a1ff27 /cli/tsc/99_main_compiler.js | |
parent | c53b7206566131b8e0fe78f0f8ec3dbb0658e71f (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.js | 13 |
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, |