* Bind logger function before using

* Use lambda isntead of bind
This commit is contained in:
Mohamed Hegazy authored and GitHub committed 2017-08-23 13:01:14 -07:00
1 parent e3abc12209
commit deaddb5595
1 file changed
+1 -1
@@ -150,7 +150,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,