mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-11 06:02:53 -05:00
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:
committed by
Mohamed Hegazy
parent
3f577b8617
commit
8ed4e666e8
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user