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
Copy file name to clipboardExpand all lines: plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererService.kt
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -172,11 +172,13 @@ class CodeWhispererService(private val cs: CoroutineScope) : Disposable {
172
172
173
173
val language = requestContext.fileContextInfo.programmingLanguage
174
174
val leftContext = requestContext.fileContextInfo.caretContext.leftFileContext
175
-
if (!language.isCodeCompletionSupported() || (language isCodeWhispererJson&&!isSupportedJsonFormat(
176
-
requestContext.fileContextInfo.filename,
177
-
leftContext,
178
-
language
179
-
))
175
+
if (!language.isCodeCompletionSupported() || (
176
+
language isCodeWhispererJson&&!isSupportedJsonFormat(
177
+
requestContext.fileContextInfo.filename,
178
+
leftContext,
179
+
language
180
+
)
181
+
)
180
182
) {
181
183
LOG.debug { "Programming language $language is not supported by CodeWhisperer" }
182
184
if (triggerTypeInfo.triggerType ==CodewhispererTriggerType.OnDemand) {
0 commit comments