Skip to content

Commit 34db4dc

Browse files
authored
fix to display logic when failure condition overlaps with lsp failure
1 parent 374e549 commit 34db4dc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin/src/software/aws/toolkits/eclipse/amazonq/views/AmazonQChatWebview.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,11 @@ public final void onEvent(final AuthState authState) {
142142
// chat view
143143
if (browser != null && !browser.isDisposed() && !chatStateManager.hasPreservedState()) {
144144
Optional<String> content = getContent();
145-
if (!content.isPresent() && !LspStatusManager.getInstance().lspFailed()) {
145+
if (!content.isPresent()) {
146146
canDisposeState = true;
147-
ViewVisibilityManager.showChatAssetMissingView("update");
147+
if (!LspStatusManager.getInstance().lspFailed()) {
148+
ViewVisibilityManager.showChatAssetMissingView("update");
149+
}
148150
} else {
149151
browser.setText(content.get()); // Display the chat client
150152
}

0 commit comments

Comments
 (0)