Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
AmazonQToolWindow.getStarted(project)
}
}
null

JBCefJSQuery.Response(null)

Check warning on line 66 in plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/gettingstarted/QGettingStartedContent.kt

View check run for this annotation

Codecov / codecov/patch

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/gettingstarted/QGettingStartedContent.kt#L66

Added line #L66 was not covered by tests
}
receiveMessageQuery.addHandler(handler)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import com.intellij.openapi.util.Disposer
import com.intellij.ui.jcef.JBCefJSQuery
import org.cef.CefApp
import software.aws.toolkits.jetbrains.services.amazonq.util.createBrowser
import java.util.function.Function

typealias MessageReceiver = Function<String, JBCefJSQuery.Response>

/*
Displays the web view for the Amazon Q tool window
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
private fun addMessageHook(browser: Browser) = callbackFlow {
val handler = Function<String, Response> {
trySend(it)
null
Response(null)

Check warning on line 80 in plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/BrowserConnector.kt

View check run for this annotation

Codecov / codecov/patch

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

Added line #L80 was not covered by tests
}

browser.receiveMessageQuery.addHandler(handler)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@

handleBrowserMessage(obj)

null
JBCefJSQuery.Response(null)

Check warning on line 74 in plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/webview/LoginBrowser.kt

View check run for this annotation

Codecov / codecov/patch

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/webview/LoginBrowser.kt#L74

Added line #L74 was not covered by tests
}
protected var currentAuthorization: PendingAuthorization? = null

Expand Down
Loading