From 0dc0bc79acc74d1f6f7135fb8ed1e08a6dfd8961 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Thu, 20 Jun 2019 16:12:50 -0700 Subject: [PATCH] Eliminate references to defunct LSHost in comments --- src/compiler/moduleNameResolver.ts | 4 ++-- src/server/project.ts | 2 +- src/testRunner/unittests/tscWatch/resolutionCache.ts | 2 +- .../unittests/tsserver/cachingFileSystemInformation.ts | 4 ++-- src/testRunner/unittests/tsserver/resolutionCache.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index 604b82cce5e29..94f835caff530 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -1487,8 +1487,8 @@ namespace ts { } /** - * LSHost may load a module from a global cache of typings. - * This is the minumum code needed to expose that functionality; the rest is in LSHost. + * A host may load a module from a global cache of typings. + * This is the minumum code needed to expose that functionality; the rest is in the host. */ /* @internal */ export function loadModuleFromGlobalCache(moduleName: string, projectName: string | undefined, compilerOptions: CompilerOptions, host: ModuleResolutionHost, globalCache: string): ResolvedModuleWithFailedLookupLocations { diff --git a/src/server/project.ts b/src/server/project.ts index a1a43a430f104..d1605e22d1d1f 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -952,7 +952,7 @@ namespace ts.server { this.externalFiles = this.getExternalFiles(); enumerateInsertsAndDeletes(this.externalFiles, oldExternalFiles, getStringComparer(!this.useCaseSensitiveFileNames()), // Ensure a ScriptInfo is created for new external files. This is performed indirectly - // by the LSHost for files in the program when the program is retrieved above but + // by the host for files in the program when the program is retrieved above but // the program doesn't contain external files so this must be done explicitly. inserted => { const scriptInfo = this.projectService.getOrCreateScriptInfoNotOpenedByClient(inserted, this.currentDirectory, this.directoryStructureHost)!; diff --git a/src/testRunner/unittests/tscWatch/resolutionCache.ts b/src/testRunner/unittests/tscWatch/resolutionCache.ts index b29fde85697ba..802b9c5bc523e 100644 --- a/src/testRunner/unittests/tscWatch/resolutionCache.ts +++ b/src/testRunner/unittests/tscWatch/resolutionCache.ts @@ -54,7 +54,7 @@ namespace ts.tscWatch { root.content = `import {x} from "f2"`; host.reloadFS(files); - // trigger synchronization to make sure that LSHost will try to find 'f2' module on disk + // trigger synchronization to make sure that system will try to find 'f2' module on disk host.runQueuedTimeoutCallbacks(); // ensure file has correct number of errors after edit diff --git a/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts b/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts index 53a1cb4e4215d..688c8c49ebe89 100644 --- a/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts +++ b/src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts @@ -131,10 +131,10 @@ namespace ts.projectSystem { verifyImportedDiagnostics(); callsTrackingHost.verifyNoHostCalls(); - // trigger synchronization to make sure that LSHost will try to find 'f2' module on disk + // trigger synchronization to make sure that the host will try to find 'f2' module on disk editContent(`import {x} from "f2"`); try { - // trigger synchronization to make sure that LSHost will try to find 'f2' module on disk + // trigger synchronization to make sure that the host will try to find 'f2' module on disk verifyImportedDiagnostics(); assert.isTrue(false, `should not find file '${imported.path}'`); } diff --git a/src/testRunner/unittests/tsserver/resolutionCache.ts b/src/testRunner/unittests/tsserver/resolutionCache.ts index 441146ed33d73..e9be75b90c10b 100644 --- a/src/testRunner/unittests/tsserver/resolutionCache.ts +++ b/src/testRunner/unittests/tsserver/resolutionCache.ts @@ -5,7 +5,7 @@ namespace ts.projectSystem { return resolutionTrace; } - describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem extra resolution pass in lshost", () => { + describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem extra resolution pass in server host", () => { it("can load typings that are proper modules", () => { const file1 = { path: "/a/b/app.js",