Log TS Server version and process args (#20847)

* Print TS Server version and args in logs

Fixes #18867

Adds basic logging of the version of tsserver being run and the full command line arguments used to run it

* Don't check log level for logging versions/args
This commit is contained in:
Matt Bierner
2018-01-04 15:18:41 -08:00
committed by Mohamed Hegazy
parent 3f577b8617
commit 8ed4e666e8

View File

@@ -979,6 +979,10 @@ namespace ts.server {
allowLocalPluginLoads
};
logger.info(`Starting TS Server`);
logger.info(`Version: ${versionMajorMinor}`);
logger.info(`Arguments: ${process.argv.join(" ")}`);
const ioSession = new IOSession(options);
process.on("uncaughtException", err => {
ioSession.logError(err, "unknown");