Skip to content

Commit 5a29b26

Browse files
committed
lint
1 parent abd1f14 commit 5a29b26

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/telemetry/CodeWhispererTelemetryService.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import com.intellij.openapi.application.ApplicationManager
88
import com.intellij.openapi.components.Service
99
import com.intellij.openapi.components.service
1010
import com.intellij.openapi.editor.RangeMarker
11-
import com.intellij.openapi.project.Project
1211
import com.intellij.openapi.vfs.VirtualFile
1312
import kotlinx.coroutines.launch
1413
import org.apache.commons.collections4.queue.CircularFifoQueue
@@ -151,7 +150,7 @@ class CodeWhispererTelemetryService {
151150
index: Int,
152151
suggestionState: CodewhispererSuggestionState,
153152
numOfRecommendations: Int,
154-
): Unit = Telemetry.codewhisperer.userDecision.use {
153+
): Unit = Telemetry.codewhisperer.userDecision.use { span ->
155154
val requestId = detailContext.requestId
156155
val recommendation = detailContext.recommendation
157156
val codewhispererLanguage = requestContext.fileContextInfo.programmingLanguage.toTelemetryType()
@@ -166,7 +165,7 @@ class CodeWhispererTelemetryService {
166165
}
167166
val startUrl = getConnectionStartUrl(requestContext.connection)
168167
val importEnabled = CodeWhispererSettings.getInstance().isImportAdderEnabled()
169-
it.codewhispererCompletionType(detailContext.completionType)
168+
span.codewhispererCompletionType(detailContext.completionType)
170169
.codewhispererGettingStartedTask(getGettingStartedTaskType(requestContext.editor))
171170
.codewhispererLanguage(codewhispererLanguage)
172171
.codewhispererPaginationProgress(numOfRecommendations)

0 commit comments

Comments
 (0)