You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CodeWhisperer: Correct completion type for every completion in user decision events (#3811)
1. Previously we just use the completion type of the first suggestion,
as the completion type for all suggestions. Now since this is no longer true,
plugin side also needs to make the change to compute the completion type
for every suggestion. Since this is per-suggestion level this will
be recorded in the userDecision event.
2. Note that we still have 'completionType' field in other events(
serviceInvocation, clientComponentLatency, etc) these values no longer
make sense for analysis.
3. For actually computing the completionType for each suggestion, the rule
is:
If a suggestion has multi-lines and they are non-blank lines, it's a
block suggestion, otherwise it's a line suggestion.
Copy file name to clipboardExpand all lines: jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/editor/CodeWhispererEditorManager.kt
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,8 @@ class CodeWhispererEditorManager {
Copy file name to clipboardExpand all lines: jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererRecommendationManager.kt
Copy file name to clipboardExpand all lines: jetbrains-core/src/software/aws/toolkits/jetbrains/services/codewhisperer/telemetry/CodeWhispererTelemetryService.kt
Copy file name to clipboardExpand all lines: jetbrains-core/tst/software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererCodeCoverageTrackerTest.kt
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -156,9 +156,19 @@ internal class CodeWhispererCodeCoverageTrackerTestPython : CodeWhispererCodeCov
156
156
null,
157
157
mock()
158
158
)
159
-
val responseContext =ResponseContext("sessionId", CodewhispererCompletionType.Block)
0 commit comments