File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1102,11 +1102,6 @@ export class Core {
1102
1102
}
1103
1103
1104
1104
try {
1105
- const id : ContextItemId = {
1106
- providerTitle : provider . description . title ,
1107
- itemId : uuidv4 ( ) ,
1108
- } ;
1109
-
1110
1105
void Telemetry . capture ( "context_provider_get_context_items" , {
1111
1106
name : provider . description . title ,
1112
1107
} ) ;
@@ -1131,10 +1126,14 @@ export class Core {
1131
1126
true ,
1132
1127
) ;
1133
1128
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
+ } ) ;
1138
1137
} catch ( e ) {
1139
1138
let knownError = false ;
1140
1139
You can’t perform that action at this time.
0 commit comments