diff --git a/lib/tsc.js b/lib/tsc.js index 274f67b5d0a3eba1c4472c8068e86dafcd8bb8d8..d2f4724a9b64bd6dc256c00c796dfc25f9a57f99 100644 --- a/lib/tsc.js +++ b/lib/tsc.js @@ -107804,7 +107804,7 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host) { } function fileOrDirectoryExistsUsingSource(fileOrDirectory, isFile) { var _a2, _b; - const fileOrDirectoryExistsUsingSource2 = isFile ? (file) => fileExistsIfProjectReferenceDts(file) : (dir) => directoryExistsIfProjectReferenceDeclDir(dir); + const fileOrDirectoryExistsUsingSource2 = isFile ? fileExistsIfProjectReferenceDts : directoryExistsIfProjectReferenceDeclDir; const result = fileOrDirectoryExistsUsingSource2(fileOrDirectory); if (result !== void 0) return result; diff --git a/lib/tsserver.js b/lib/tsserver.js index 19f90ccd718063b95f99416b1214845517df3dcf..4a4512746886eae0db323c97ff842ed05b938b58 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -110146,7 +110146,7 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host) { } function fileOrDirectoryExistsUsingSource(fileOrDirectory, isFile) { var _a2, _b; - const fileOrDirectoryExistsUsingSource2 = isFile ? (file) => fileExistsIfProjectReferenceDts(file) : (dir) => directoryExistsIfProjectReferenceDeclDir(dir); + const fileOrDirectoryExistsUsingSource2 = isFile ? fileExistsIfProjectReferenceDts : directoryExistsIfProjectReferenceDeclDir; const result = fileOrDirectoryExistsUsingSource2(fileOrDirectory); if (result !== void 0) return result; diff --git a/lib/tsserverlibrary.js b/lib/tsserverlibrary.js index 12708fe2e45fbca101912661c14ee66a7c918a86..75f0fbc67516685e4a27af71bf3897c57148ad66 100644 --- a/lib/tsserverlibrary.js +++ b/lib/tsserverlibrary.js @@ -110048,7 +110048,7 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host) { } function fileOrDirectoryExistsUsingSource(fileOrDirectory, isFile) { var _a2, _b; - const fileOrDirectoryExistsUsingSource2 = isFile ? (file) => fileExistsIfProjectReferenceDts(file) : (dir) => directoryExistsIfProjectReferenceDeclDir(dir); + const fileOrDirectoryExistsUsingSource2 = isFile ? fileExistsIfProjectReferenceDts : directoryExistsIfProjectReferenceDeclDir; const result = fileOrDirectoryExistsUsingSource2(fileOrDirectory); if (result !== void 0) return result; diff --git a/lib/typescript.js b/lib/typescript.js index 5ed4b520b14c61c94239f298b2722a266f639f59..d4a8c5c9b8b3a0ddaf09b8f02ca1c3ef768da04e 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -110410,7 +110410,7 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host) { } function fileOrDirectoryExistsUsingSource(fileOrDirectory, isFile) { var _a2, _b; - const fileOrDirectoryExistsUsingSource2 = isFile ? (file) => fileExistsIfProjectReferenceDts(file) : (dir) => directoryExistsIfProjectReferenceDeclDir(dir); + const fileOrDirectoryExistsUsingSource2 = isFile ? fileExistsIfProjectReferenceDts : directoryExistsIfProjectReferenceDeclDir; const result = fileOrDirectoryExistsUsingSource2(fileOrDirectory); if (result !== void 0) return result; diff --git a/src/compiler/program.ts b/src/compiler/program.ts index d1ff3495e006029f313abe7eca8197a9e75b693e..f03ca96b1832529cf0ee8a5dbab1b92c28ef0930 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -4463,8 +4463,8 @@ function updateHostForUseSourceOfProjectReferenceRedirect(host: HostForUseSource function fileOrDirectoryExistsUsingSource(fileOrDirectory: string, isFile: boolean): boolean { const fileOrDirectoryExistsUsingSource = isFile ? - (file: string) => fileExistsIfProjectReferenceDts(file) : - (dir: string) => directoryExistsIfProjectReferenceDeclDir(dir); + fileExistsIfProjectReferenceDts : + directoryExistsIfProjectReferenceDeclDir; // Check current directory or file const result = fileOrDirectoryExistsUsingSource(fileOrDirectory); if (result !== undefined) return result;