Skip to content

Commit

Permalink
fix to display logic when failure condition overlaps with lsp failure
Browse files Browse the repository at this point in the history
  • Loading branch information
nborges-aws authored Jan 28, 2025
1 parent 374e549 commit 34db4dc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ public final void onEvent(final AuthState authState) {
// chat view
if (browser != null && !browser.isDisposed() && !chatStateManager.hasPreservedState()) {
Optional<String> content = getContent();
if (!content.isPresent() && !LspStatusManager.getInstance().lspFailed()) {
if (!content.isPresent()) {
canDisposeState = true;
ViewVisibilityManager.showChatAssetMissingView("update");
if (!LspStatusManager.getInstance().lspFailed()) {
ViewVisibilityManager.showChatAssetMissingView("update");
}
} else {
browser.setText(content.get()); // Display the chat client
}
Expand Down

0 comments on commit 34db4dc

Please sign in to comment.