Skip to content

Commit 37b20f6

Browse files
authored
Eliminate references to defunct LSHost in comments (#32018)
1 parent a97c18f commit 37b20f6

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/compiler/moduleNameResolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,8 +1487,8 @@ namespace ts {
14871487
}
14881488

14891489
/**
1490-
* LSHost may load a module from a global cache of typings.
1491-
* This is the minumum code needed to expose that functionality; the rest is in LSHost.
1490+
* A host may load a module from a global cache of typings.
1491+
* This is the minumum code needed to expose that functionality; the rest is in the host.
14921492
*/
14931493
/* @internal */
14941494
export function loadModuleFromGlobalCache(moduleName: string, projectName: string | undefined, compilerOptions: CompilerOptions, host: ModuleResolutionHost, globalCache: string): ResolvedModuleWithFailedLookupLocations {

src/server/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ namespace ts.server {
952952
this.externalFiles = this.getExternalFiles();
953953
enumerateInsertsAndDeletes<string, string>(this.externalFiles, oldExternalFiles, getStringComparer(!this.useCaseSensitiveFileNames()),
954954
// Ensure a ScriptInfo is created for new external files. This is performed indirectly
955-
// by the LSHost for files in the program when the program is retrieved above but
955+
// by the host for files in the program when the program is retrieved above but
956956
// the program doesn't contain external files so this must be done explicitly.
957957
inserted => {
958958
const scriptInfo = this.projectService.getOrCreateScriptInfoNotOpenedByClient(inserted, this.currentDirectory, this.directoryStructureHost)!;

src/testRunner/unittests/tscWatch/resolutionCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ namespace ts.tscWatch {
5454
root.content = `import {x} from "f2"`;
5555
host.reloadFS(files);
5656

57-
// trigger synchronization to make sure that LSHost will try to find 'f2' module on disk
57+
// trigger synchronization to make sure that system will try to find 'f2' module on disk
5858
host.runQueuedTimeoutCallbacks();
5959

6060
// ensure file has correct number of errors after edit

src/testRunner/unittests/tsserver/cachingFileSystemInformation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ namespace ts.projectSystem {
131131
verifyImportedDiagnostics();
132132
callsTrackingHost.verifyNoHostCalls();
133133

134-
// trigger synchronization to make sure that LSHost will try to find 'f2' module on disk
134+
// trigger synchronization to make sure that the host will try to find 'f2' module on disk
135135
editContent(`import {x} from "f2"`);
136136
try {
137-
// trigger synchronization to make sure that LSHost will try to find 'f2' module on disk
137+
// trigger synchronization to make sure that the host will try to find 'f2' module on disk
138138
verifyImportedDiagnostics();
139139
assert.isTrue(false, `should not find file '${imported.path}'`);
140140
}

src/testRunner/unittests/tsserver/resolutionCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace ts.projectSystem {
55
return resolutionTrace;
66
}
77

8-
describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem extra resolution pass in lshost", () => {
8+
describe("unittests:: tsserver:: resolutionCache:: tsserverProjectSystem extra resolution pass in server host", () => {
99
it("can load typings that are proper modules", () => {
1010
const file1 = {
1111
path: "/a/b/app.js",

0 commit comments

Comments
 (0)