Skip to content

Commit e3351e2

Browse files
authored
cli: fix error starting remote tunnels (microsoft#185782)
Fixes microsoft#185585 Output was prefixed which prevented the lines from being split to detect the tunnel status.
1 parent 3a6e18d commit e3351e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/platform/remoteTunnel/node/remoteTunnelService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,13 @@ export class RemoteTunnelService extends Disposable implements IRemoteTunnelServ
340340
}
341341
});
342342
if (!this.environmentService.isBuilt) {
343-
onOutput('Building tunnel CLI from sources and run', false);
344-
onOutput(`${logLabel} Spawning: cargo run -- tunnel ${commandArgs.join(' ')}`, false);
343+
onOutput('Building tunnel CLI from sources and run\n', false);
344+
onOutput(`${logLabel} Spawning: cargo run -- tunnel ${commandArgs.join(' ')}\n`, false);
345345
tunnelProcess = spawn('cargo', ['run', '--', 'tunnel', ...commandArgs], { cwd: join(this.environmentService.appRoot, 'cli'), stdio });
346346
} else {
347-
onOutput('Running tunnel CLI', false);
347+
onOutput('Running tunnel CLI\n', false);
348348
const tunnelCommand = this.getTunnelCommandLocation();
349-
onOutput(`${logLabel} Spawning: ${tunnelCommand} tunnel ${commandArgs.join(' ')}`, false);
349+
onOutput(`${logLabel} Spawning: ${tunnelCommand} tunnel ${commandArgs.join(' ')}\n`, false);
350350
tunnelProcess = spawn(tunnelCommand, ['tunnel', ...commandArgs], { cwd: homedir(), stdio });
351351
}
352352

0 commit comments

Comments
 (0)