We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04c7ed commit f8b7a05Copy full SHA for f8b7a05
src/tsserver/server.ts
@@ -975,7 +975,7 @@ namespace ts.server {
975
// the log. This is so that language service plugins which use
976
// console.log don't break the message passing between tsserver
977
// and the client
978
- console.log = (msg) => logger.msg(msg, Msg.Info);
979
- console.warn = (msg) => logger.msg(msg, Msg.Err);
980
- console.error = (msg) => logger.msg(msg, Msg.Err);
+ console.log = (...args) => logger.msg(args.length === 1 ? args[0] : args.join(", "), Msg.Info);
+ console.warn = (...args) => logger.msg(args.length === 1 ? args[0] : args.join(", "), Msg.Err);
+ console.error = (...args) => logger.msg(args.length === 1 ? args[0] : args.join(", "), Msg.Err);
981
}
0 commit comments