Skip to content

Commit

Permalink
Fix server error when empty configuration is passed
Browse files Browse the repository at this point in the history
This is already fixed upstream, but not in the PHAR we download.

References #460
  • Loading branch information
Gert-dev committed Sep 14, 2019
1 parent 48aff5d commit c081935
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/SerenataClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,14 @@ class SerenataClient extends AutoLanguageClient
}

getInitializeParams(projectPath, process) {
const params = super.getInitializeParams(projectPath, process);
const params = super.getInitializeParams(projectPath, process),
configuration = this.container.getProjectManager().getCurrentProjectSettings();

params.initializationOptions = {
configuration: this.container.getProjectManager().getCurrentProjectSettings(),
};
if (configuration !== null) {
params.initializationOptions = {
configuration: configuration,
};
}

return params;
}
Expand Down

0 comments on commit c081935

Please sign in to comment.