@@ -6,7 +6,6 @@ package software.aws.toolkits.jetbrains.services.codewhisperer.util
6
6
import com.intellij.openapi.editor.markup.EffectType
7
7
import com.intellij.openapi.editor.markup.TextAttributes
8
8
import com.intellij.ui.JBColor
9
- import groovy.lang.Tuple
10
9
import software.amazon.awssdk.regions.Region
11
10
import software.aws.toolkits.jetbrains.services.codewhisperer.language.languages.CodeWhispererCsharp
12
11
import software.aws.toolkits.jetbrains.services.codewhisperer.language.languages.CodeWhispererJava
@@ -285,39 +284,39 @@ public class SumFunction
285
284
286
285
val tryExampleFileContexts = mapOf (
287
286
CodewhispererGettingStartedTask .AutoTrigger to mapOf (
288
- CodeWhispererJava .INSTANCE to Tuple (AUTO_TRIGGER_CONTENT_JAVA , AUTO_TRIGGER_CONTENT_JAVA .length - 8 ),
289
- CodeWhispererPython .INSTANCE to Tuple (AUTO_TRIGGER_CONTENT_PYTHON , AUTO_TRIGGER_CONTENT_PYTHON .length),
290
- CodeWhispererJavaScript .INSTANCE to Tuple (AUTO_TRIGGER_CONTENT_TS_JS , AUTO_TRIGGER_CONTENT_TS_JS .length),
291
- CodeWhispererTypeScript .INSTANCE to Tuple (AUTO_TRIGGER_CONTENT_TS_JS , AUTO_TRIGGER_CONTENT_TS_JS .length),
292
- CodeWhispererCsharp .INSTANCE to Tuple (AUTO_TRIGGER_CONTENT_CSHARP , AUTO_TRIGGER_CONTENT_CSHARP .length - 8 )
287
+ CodeWhispererJava .INSTANCE to (AUTO_TRIGGER_CONTENT_JAVA to AUTO_TRIGGER_CONTENT_JAVA .length - 8 ),
288
+ CodeWhispererPython .INSTANCE to (AUTO_TRIGGER_CONTENT_PYTHON to AUTO_TRIGGER_CONTENT_PYTHON .length),
289
+ CodeWhispererJavaScript .INSTANCE to (AUTO_TRIGGER_CONTENT_TS_JS to AUTO_TRIGGER_CONTENT_TS_JS .length),
290
+ CodeWhispererTypeScript .INSTANCE to (AUTO_TRIGGER_CONTENT_TS_JS to AUTO_TRIGGER_CONTENT_TS_JS .length),
291
+ CodeWhispererCsharp .INSTANCE to (AUTO_TRIGGER_CONTENT_CSHARP to AUTO_TRIGGER_CONTENT_CSHARP .length - 8 )
293
292
),
294
293
CodewhispererGettingStartedTask .ManualTrigger to mapOf (
295
- CodeWhispererJava .INSTANCE to Tuple (MANUAL_TRIGGER_CONTENT_JAVA , MANUAL_TRIGGER_CONTENT_JAVA .length - 8 ),
296
- CodeWhispererPython .INSTANCE to Tuple (MANUAL_TRIGGER_CONTENT_PYTHON , MANUAL_TRIGGER_CONTENT_PYTHON .length),
297
- CodeWhispererJavaScript .INSTANCE to Tuple (MANUAL_TRIGGER_CONTENT_TS_JS , MANUAL_TRIGGER_CONTENT_TS_JS .length),
298
- CodeWhispererTypeScript .INSTANCE to Tuple (MANUAL_TRIGGER_CONTENT_TS_JS , MANUAL_TRIGGER_CONTENT_TS_JS .length),
299
- CodeWhispererCsharp .INSTANCE to Tuple (MANUAL_TRIGGER_CONTENT_CSHARP , MANUAL_TRIGGER_CONTENT_CSHARP .length - 8 )
294
+ CodeWhispererJava .INSTANCE to (MANUAL_TRIGGER_CONTENT_JAVA to MANUAL_TRIGGER_CONTENT_JAVA .length - 8 ),
295
+ CodeWhispererPython .INSTANCE to (MANUAL_TRIGGER_CONTENT_PYTHON to MANUAL_TRIGGER_CONTENT_PYTHON .length),
296
+ CodeWhispererJavaScript .INSTANCE to (MANUAL_TRIGGER_CONTENT_TS_JS to MANUAL_TRIGGER_CONTENT_TS_JS .length),
297
+ CodeWhispererTypeScript .INSTANCE to (MANUAL_TRIGGER_CONTENT_TS_JS to MANUAL_TRIGGER_CONTENT_TS_JS .length),
298
+ CodeWhispererCsharp .INSTANCE to (MANUAL_TRIGGER_CONTENT_CSHARP to MANUAL_TRIGGER_CONTENT_CSHARP .length - 8 )
300
299
),
301
300
CodewhispererGettingStartedTask .CommentAsPrompt to mapOf (
302
- CodeWhispererJava .INSTANCE to Tuple (COMMENT_AS_PROMPT_CONTENT_NON_PYTHON , COMMENT_AS_PROMPT_CONTENT_NON_PYTHON .length),
303
- CodeWhispererPython .INSTANCE to Tuple (COMMENT_AS_PROMPT_CONTENT_PYTHON , COMMENT_AS_PROMPT_CONTENT_PYTHON .length),
304
- CodeWhispererJavaScript .INSTANCE to Tuple (COMMENT_AS_PROMPT_CONTENT_NON_PYTHON , COMMENT_AS_PROMPT_CONTENT_NON_PYTHON .length),
305
- CodeWhispererTypeScript .INSTANCE to Tuple (COMMENT_AS_PROMPT_CONTENT_NON_PYTHON , COMMENT_AS_PROMPT_CONTENT_NON_PYTHON .length),
306
- CodeWhispererCsharp .INSTANCE to Tuple (COMMENT_AS_PROMPT_CONTENT_NON_PYTHON , COMMENT_AS_PROMPT_CONTENT_NON_PYTHON .length)
301
+ CodeWhispererJava .INSTANCE to (COMMENT_AS_PROMPT_CONTENT_NON_PYTHON to COMMENT_AS_PROMPT_CONTENT_NON_PYTHON .length),
302
+ CodeWhispererPython .INSTANCE to (COMMENT_AS_PROMPT_CONTENT_PYTHON to COMMENT_AS_PROMPT_CONTENT_PYTHON .length),
303
+ CodeWhispererJavaScript .INSTANCE to (COMMENT_AS_PROMPT_CONTENT_NON_PYTHON to COMMENT_AS_PROMPT_CONTENT_NON_PYTHON .length),
304
+ CodeWhispererTypeScript .INSTANCE to (COMMENT_AS_PROMPT_CONTENT_NON_PYTHON to COMMENT_AS_PROMPT_CONTENT_NON_PYTHON .length),
305
+ CodeWhispererCsharp .INSTANCE to (COMMENT_AS_PROMPT_CONTENT_NON_PYTHON to COMMENT_AS_PROMPT_CONTENT_NON_PYTHON .length)
307
306
),
308
307
CodewhispererGettingStartedTask .Navigation to mapOf (
309
- CodeWhispererJava .INSTANCE to Tuple (NAVIGATION_CONTENT_NON_PYTHON , NAVIGATION_CONTENT_NON_PYTHON .length),
310
- CodeWhispererPython .INSTANCE to Tuple (NAVIGATION_CONTENT_PYTHON , NAVIGATION_CONTENT_PYTHON .length),
311
- CodeWhispererJavaScript .INSTANCE to Tuple (NAVIGATION_CONTENT_NON_PYTHON , NAVIGATION_CONTENT_NON_PYTHON .length),
312
- CodeWhispererTypeScript .INSTANCE to Tuple (NAVIGATION_CONTENT_NON_PYTHON , NAVIGATION_CONTENT_NON_PYTHON .length),
313
- CodeWhispererCsharp .INSTANCE to Tuple (NAVIGATION_CONTENT_NON_PYTHON , NAVIGATION_CONTENT_NON_PYTHON .length)
308
+ CodeWhispererJava .INSTANCE to (NAVIGATION_CONTENT_NON_PYTHON to NAVIGATION_CONTENT_NON_PYTHON .length),
309
+ CodeWhispererPython .INSTANCE to (NAVIGATION_CONTENT_PYTHON to NAVIGATION_CONTENT_PYTHON .length),
310
+ CodeWhispererJavaScript .INSTANCE to (NAVIGATION_CONTENT_NON_PYTHON to NAVIGATION_CONTENT_NON_PYTHON .length),
311
+ CodeWhispererTypeScript .INSTANCE to (NAVIGATION_CONTENT_NON_PYTHON to NAVIGATION_CONTENT_NON_PYTHON .length),
312
+ CodeWhispererCsharp .INSTANCE to (NAVIGATION_CONTENT_NON_PYTHON to NAVIGATION_CONTENT_NON_PYTHON .length)
314
313
),
315
314
CodewhispererGettingStartedTask .UnitTest to mapOf (
316
- CodeWhispererJava .INSTANCE to Tuple (UNIT_TEST_CONTENT_JAVA , UNIT_TEST_CONTENT_JAVA .length - 2 ),
317
- CodeWhispererPython .INSTANCE to Tuple (UNIT_TEST_CONTENT_PYTHON , UNIT_TEST_CONTENT_PYTHON .length),
318
- CodeWhispererJavaScript .INSTANCE to Tuple (UNIT_TEST_CONTENT_TS_JS , UNIT_TEST_CONTENT_TS_JS .length),
319
- CodeWhispererTypeScript .INSTANCE to Tuple (UNIT_TEST_CONTENT_TS_JS , UNIT_TEST_CONTENT_TS_JS .length),
320
- CodeWhispererCsharp .INSTANCE to Tuple (UNIT_TEST_CONTENT_CSHARP , UNIT_TEST_CONTENT_CSHARP .length - 8 )
315
+ CodeWhispererJava .INSTANCE to (UNIT_TEST_CONTENT_JAVA to UNIT_TEST_CONTENT_JAVA .length - 2 ),
316
+ CodeWhispererPython .INSTANCE to (UNIT_TEST_CONTENT_PYTHON to UNIT_TEST_CONTENT_PYTHON .length),
317
+ CodeWhispererJavaScript .INSTANCE to (UNIT_TEST_CONTENT_TS_JS to UNIT_TEST_CONTENT_TS_JS .length),
318
+ CodeWhispererTypeScript .INSTANCE to (UNIT_TEST_CONTENT_TS_JS to UNIT_TEST_CONTENT_TS_JS .length),
319
+ CodeWhispererCsharp .INSTANCE to (UNIT_TEST_CONTENT_CSHARP to UNIT_TEST_CONTENT_CSHARP .length - 8 )
321
320
)
322
321
)
323
322
}
0 commit comments