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 @@ -202,7 +202,7 @@ class QWebviewBrowser(val project: Project, private val parentDisposable: Dispos
is BrowserMessage.SendUiClickTelemetry -> {
val signInOption = message.signInOptionClicked
if (signInOption.isNullOrEmpty()) {
LOG.warn("Unknown sign in option")
LOG.warn { "Unknown sign in option" }
} else {
UiTelemetry.click(project, signInOption)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class CodeWhispererUserModificationTracker(private val project: Project) : Dispo
}
val modifiedSuggestion = document?.getText(
TextRange(suggestion.range.startOffset, suggestion.range.endOffset)
) ?: ""
).orEmpty()
val response = CodeWhispererClientAdaptor.getInstance(project)
.sendUserModificationTelemetry(
suggestion.sessionId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class ToolkitWebviewBrowser(val project: Project, private val parentDisposable:
is BrowserMessage.SendUiClickTelemetry -> {
val signInOption = message.signInOptionClicked
if (signInOption.isNullOrEmpty()) {
LOG.warn("Unknown sign in option")
LOG.warn { "Unknown sign in option" }
} else {
UiTelemetry.click(project, signInOption)
}
Expand Down
Loading