File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed
Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export type QueryInlineProjectContextRequest = string
5151export type QueryInlineProjectContextRequestPayload = {
5252 query : string
5353 filePath : string
54+ target : string
5455}
5556export const QueryInlineProjectContextRequestType : RequestType < QueryInlineProjectContextRequest , any , any > =
5657 new RequestType ( 'lsp/queryInlineProjectContext' )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments