diff --git a/cli/tsc/00_typescript.js b/cli/tsc/00_typescript.js index 7e7181b6b2..ee917d6ac7 100644 --- a/cli/tsc/00_typescript.js +++ b/cli/tsc/00_typescript.js @@ -125170,14 +125170,6 @@ function changeCompilerHostLikeToUseCache(host, toPath3, getSourceFile) { } return sourceFile; } : void 0; - host.fileExists = (fileName) => { - const key = toPath3(fileName); - const value = fileExistsCache.get(key); - if (value !== void 0) return value; - const newValue = originalFileExists.call(host, fileName); - fileExistsCache.set(key, !!newValue); - return newValue; - }; if (originalWriteFile) { host.writeFile = (fileName, data, ...rest) => { const key = toPath3(fileName); @@ -165768,10 +165760,6 @@ function getDefaultCommitCharacters(isNewIdentifierLocation) { return allCommitCharacters; } function getCompletionsAtPosition(host, program, log, sourceFile, position, preferences, triggerCharacter, completionKind, cancellationToken, formatContext, includeSymbol = false) { - return spanned("Tsc::getCompletionsAtPosition", () => getCompletionsAtPositionInner(host, program, log, sourceFile, position, preferences, triggerCharacter, completionKind, cancellationToken, formatContext, includeSymbol)); -} - -function getCompletionsAtPositionInner(host, program, log, sourceFile, position, preferences, triggerCharacter, completionKind, cancellationToken, formatContext, includeSymbol = false) { var _a; const { previousToken } = getRelevantTokens(position, sourceFile); if (triggerCharacter && !isInString(sourceFile, position, previousToken) && !isValidTrigger(sourceFile, triggerCharacter, previousToken, position)) { diff --git a/cli/tsc/97_ts_host.js b/cli/tsc/97_ts_host.js index cabcc1ffac..4705d989ef 100644 --- a/cli/tsc/97_ts_host.js +++ b/cli/tsc/97_ts_host.js @@ -732,6 +732,12 @@ const hostImpl = { } return scriptSnapshot; }, + getNearestAncestorDirectoryWithPackageJson() { + // always return `undefined` in order to short-circuit + // a codepath in the TypeScript compiler that always + // ends up returning `undefined` in Deno anyway + return undefined; + }, }; // these host methods are super noisy (often thousands of calls per TSC request)