mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-02 00:09:30 +01:00
better command detection
This commit is contained in:
@@ -156,7 +156,7 @@ pub async fn agent_host(ctx: CommandContext, mut args: AgentHostArgs) -> Result<
|
||||
tokio::select! {
|
||||
Ok(Some(l)) = stdout.next_line() => {
|
||||
debug!(ctx.log, "[server stdout]: {}", l);
|
||||
if l.contains("Extension host agent listening on") {
|
||||
if l.contains("Agent host server listening on") {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,4 +146,6 @@ async function startWebSocketServer(agentService: AgentService, logService: ILog
|
||||
|
||||
const listenTarget = socketPath ?? `${host}:${port}`;
|
||||
logService.info(`[AgentHost] WebSocket server listening on ${listenTarget}`);
|
||||
// Do not change this line. The CLI looks for this in the output.
|
||||
console.log(`Agent host server listening on ${listenTarget}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user