We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a59451c + ebeb661 commit 31d2c91Copy full SHA for 31d2c91
core/core.ts
@@ -38,6 +38,7 @@ import { TTS } from "./util/tts";
38
39
import {
40
CompleteOnboardingPayload,
41
+ ContextItemId,
42
ContextItemWithId,
43
IdeSettings,
44
ModelDescription,
@@ -1124,13 +1125,14 @@ export class Core {
1124
1125
true,
1126
);
1127
- return items.map((item) => ({
1128
- ...item,
1129
- id: {
+ return items.map((item) => {
+ const id: ContextItemId = {
1130
providerTitle: provider.description.title,
1131
- itemId: item.uri?.value ?? uuidv4(),
1132
- },
1133
- }));
+ itemId: uuidv4(),
+ };
+
1134
+ return { ...item, id };
1135
+ });
1136
} catch (e) {
1137
let knownError = false;
1138
0 commit comments