Skip to content
This repository has been archived by the owner on Apr 5, 2019. It is now read-only.

Commit

Permalink
Fix issue reporting breaking unexpectedly
Browse files Browse the repository at this point in the history
  • Loading branch information
Janos Gyerik committed Jul 7, 2017
1 parent 6cc4e07 commit f8697b8
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion lib/sonarlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,21 @@ class SonarLintLanguageServer extends AutoLanguageClient {
}

spawnServer (command, args) {
return cp.spawn(command, args)
const process = cp.spawn(command, args);

process.stdout.on('data', (data) => {
this.logger.debug(`SonarLint Language Server stdout: ${data}`);
});

process.stderr.on('data', (data) => {
this.logger.debug(`SonarLint Language Server stderr: ${data}`);
});

process.on('close', (code) => {
this.logger.debug(`SonarLint Language Server process exited with code ${code}`);
});

return process;
}

getInitializeParams (projectPath, process) {
Expand Down

0 comments on commit f8697b8

Please sign in to comment.