From 3c346c8ea6aa888475c19d512ddd4c247c00b1ea Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 8 Apr 2024 19:45:20 +0100 Subject: perf(lsp): don't pass remote modules as tsc roots (#23259) --- cli/tsc/99_main_compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tsc/99_main_compiler.js') diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index bfac52cce..3408b0f07 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -550,7 +550,7 @@ delete Object.prototype.__proto__; ts.toPath( fileName, this.getCurrentDirectory(), - this.getCanonicalFileName(fileName), + this.getCanonicalFileName.bind(this), ); }, // @ts-ignore Undocumented method. -- cgit v1.2.3