Skip to content

Commit 8ed4e66

Browse files
mjbvzmhegazy
authored andcommitted
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
1 parent 3f577b8 commit 8ed4e66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/server/server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,10 @@ namespace ts.server {
979979
allowLocalPluginLoads
980980
};
981981

982+
logger.info(`Starting TS Server`);
983+
logger.info(`Version: ${versionMajorMinor}`);
984+
logger.info(`Arguments: ${process.argv.join(" ")}`);
985+
982986
const ioSession = new IOSession(options);
983987
process.on("uncaughtException", err => {
984988
ioSession.logError(err, "unknown");

0 commit comments

Comments
 (0)