1693
// MCP autostart: only run for native VS Code sessions (sidebar, new editors) but not for extension contributed sessions that have inputType set.
1694
if (model.canUseTools) {
1695
>
const autostartResult = new ChatMcpServersStarting(this.mcpService.autostart(token));
chatServiceImpl.ts
1696
>
if (!autostartResult.isEmpty) {
1697
progressCallback([autostartResult]);
1698
await autostartResult.wait();
1699
}
1701
1702
const agentResult = await this.chatAgentService.invokeAgent(agent.id, requestProps, progressCallback, history, token);