Skip to content

Commit c61e333

Browse files
committed
test build
1 parent 4235561 commit c61e333

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,28 @@ export class LspClient {
108108
const request = JSON.stringify({
109109
query: query,
110110
filePath: path,
111+
target: 'default',
111112
})
113+
114+
const repomapRequest = await this.encrypt(
115+
JSON.stringify({
116+
query: query,
117+
filePath: path,
118+
target: 'codemap',
119+
})
120+
)
121+
122+
const bm25Request = await this.encrypt(
123+
JSON.stringify({
124+
query: query,
125+
filePath: path,
126+
target: 'bm25',
127+
})
128+
)
129+
130+
const repomapResponse = await this.client?.sendRequest(QueryInlineProjectContextRequestType, repomapRequest)
131+
const bm25Response = await this.client?.sendRequest(QueryInlineProjectContextRequestType, bm25Request)
132+
112133
const encrypted = await this.encrypt(request)
113134
const resp: any = await this.client?.sendRequest(QueryInlineProjectContextRequestType, encrypted)
114135
return resp

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export type QueryInlineProjectContextRequest = string
5151
export type QueryInlineProjectContextRequestPayload = {
5252
query: string
5353
filePath: string
54+
target: string
5455
}
5556
export const QueryInlineProjectContextRequestType: RequestType<QueryInlineProjectContextRequest, any, any> =
5657
new RequestType('lsp/queryInlineProjectContext')

packages/core/src/shared/featureConfig.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export class FeatureConfigProvider {
6565
}
6666

6767
isNewProjectContextGroup(): boolean {
68+
return true
6869
return this.featureConfigs.get(Features.projectContextFeature)?.variation === 'TREATMENT'
6970
}
7071

0 commit comments

Comments
 (0)