Skip to content

Commit 2905a5c

Browse files
committed
/review: update reference tracker checkbox label
1 parent 6d5ec44 commit 2905a5c

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "/review: update reference tracker checkbox label"
4+
}

packages/amazonq/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
},
123123
"additionalProperties": false
124124
},
125-
"amazonQ.showInlineCodeSuggestionsWithCodeReferences": {
125+
"amazonQ.showCodeWithReferences": {
126126
"type": "boolean",
127127
"markdownDescription": "%AWS.configuration.description.amazonq%",
128128
"default": true

packages/core/src/codewhisperer/activation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export async function activate(context: ExtContext): Promise<void> {
156156
EditorContext.updateTabSize(getTabSizeSetting())
157157
}
158158

159-
if (configurationChangeEvent.affectsConfiguration('amazonQ.showInlineCodeSuggestionsWithCodeReferences')) {
159+
if (configurationChangeEvent.affectsConfiguration('amazonQ.showCodeWithReferences')) {
160160
ReferenceLogViewProvider.instance.update()
161161
if (auth.isEnterpriseSsoInUse()) {
162162
await vscode.window
@@ -212,7 +212,7 @@ export async function activate(context: ExtContext): Promise<void> {
212212
if (id === 'codewhisperer') {
213213
await vscode.commands.executeCommand(
214214
'workbench.action.openSettings',
215-
`@id:amazonQ.showInlineCodeSuggestionsWithCodeReferences`
215+
`@id:amazonQ.showCodeWithReferences`
216216
)
217217
} else {
218218
await openSettings('amazonQ')

packages/core/src/codewhisperer/util/codewhispererSettings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { fromExtensionManifest } from '../../shared/settings'
66
import { ArrayConstructor } from '../../shared/utilities/typeConstructors'
77

88
const description = {
9-
showInlineCodeSuggestionsWithCodeReferences: Boolean, // eslint-disable-line id-length
9+
showCodeWithReferences: Boolean, // eslint-disable-line id-length
1010
importRecommendationForInlineCodeSuggestions: Boolean, // eslint-disable-line id-length
1111
shareContentWithAWS: Boolean,
1212
workspaceIndex: Boolean,
@@ -19,7 +19,7 @@ const description = {
1919

2020
export class CodeWhispererSettings extends fromExtensionManifest('amazonQ', description) {
2121
public isSuggestionsWithCodeReferencesEnabled(): boolean {
22-
return this.get(`showInlineCodeSuggestionsWithCodeReferences`, false)
22+
return this.get(`showCodeWithReferences`, false)
2323
}
2424
public isImportRecommendationEnabled(): boolean {
2525
return this.get(`importRecommendationForInlineCodeSuggestions`, false)

packages/core/src/shared/settings-amazonq.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const amazonqSettings = {
2020
"minIdeVersion": {},
2121
"ssoCacheError": {}
2222
},
23-
"amazonQ.showInlineCodeSuggestionsWithCodeReferences": {},
23+
"amazonQ.showCodeWithReferences": {},
2424
"amazonQ.allowFeatureDevelopmentToRunCodeAndTests": {},
2525
"amazonQ.importRecommendationForInlineCodeSuggestions": {},
2626
"amazonQ.shareContentWithAWS": {},

0 commit comments

Comments
 (0)