File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
src/vs/platform/mcp/common Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,22 @@ export class McpGalleryService extends Disposable implements IMcpGalleryService
177
177
}
178
178
}
179
179
180
+ let icon : { light : string ; dark : string } | undefined ;
181
+ if ( this . productService . extensionsGallery ?. mcpUrl !== this . getMcpGalleryUrl ( ) ) {
182
+ if ( item . iconUrl ) {
183
+ icon = {
184
+ light : item . iconUrl ,
185
+ dark : item . iconUrl
186
+ } ;
187
+ }
188
+ if ( item . iconUrlLight && item . iconUrlDark ) {
189
+ icon = {
190
+ light : item . iconUrlLight ,
191
+ dark : item . iconUrlDark
192
+ } ;
193
+ }
194
+ }
195
+
180
196
return {
181
197
id : item . id ?? item . name ,
182
198
name : item . name ,
@@ -187,6 +203,7 @@ export class McpGalleryService extends Disposable implements IMcpGalleryService
187
203
lastUpdated : item . version_detail ? Date . parse ( item . version_detail . release_date ) : undefined ,
188
204
repositoryUrl : item . repository ?. url ,
189
205
codicon : item . codicon ,
206
+ icon,
190
207
readmeUrl : item . readmeUrl ,
191
208
manifestUrl : this . getManifestUrl ( item ) ,
192
209
packageTypes : item . package_types ?? [ ] ,
You can’t perform that action at this time.
0 commit comments