mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
Minor UX updates for IDE mode (#4311)
This commit is contained in:
parent
f6ee0d182b
commit
69a8ae6a89
5 changed files with 99 additions and 2 deletions
|
|
@ -306,10 +306,15 @@ export async function loadCliConfig(
|
|||
}
|
||||
|
||||
if (ideMode) {
|
||||
if (mcpServers[IDE_SERVER_NAME]) {
|
||||
logger.warn(
|
||||
`Ignoring user-defined MCP server config for "${IDE_SERVER_NAME}" as it is a reserved name.`,
|
||||
);
|
||||
}
|
||||
const companionPort = process.env.GEMINI_CLI_IDE_SERVER_PORT;
|
||||
if (!companionPort) {
|
||||
throw new Error(
|
||||
"Could not run in ide mode, make sure you're running in vs code integrated terminal. Try running in a fresh terminal.",
|
||||
'Could not connect to IDE. Make sure you have the companion VS Code extension installed from the marketplace or via /ide install.',
|
||||
);
|
||||
}
|
||||
const httpUrl = `http://localhost:${companionPort}/mcp`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue