mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 15:44:16 -06:00
Revert unnecessary harness changes
This commit is contained in:
parent
a21f73f862
commit
87c59450aa
@ -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) {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user