Skip to content

Commit c126168

Browse files
authored
config(amazonq-chat): disable and remove implicit workspace context experiment (aws#6630)
## Problem Remove as experiment has been disable from the service side, no need to collect workspace context if service doesn't actually utilize it. ## 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 f75a2be commit c126168

File tree

1 file changed

+0
-16
lines changed
  • packages/core/src/codewhispererChat/controllers/chat

1 file changed

+0
-16
lines changed

packages/core/src/codewhispererChat/controllers/chat/controller.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ import { isSsoConnection } from '../../../auth/connection'
5454
import { inspect } from '../../../shared/utilities/collectionUtils'
5555
import { DefaultAmazonQAppInitContext } from '../../../amazonq/apps/initContext'
5656
import globals from '../../../shared/extensionGlobals'
57-
import { waitUntil } from '../../../shared/utilities/timeoutUtils'
5857

5958
export interface ChatControllerMessagePublishers {
6059
readonly processPromptChatMessage: MessagePublisher<PromptMessage>
@@ -645,21 +644,6 @@ export class ChatController {
645644
this.messenger.sendOpenSettingsMessage(triggerID, tabID)
646645
return
647646
}
648-
} else if (
649-
!LspController.instance.isIndexingInProgress() &&
650-
CodeWhispererSettings.instance.isLocalIndexEnabled()
651-
) {
652-
const start = performance.now()
653-
triggerPayload.relevantTextDocuments = await waitUntil(
654-
async function () {
655-
if (triggerPayload.message) {
656-
return await LspController.instance.query(triggerPayload.message)
657-
}
658-
return []
659-
},
660-
{ timeout: 500, interval: 200, truthy: false }
661-
)
662-
triggerPayload.projectContextQueryLatencyMs = performance.now() - start
663647
}
664648
}
665649

0 commit comments

Comments
 (0)