We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67adfab commit 5336198Copy full SHA for 5336198
packages/core/src/codewhisperer/util/supplementalContext/crossFileContextUtil.ts
@@ -105,7 +105,7 @@ export async function fetchSupplementalContextForSrc(
105
106
function addToResult(items: CodeWhispererSupplementalContextItem[]) {
107
for (const item of items) {
108
- let curLen = result.reduce((acc, i) => acc + i.content.length, 0)
+ const curLen = result.reduce((acc, i) => acc + i.content.length, 0)
109
if (curLen + item.content.length < supplementalContextMaxTotalLength) {
110
result.push(item)
111
}
0 commit comments