Skip to content

Commit f87a94b

Browse files
authored
config(inline-completion): change supplemental context configuration to always use repomap (#6205)
## Problem Remove client side A/B experiment (control, treatment1, treatment2), move it to service side and always assume treatment1 ## Solution --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 914bf73 commit f87a94b

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

packages/amazonq/test/unit/codewhisperer/util/crossFileContextUtil.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ describe('crossFileContextUtil', function () {
9696
assert.strictEqual(actual.supplementalContextItems[3].content.split('\n').length, 50)
9797
})
9898

99-
it('for t2 group, should return global bm25 context and no repomap', async function () {
99+
it.skip('for t2 group, should return global bm25 context and no repomap', async function () {
100100
await toTextEditor(aStringWithLineCount(200), 'CrossFile.java', tempFolder, { preview: false })
101101
const myCurrentEditor = await toTextEditor('', 'TargetFile.java', tempFolder, {
102102
preview: false,

packages/core/src/codewhisperer/util/supplementalContext/crossFileContextUtil.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,8 @@ function getSupplementalContextConfig(languageId: vscode.TextDocument['languageI
284284

285285
const group = FeatureConfigProvider.instance.getProjectContextGroup()
286286
switch (group) {
287-
case 'control':
288-
return 'opentabs'
289-
290-
case 't1':
287+
default:
291288
return 'codemap'
292-
293-
case 't2':
294-
return 'bm25'
295289
}
296290
}
297291

0 commit comments

Comments
 (0)