Skip to content

Commit 5e439a4

Browse files
committed
detekt
1 parent 22935de commit 5e439a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,12 +680,12 @@ class CodeWhispererService(private val cs: CoroutineScope) : Disposable {
680680
val workspaceRootPath = Paths.get(URI(workspaceInfo.workspaceRoot)).toString()
681681
if (psiFile.virtualFile.path.startsWith(workspaceRootPath)) {
682682
workspaceId = workspaceInfo.workspaceId
683-
LOG.info("Found workspaceId from LSP '$workspaceId'")
683+
LOG.info { "Found workspaceId from LSP '$workspaceId'" }
684684
break
685685
}
686686
}
687687
} catch (e: Exception) {
688-
LOG.warn("Cannot get workspaceId from LSP'$e'")
688+
LOG.warn { "Cannot get workspaceId from LSP'$e'" }
689689
}
690690
return RequestContext(
691691
project, editor, triggerTypeInfo, caretPosition,

plugins/amazonq/codewhisperer/jetbrains-community/tstFixtures/software/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererTestUtil.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ fun aRequestContext(
257257
Random.nextLong(),
258258
aString()
259259
),
260-
customizationArn = null
260+
customizationArn = null,
261+
workspaceId = null
261262
)
262263
}
263264

0 commit comments

Comments
 (0)