Skip to content

Commit 87c5945

Browse files
Revert unnecessary harness changes
1 parent a21f73f commit 87c5945

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/harness/unittests/tsserverProjectSystem.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,9 @@ namespace ts.projectSystem {
243243
}
244244
}
245245

246-
export function createSession(host: TestServerHost, opts: Partial<server.SessionOptions> = {}) {
246+
export function createSession(host: server.ServerHost, opts: Partial<server.SessionOptions> = {}) {
247247
if (opts.typingsInstaller === undefined) {
248-
const globalTypingsCacheLocation = "/a/data";
249-
host.ensureFileOrFolder({ path: globalTypingsCacheLocation });
250-
opts.typingsInstaller = new TestTypingsInstaller(globalTypingsCacheLocation, /*throttleLimit*/ 5, host);
248+
opts.typingsInstaller = new TestTypingsInstaller("/a/data", /*throttleLimit*/ 5, host);
251249
}
252250

253251
if (opts.eventHandler !== undefined) {

src/harness/unittests/typingsInstaller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ namespace ts.projectSystem {
3434
}
3535

3636
class Installer extends TestTypingsInstaller {
37-
constructor(host: TestServerHost, p?: InstallerParams, log?: TI.Log) {
38-
host.ensureFileOrFolder({ path: (p && p.globalTypingsCacheLocation) || "/a/data" });
37+
constructor(host: server.ServerHost, p?: InstallerParams, log?: TI.Log) {
3938
super(
4039
(p && p.globalTypingsCacheLocation) || "/a/data",
4140
(p && p.throttleLimit) || 5,

0 commit comments

Comments
 (0)