mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-10 18:04:18 -05:00
Bind logger function before using (#17983)
* Bind logger function before using * Use lambda isntead of bind
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user