Skip to content

Commit 8b12768

Browse files
Merge pull request #7629 from LiGaCu/wcs_optin
feat(amazonq): add a opt-in checkbox for server-side context
2 parents 678851b + d1fb822 commit 8b12768

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

packages/amazonq/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@
164164
"default": true,
165165
"scope": "application"
166166
},
167+
"amazonQ.server-sideContext": {
168+
"type": "boolean",
169+
"markdownDescription": "%AWS.configuration.description.amazonq.workspaceContext%",
170+
"default": true
171+
},
167172
"amazonQ.workspaceIndex": {
168173
"type": "boolean",
169174
"markdownDescription": "%AWS.configuration.description.amazonq.workspaceIndex%",

packages/core/package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
"AWS.configuration.description.amazonq": "Amazon Q creates a code reference when you insert a code suggestion from Amazon Q that is similar to training data. When unchecked, Amazon Q will not show code suggestions that have code references. If you authenticate through IAM Identity Center, this setting is controlled by your Amazon Q administrator. [Learn More](https://docs.aws.amazon.com/amazonq/latest/qdeveloper-ug/code-reference.html)",
9191
"AWS.configuration.description.amazonq.shareContentWithAWS": "When checked, your content processed by Amazon Q may be used for service improvement (except for content processed for users with the Amazon Q Developer Pro Tier). Unchecking this box will cause AWS to delete any of your content used for that purpose. The information used to provide the Amazon Q service to you will not be affected. See the [Service Terms](https://aws.amazon.com/service-terms) for more details.",
9292
"AWS.configuration.description.amazonq.importRecommendation": "Amazon Q will add import statements with inline code suggestions when necessary.",
93+
"AWS.configuration.description.amazonq.workspaceContext": "Index project files on the server and use as context for higher-quality responses. This feature will activate only if your administrator has opted you in.",
9394
"AWS.configuration.description.amazonq.workspaceIndex": "When you add @workspace to your question in Amazon Q chat, Amazon Q will index your workspace files locally to use as context for its response. Extra CPU usage is expected while indexing a workspace. This will not impact Amazon Q features or your IDE, but you may manage CPU usage by setting the number of local threads in 'Local Workspace Index Threads'.",
9495
"AWS.configuration.description.amazonq.workspaceIndexWorkerThreads": "Number of worker threads of Amazon Q local index process. '0' will use the system default worker threads for balance performance. You may increase this number to more quickly index your workspace, but only up to your hardware's number of CPU cores. Please restart VS Code or reload the VS Code window after changing worker threads.",
9596
"AWS.configuration.description.amazonq.workspaceIndexUseGPU": "Enable GPU to help index your local workspace files. Only applies to Linux and Windows.",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const amazonqSettings = {
2929
"amazonQ.allowFeatureDevelopmentToRunCodeAndTests": {},
3030
"amazonQ.importRecommendationForInlineCodeSuggestions": {},
3131
"amazonQ.shareContentWithAWS": {},
32+
"amazonQ.server-sideContext": {},
3233
"amazonQ.workspaceIndex": {},
3334
"amazonQ.workspaceIndexWorkerThreads": {},
3435
"amazonQ.workspaceIndexUseGPU": {},

0 commit comments

Comments
 (0)