Skip to content

Commit aef5606

Browse files
authored
codewhisperer: revert crossfile 1000 code chunks experiment #3811
1 parent c9ff32e commit aef5606

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/codewhisperer/models/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ export const supplemetalContextFetchingTimeoutMsg = 'codewhisperer supplemental
274274

275275
export const crossFileContextConfig = {
276276
numberOfChunkToFetch: 60,
277-
numberOfChunkToFetchExperiment: 1000,
278277
topK: 3,
279278
numberOfLinesEachChunk: 10,
280279
}

src/codewhisperer/util/supplementalContext/crossFileContextUtil.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ export async function fetchSupplementalContextForSrc(
6161
return shouldProceed === undefined ? undefined : []
6262
}
6363

64-
const codeChunksCalculated =
65-
CodeWhispererUserGroupSettings.instance.userGroup === UserGroup.Control
66-
? crossFileContextConfig.numberOfChunkToFetch
67-
: crossFileContextConfig.numberOfChunkToFetchExperiment
64+
const codeChunksCalculated = crossFileContextConfig.numberOfChunkToFetch
6865

6966
// Step 1: Get relevant cross files to refer
7067
const relevantCrossFilePaths = await getCrossFileCandidates(editor)

0 commit comments

Comments
 (0)