Skip to content

Commit e644e0e

Browse files
committed
rename
1 parent 0b06551 commit e644e0e

File tree

1 file changed

+4
-5
lines changed
  • plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview

1 file changed

+4
-5
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import kotlinx.coroutines.flow.distinctUntilChanged
1717
import kotlinx.coroutines.flow.launchIn
1818
import kotlinx.coroutines.flow.merge
1919
import kotlinx.coroutines.flow.onEach
20-
import kotlinx.coroutines.future.await
2120
import kotlinx.coroutines.launch
2221
import org.cef.browser.CefBrowser
2322
import org.eclipse.lsp4j.Position
@@ -217,19 +216,19 @@ class BrowserConnector(
217216
showResult(result, partialResultToken, tabId, encryptionManager, browser)
218217
}
219218
CHAT_LINK_CLICK -> {
220-
handleUiRequest<LinkClickNotification, LinkClickParams>(node) { server, params ->
219+
handleChatNotification<LinkClickNotification, LinkClickParams>(node) { server, params ->
221220
server.linkClick(params)
222221
}
223222
}
224223

225224
CHAT_INFO_LINK_CLICK -> {
226-
handleUiRequest<InfoLinkClickNotification, InfoLinkClickParams>(node) { server, params ->
225+
handleChatNotification<InfoLinkClickNotification, InfoLinkClickParams>(node) { server, params ->
227226
server.infoLinkClick(params)
228227
}
229228
}
230229

231230
CHAT_SOURCE_LINK_CLICK -> {
232-
handleUiRequest<SourceLinkClickNotification, SourceLinkClickParams>(node) { server, params ->
231+
handleChatNotification<SourceLinkClickNotification, SourceLinkClickParams>(node) { server, params ->
233232
server.sourceLinkClick(params)
234233
}
235234
}
@@ -255,7 +254,7 @@ class BrowserConnector(
255254
}
256255
}
257256

258-
private inline fun <reified T, R> handleUiRequest(
257+
private inline fun <reified T, R> handleChatNotification(
259258
node: JsonNode,
260259
crossinline serverAction: (server: AmazonQLanguageServer, params: R) -> CompletableFuture<*>,
261260
): CompletableFuture<*> where T : ChatNotification<R> {

0 commit comments

Comments
 (0)