Skip to content

Commit 6631ca9

Browse files
committed
refactor(amazonq): remove amazonqLSP and amazonqChatLSP settings
1 parent c75cc6d commit 6631ca9

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

packages/amazonq/src/extension.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
121121
}
122122
// This contains every lsp agnostic things (auth, security scan, code scan)
123123
await activateCodeWhisperer(extContext as ExtContext)
124-
if (
125-
(Experiments.instance.get('amazonqLSP', true) || Auth.instance.isInternalAmazonUser()) &&
126-
(!isAmazonInternalOs() || (await hasGlibcPatch()))
127-
) {
124+
if (!isAmazonInternalOs() || (await hasGlibcPatch())) {
128125
// start the Amazon Q LSP for internal users first
129126
// for AL2, start LSP if glibc patch is found
130127
await activateAmazonqLsp(context)
@@ -172,7 +169,7 @@ export async function activateAmazonQCommon(context: vscode.ExtensionContext, is
172169

173170
context.subscriptions.push(
174171
Experiments.instance.onDidChange(async (event) => {
175-
if (event.key === 'amazonqLSP' || event.key === 'amazonqChatLSP' || event.key === 'amazonqLSPInline') {
172+
if (event.key === 'amazonqLSPInline') {
176173
await vscode.window
177174
.showInformationMessage(
178175
'Amazon Q LSP setting has changed. Reload VS Code for the changes to take effect.',

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ export const toolkitSettings = {
4242
},
4343
"aws.experiments": {
4444
"jsonResourceModification": {},
45-
"amazonqLSP": {},
46-
"amazonqLSPInline": {},
47-
"amazonqChatLSP": {}
45+
"amazonqLSPInline": {}
4846
},
4947
"aws.resources.enabledResources": {},
5048
"aws.lambda.recentlyUploaded": {},

packages/toolkit/package.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,9 @@
247247
"type": "boolean",
248248
"default": false
249249
},
250-
"amazonqLSP": {
251-
"type": "boolean",
252-
"default": true
253-
},
254250
"amazonqLSPInline": {
255251
"type": "boolean",
256252
"default": false
257-
},
258-
"amazonqChatLSP": {
259-
"type": "boolean",
260-
"default": true
261253
}
262254
},
263255
"additionalProperties": false

0 commit comments

Comments
 (0)