mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-16 06:28:12 -05:00
Log response
This commit is contained in:
@@ -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