From f818d00cc6b468404bcd9fc4cee8fe29d0c8c42f Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Thu, 24 Jul 2025 12:56:55 +0200 Subject: [PATCH] check if configured gallery url exists --- src/vs/platform/mcp/common/mcpGalleryService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vs/platform/mcp/common/mcpGalleryService.ts b/src/vs/platform/mcp/common/mcpGalleryService.ts index 5f397f8d1f257..b72e3a201754a 100644 --- a/src/vs/platform/mcp/common/mcpGalleryService.ts +++ b/src/vs/platform/mcp/common/mcpGalleryService.ts @@ -178,7 +178,8 @@ export class McpGalleryService extends Disposable implements IMcpGalleryService } let icon: { light: string; dark: string } | undefined; - if (this.productService.extensionsGallery?.mcpUrl !== this.getMcpGalleryUrl()) { + const mcpGalleryUrl = this.getMcpGalleryUrl(); + if (mcpGalleryUrl && this.productService.extensionsGallery?.mcpUrl !== mcpGalleryUrl) { if (item.iconUrl) { icon = { light: item.iconUrl,