fix bug
Some checks failed
backend / cross (arm) (push) Failing after 31s
backend / cross (i686) (push) Failing after 1m31s
backend / cross (mips) (push) Failing after 6m31s
backend / cross (mips64) (push) Failing after 2m48s
backend / cross (mipsel) (push) Failing after 36m43s
backend / cross (win32) (push) Failing after 16m35s
docker / build (push) Failing after 2m37s
backend / cross (aarch64) (push) Failing after 3m20s
backend / cross (armhf) (push) Failing after 31s
backend / cross (mips64el) (push) Failing after 6m37s
backend / cross (s390x) (push) Failing after 38m17s
backend / cross (x86_64) (push) Failing after 6m31s

This commit is contained in:
2025-10-30 22:26:10 +08:00
parent a9c827fa4c
commit b588f113e3
2 changed files with 16136 additions and 16126 deletions

View File

@@ -367,6 +367,9 @@ export class Xterm {
}
this.containerStatus = data.status;
} else {
if(this.containerStatus !== '4'){
this.writeData("\x1b[31mCreation completed. Please refresh the page to connect to the devcontainer\x1b[0m");
}
this.containerStatus = data.status;
if (data.status === '4') {
const parts = data.command.split('\n');
@@ -445,12 +448,14 @@ export class Xterm {
this.connectStatus === false &&
textDecoder.decode(data).replace(/\s/g, '').includes('Successfully connected to the devcontainer'.replace(/\s/g, ''))
) {
clearInterval(this.intervalID);
this.connectStatus = true;
clearInterval(this.intervalID);
}
// 连接完成之前不输出标题和docker命令
if (
!(this.connectStatus === false && (textDecoder.decode(data).includes('\x1b') || textDecoder.decode(data).replace(/\s/g, '').includes('docker-H')))
!(this.connectStatus === false &&
(textDecoder.decode(data).includes('\x1b') ||
textDecoder.decode(data).replace(/\s/g, '').includes('docker-H')))
){
this.writeFunc(data);
}