Revert unnecessary harness changes

This commit is contained in:
uniqueiniquity 2018-01-11 11:29:08 -08:00
parent a21f73f862
commit 87c59450aa
2 changed files with 3 additions and 6 deletions

View File

@ -243,11 +243,9 @@ namespace ts.projectSystem {
}
}
export function createSession(host: TestServerHost, opts: Partial<server.SessionOptions> = {}) {
export function createSession(host: server.ServerHost, opts: Partial<server.SessionOptions> = {}) {
if (opts.typingsInstaller === undefined) {
const globalTypingsCacheLocation = "/a/data";
host.ensureFileOrFolder({ path: globalTypingsCacheLocation });
opts.typingsInstaller = new TestTypingsInstaller(globalTypingsCacheLocation, /*throttleLimit*/ 5, host);
opts.typingsInstaller = new TestTypingsInstaller("/a/data", /*throttleLimit*/ 5, host);
}
if (opts.eventHandler !== undefined) {

View File

@ -34,8 +34,7 @@ namespace ts.projectSystem {
}
class Installer extends TestTypingsInstaller {
constructor(host: TestServerHost, p?: InstallerParams, log?: TI.Log) {
host.ensureFileOrFolder({ path: (p && p.globalTypingsCacheLocation) || "/a/data" });
constructor(host: server.ServerHost, p?: InstallerParams, log?: TI.Log) {
super(
(p && p.globalTypingsCacheLocation) || "/a/data",
(p && p.throttleLimit) || 5,