Skip to content

Commit 4bbd918

Browse files
committed
Adding version to logs
1 parent 76efe2c commit 4bbd918

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

out/notebooks/spl2/initializer.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ export class Spl2ClientServer {
192192
];
193193
this.serverProcess = child_process.spawn(this.javaPath, javaArgs);
194194
if (!this.serverProcess || !this.serverProcess.pid) {
195-
reject(`Launching server with ${this.javaPath} ${javaArgs.join(' ')} failed.`);
195+
reject(`Launching language server v${this.lspVersion} with ${this.javaPath} ${javaArgs.join(' ')} failed.`);
196196
return;
197197
} else {
198-
console.log(`SPL2 Language Server launched with pid: ${this.serverProcess.pid} and listening on port: ${this.lspPort}`);
198+
console.log(`SPL2 Language Server v${this.lspVersion} launched with pid: ${this.serverProcess.pid} and listening on port: ${this.lspPort}`);
199199
}
200200
this.serverProcess.stderr.on('data', stderr => {
201201
console.warn(`[SPL2 Server]: ${stderr}`);
@@ -218,7 +218,7 @@ export class Spl2ClientServer {
218218
console.log(`[SPL2 Server]: ${stdout}`);
219219
const lspLog: LSPLog = JSON.parse(stdout);
220220
if (lspLog.message.includes('started listening on port')) {
221-
console.log('SPL2 Server is up, starting client...');
221+
console.log(`SPL2 Server v${this.lspVersion} is up, starting client...`);
222222
// Ready for client
223223
this.socket = new Socket();
224224

0 commit comments

Comments
 (0)