Skip to content

Commit dcb092a

Browse files
committed
detekt
1 parent 73c19cf commit dcb092a

File tree

1 file changed

+7
-5
lines changed
  • plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,13 @@ class CodeWhispererService(private val cs: CoroutineScope) : Disposable {
172172

173173
val language = requestContext.fileContextInfo.programmingLanguage
174174
val leftContext = requestContext.fileContextInfo.caretContext.leftFileContext
175-
if (!language.isCodeCompletionSupported() || (language is CodeWhispererJson && !isSupportedJsonFormat(
176-
requestContext.fileContextInfo.filename,
177-
leftContext,
178-
language
179-
))
175+
if (!language.isCodeCompletionSupported() || (
176+
language is CodeWhispererJson && !isSupportedJsonFormat(
177+
requestContext.fileContextInfo.filename,
178+
leftContext,
179+
language
180+
)
181+
)
180182
) {
181183
LOG.debug { "Programming language $language is not supported by CodeWhisperer" }
182184
if (triggerTypeInfo.triggerType == CodewhispererTriggerType.OnDemand) {

0 commit comments

Comments
 (0)