Commit e8d62f1
authored
## Problem
patch #5663
Due to this line of code
https://github.com/aws/aws-toolkit-vscode/blob/master/packages/core/src/codewhisperer/util/runtimeLanguageContext.ts#L156-L173
when users make inline completion call with new languages, logs will
show
`2024-10-24 08:52:55.501 [error] codewhisperer: unknown runtime language
dart`, however it doesn't have functional impact because it will
fallback to original language string (which is the reason why it doesn't
fail test cases) and it's only affecting logs.
test has been added
https://github.com/aws/aws-toolkit-vscode/blob/master/packages/amazonq/test/unit/codewhisperer/util/runtimeLanguageContext.test.ts#L184-L222
## Solution
1 parent 41f64ae commit e8d62f1
File tree
2 files changed
+6
-3
lines changed- packages
- amazonq/test/unit/codewhisperer/util
- core/src/codewhisperer/util
2 files changed
+6
-3
lines changedLines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | 214 | | |
218 | 215 | | |
219 | 216 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
0 commit comments