mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Log response
This commit is contained in:
1 parent
2359c8398e
commit
f29b2e7732
1 file changed
+9
@@ -248,6 +248,15 @@ namespace ts.server {
|
||||
}
|
||||
|
||||
public send(msg: protocol.Message) {
|
||||
if (msg.type === "event" && !this.canUseEvents) {
|
||||
if (this.logger.hasLevel(LogLevel.verbose)) {
|
||||
this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(msg)}`);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (this.logger.hasLevel(LogLevel.verbose)) {
|
||||
logger.info(`${msg.type}:${indent(JSON.stringify(msg))}`);
|
||||
}
|
||||
postMessage(msg);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user