add missing methods

This commit is contained in:
Vladimir Matveev
2016-08-18 15:36:15 -07:00
parent 27deb313cc
commit 37f26cba57
4 changed files with 9 additions and 2 deletions

View File

@@ -646,6 +646,10 @@ namespace Harness.LanguageService {
return true;
}
getLogFileName(): string {
return undefined;
}
hasLevel() {
return false;
}

View File

@@ -81,7 +81,8 @@ namespace ts {
info: (s: string) => { },
startGroup: () => { },
endGroup: () => { },
msg: (s: string, type?: string) => { }
msg: (s: string, type?: string) => { },
getLogFileName: (): string => undefined
};
const projectService = new server.ProjectService(serverHost, logger, { isCancellationRequested: () => false }, /*useOneInferredProject*/ false, /*typingsInstaller*/ undefined);

View File

@@ -36,6 +36,7 @@ namespace ts.server {
startGroup(): void {},
endGroup(): void {},
msg(s: string, type?: string): void {},
getLogFileName: (): string => undefined
};
describe("the Session class", () => {

View File

@@ -14,7 +14,8 @@ namespace ts {
info: () => void 0,
startGroup: () => void 0,
endGroup: () => void 0,
msg: () => void 0
msg: () => void 0,
getLogFileName: (): string => undefined
};
const nullCancellationToken: HostCancellationToken = {