Skip to content

Commit 2e40678

Browse files
authored
Merge pull request #266 from snyk/fix/IDE-1029_updatesummary_called_before_toolsview_initialized
fix: call updateSummary async
2 parents cb67cee + 4c0f673 commit 2e40678

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin/src/main/java/io/snyk/languageserver/protocolextension/SnykExtendedLanguageClient.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,10 @@ public void folderConfig(FolderConfigsParam folderConfigParam) {
436436

437437
@JsonNotification(value = LsConstants.SNYK_SCAN_SUMMARY)
438438
public void updateSummaryPanel(SummaryPanelParams summary) {
439-
openToolView();
440-
this.toolView.updateSummary(summary.getSummary());
439+
CompletableFuture.runAsync(() -> {
440+
openToolView();
441+
this.toolView.updateSummary(summary.getSummary());
442+
});
441443
}
442444

443445
@Override

0 commit comments

Comments
 (0)