Skip to content

Commit ab51582

Browse files
committed
(maint) Additional Editor Service invocation logging
Previously there wasn't a way to know the actual command line used to start the Editor Services. This commit modifies the stdio and tcp handlers to emit a debug log entry with the calculated command and arguements used to start the editor service.
1 parent f7372e6 commit ab51582

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/handlers/stdio.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class StdioConnectionHandler extends ConnectionHandler {
5252
this.logger.debug(logPrefix + 'Using environment variable RUBYLIB=' + exe.options.env.RUBYLIB);
5353
this.logger.debug(logPrefix + 'Using environment variable PATH=' + exe.options.env.PATH);
5454
this.logger.debug(logPrefix + 'Using environment variable RUBYOPT=' + exe.options.env.RUBYOPT);
55+
this.logger.debug(logPrefix + 'Editor Services will invoke with: ' + exe.command + ' ' + exe.args.join(' '));
5556

5657
let serverOptions: ServerOptions = {
5758
run: exe,

src/handlers/tcp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export class TcpConnectionHandler extends ConnectionHandler {
5050
let spawn_options: cp.SpawnOptions = {};
5151
let convertedOptions = Object.assign(spawn_options, exe.options);
5252

53+
this.logger.debug(logPrefix + 'Editor Services will invoke with: ' + exe.command + ' ' + exe.args.join(' '));
5354
var proc = cp.spawn(exe.command, exe.args, convertedOptions);
5455
proc.stdout.on('data', data => {
5556
if (/LANGUAGE SERVER RUNNING/.test(data.toString())) {

0 commit comments

Comments
 (0)