Bind logger function before using (#17983)

* Bind logger function before using

* Use lambda isntead of bind
This commit is contained in:
Mohamed Hegazy
2017-08-23 12:35:34 -07:00
committed by GitHub
parent 34e42097e4
commit 1420fbc2d4

View File

@@ -149,7 +149,7 @@ namespace ts.server.typingsInstaller {
}
const discoverTypingsResult = JsTyping.discoverTypings(
this.installTypingHost,
this.log.isEnabled() ? this.log.writeLine : undefined,
this.log.isEnabled() ? (s => this.log.writeLine(s)) : undefined,
req.fileNames,
req.projectRootPath,
this.safeList,