Skip to content

Commit 6954085

Browse files
authored
fix: enable repomap for all users (aws#1967)
1 parent f7ed20b commit 6954085

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

server/aws-lsp-codewhisperer/src/shared/localProjectContextController.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,7 @@ export class LocalProjectContextController {
272272
public async queryInlineProjectContext(
273273
request: QueryInlineProjectContextRequestV2
274274
): Promise<InlineProjectContext[]> {
275-
if (!this.isIndexingEnabled()) {
276-
return []
277-
}
278-
275+
// inline project context is available for all users regardless of local indexing enabled or disabled
279276
try {
280277
const resp = await this._vecLib?.queryInlineProjectContext(request.query, request.filePath, request.target)
281278
return resp ?? []

server/aws-lsp-codewhisperer/src/shared/supplementalContextUtil/crossFileContextUtil.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,6 @@ export async function fetchProjectContext(
148148
filePath: fsPath,
149149
target,
150150
}
151-
let enableWorkspaceContext = true
152-
153-
if (amazonQServiceManager) {
154-
const config = amazonQServiceManager.getConfiguration()
155-
if (config.projectContext?.enableLocalIndexing === false) {
156-
enableWorkspaceContext = false
157-
}
158-
}
159-
if (!enableWorkspaceContext) {
160-
return []
161-
}
162-
163151
try {
164152
controller = await LocalProjectContextController.getInstance()
165153
} catch (e) {

0 commit comments

Comments
 (0)