Skip to content

Commit 377e515

Browse files
committed
Fix: resolve the context retrieval issue for codebase and docs
Due to the new retrieval mechanism, getting context items for codebase and docx is not working. This patch resolve the issue. #6411
1 parent 312fe0a commit 377e515

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

core/core.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,11 +1102,6 @@ export class Core {
11021102
}
11031103

11041104
try {
1105-
const id: ContextItemId = {
1106-
providerTitle: provider.description.title,
1107-
itemId: uuidv4(),
1108-
};
1109-
11101105
void Telemetry.capture("context_provider_get_context_items", {
11111106
name: provider.description.title,
11121107
});
@@ -1131,10 +1126,14 @@ export class Core {
11311126
true,
11321127
);
11331128

1134-
return items.map((item) => ({
1135-
...item,
1136-
id,
1137-
}));
1129+
return items.map((item) => {
1130+
const id: ContextItemId = {
1131+
providerTitle: provider.description.title,
1132+
itemId: uuidv4(),
1133+
};
1134+
1135+
return { ...item, id };
1136+
});
11381137
} catch (e) {
11391138
let knownError = false;
11401139

0 commit comments

Comments
 (0)