Skip to content

Commit 814579d

Browse files
authored
mcp: fix resource picker sometimes is empty (microsoft#250892)
We didn't trigger a 'change' after the promise resolved, so if we resolve rec.templates and rec.resources synchronously (for a server with no mcp resources) then we could end before publishing everything Refs microsoft#250890
1 parent a6fad16 commit 814579d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/contrib/mcp/browser/mcpResourceQuickAccess.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ export class McpResourcePickHelper {
329329
rec.templates.complete([]);
330330
rec.resources.complete([]);
331331
}
332+
publish();
332333
})).finally(() => {
333334
store.dispose();
334335
});

0 commit comments

Comments
 (0)