Skip to content

Commit 1d72423

Browse files
authored
fix(workspace): remove non-flare workspace lsp (#7359)
## Problem The workspace LSP has been merged into the Amazon Q LSP (Flare). There is no need to keep the non-flare workspace LSP, it will consume both CPU and memory once it starts to index. This will make non agentic chat experience not having `@file` or `@workspace ` but at this point we want customers to use agentic chat. As such CPU and memory usage problem is of higher priority. ## Solution remove: disable workspace lsp --- - 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 00c220a commit 1d72423

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Removal",
3+
"description": "Disable local workspace LSP"
4+
}

packages/amazonq/src/app/chat/activation.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,14 @@
66
import * as vscode from 'vscode'
77
import { ExtensionContext } from 'vscode'
88
import { telemetry } from 'aws-core-vscode/telemetry'
9-
import { AuthUtil, CodeWhispererSettings } from 'aws-core-vscode/codewhisperer'
10-
import { Commands, placeholder, funcUtil } from 'aws-core-vscode/shared'
9+
import { AuthUtil } from 'aws-core-vscode/codewhisperer'
10+
import { Commands, placeholder } from 'aws-core-vscode/shared'
1111
import * as amazonq from 'aws-core-vscode/amazonq'
1212

1313
export async function activate(context: ExtensionContext) {
1414
const appInitContext = amazonq.DefaultAmazonQAppInitContext.instance
1515
await amazonq.TryChatCodeLensProvider.register(appInitContext.onDidChangeAmazonQVisibility.event)
1616

17-
const setupLsp = funcUtil.debounce(async () => {
18-
void amazonq.LspController.instance.trySetupLsp(context, {
19-
startUrl: AuthUtil.instance.startUrl,
20-
maxIndexSize: CodeWhispererSettings.instance.getMaxIndexSize(),
21-
isVectorIndexEnabled: false,
22-
})
23-
}, 5000)
24-
2517
context.subscriptions.push(
2618
amazonq.focusAmazonQChatWalkthrough.register(),
2719
amazonq.walkthroughInlineSuggestionsExample.register(),
@@ -37,7 +29,6 @@ export async function activate(context: ExtensionContext) {
3729
void vscode.env.openExternal(vscode.Uri.parse(amazonq.amazonQHelpUrl))
3830
})
3931

40-
void setupLsp()
4132
void setupAuthNotification()
4233
}
4334

0 commit comments

Comments
 (0)