Skip to content

Commit d46ca84

Browse files
committed
rename
1 parent 312cf46 commit d46ca84

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/core/src/amazonq/lsp/lspController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ export class LspController {
426426
})
427427
}
428428

429-
async updateContextCommandSymbols() {
429+
async updateContextCommandSymbolsOnce() {
430430
if (this._contextCommandSymbolsUpdated) {
431431
return
432432
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ export class ChatController {
552552
}
553553

554554
this.messenger.sendContextCommandData(contextCommand)
555-
LspController.instance.updateContextCommandSymbols()
555+
LspController.instance.updateContextCommandSymbolsOnce()
556556
}
557557

558558
private handlePromptCreate(tabID: string) {
@@ -1088,7 +1088,7 @@ export class ChatController {
10881088
}
10891089

10901090
const session = this.sessionStorage.getSession(tabID)
1091-
const ContextCommandDocumentReferences = await this.resolveContextCommandPayload(triggerPayload, session)
1091+
const contextCommandDocumentReferences = await this.resolveContextCommandPayload(triggerPayload, session)
10921092
triggerPayload.useRelevantDocuments =
10931093
triggerPayload.context?.some(
10941094
(context) => typeof context !== 'string' && context.command === '@workspace'
@@ -1140,7 +1140,7 @@ export class ChatController {
11401140
(doc) => doc.relativeFilePath
11411141
)
11421142
const seen: string[] = []
1143-
for (const documentReference of ContextCommandDocumentReferences) {
1143+
for (const documentReference of contextCommandDocumentReferences) {
11441144
if (
11451145
!relativePathsOfMergedRelevantDocuments.includes(documentReference.relativeFilePath) &&
11461146
!seen.includes(documentReference.relativeFilePath)

0 commit comments

Comments
 (0)