Skip to content

Commit 33d7111

Browse files
authored
check if configured gallery url exists (#257633)
1 parent 272c021 commit 33d7111

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/platform/mcp/common/mcpGalleryService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ export class McpGalleryService extends Disposable implements IMcpGalleryService
178178
}
179179

180180
let icon: { light: string; dark: string } | undefined;
181-
if (this.productService.extensionsGallery?.mcpUrl !== this.getMcpGalleryUrl()) {
181+
const mcpGalleryUrl = this.getMcpGalleryUrl();
182+
if (mcpGalleryUrl && this.productService.extensionsGallery?.mcpUrl !== mcpGalleryUrl) {
182183
if (item.iconUrl) {
183184
icon = {
184185
light: item.iconUrl,

0 commit comments

Comments
 (0)