Skip to content

Commit deaddb5

Browse files
authored
Ports #17983 (#17986)
* Bind logger function before using * Use lambda isntead of bind
1 parent e3abc12 commit deaddb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/typingsInstaller/typingsInstaller.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ namespace ts.server.typingsInstaller {
150150
}
151151
const discoverTypingsResult = JsTyping.discoverTypings(
152152
this.installTypingHost,
153-
this.log.isEnabled() ? this.log.writeLine : undefined,
153+
this.log.isEnabled() ? (s => this.log.writeLine(s)) : undefined,
154154
req.fileNames,
155155
req.projectRootPath,
156156
this.safeList,

0 commit comments

Comments
 (0)