Skip to content

Commit 596a06d

Browse files
committed
format
1 parent dff6bc5 commit 596a06d

File tree

1 file changed

+3
-9
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/flareChat

1 file changed

+3
-9
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/flareChat/ChatCommunicationManager.kt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,13 @@ class ChatCommunicationManager {
8080
val errorTitle = "An error occurred while processing your request."
8181
val errorMessage = "Details: ${exception.message}"
8282
val errorParams = Gson().toJson(ErrorParams(tabId, null, errorMessage, errorTitle)).toString()
83+
val isPartialResult = false
8384
val uiMessage = """
8485
{
8586
"command":"$CHAT_ERROR_PARAMS",
8687
"tabId": "$tabId",
87-
"params": "$errorParams",
88-
"isPartialResult": "true"
88+
"params": $errorParams,
89+
"isPartialResult": $isPartialResult
8990
}
9091
""".trimIndent()
9192
return uiMessage
@@ -99,13 +100,6 @@ class ChatCommunicationManager {
99100
fun completeSerializedChatResponse(requestId: String, content: String) {
100101
pendingSerializedChatRequests.remove(requestId)?.complete(GetSerializedChatResult((content)))
101102
}
102-
fun getErrorUiMessage(tabId: String, e: Exception): String = Gson().toJson(
103-
ErrorParams(
104-
title = "An error occurred while processing your request.",
105-
message = "Details: ${e.message}",
106-
tabID = tabId,
107-
triggerType = TODO(),
108-
)).toString()
109103

110104
fun convertToJsonToSendToChat(command: String, tabId: String, params: String, isPartialResult: Boolean): String =
111105
"""

0 commit comments

Comments
 (0)