Skip to content

Commit

Permalink
Fix bug: the client never received server Ready notification
Browse files Browse the repository at this point in the history
Signed-off-by: Jinbo Wang <[email protected]>
  • Loading branch information
testforstephen authored and fbricon committed Sep 9, 2019
1 parent 8e43b5c commit 0b12c1b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ InitializeResult initialize(InitializeParams param) {
}
}
preferenceManager.getPreferences().setTriggerFiles(triggerPaths);

triggerInitialization(rootPaths);
Integer processId = param.getProcessId();
if (processId != null) {
JavaLanguageServerPlugin.getLanguageServer().setParentProcessId(processId.longValue());
Expand Down Expand Up @@ -245,6 +243,10 @@ InitializeResult initialize(InitializeParams param) {
capabilities.setWorkspace(wsCapabilities);

result.setCapabilities(capabilities);

// At the end of the InitHandler, trigger a job to import the workspace. This is used to ensure ServiceStatus notification
// is not sent before the initialize response. See the bug https://github.com/redhat-developer/vscode-java/issues/1056
triggerInitialization(rootPaths);
return result;
}

Expand Down

0 comments on commit 0b12c1b

Please sign in to comment.