From ab2c05711b44be5686351197b1d601910698905b Mon Sep 17 00:00:00 2001 From: yinxue <2643126914@qq.com> Date: Mon, 10 Nov 2025 13:58:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5ssh=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E5=B9=B6=E4=B8=94=E7=A7=BB=E9=99=A4=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=BF=9B=E5=85=A5HOME=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 14 ++++++-------- src/remote-container.ts | 2 +- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main.ts b/src/main.ts index 8f02136..52ea4d5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -83,7 +83,9 @@ export class DevStarExtension { this.dsHome.setDevstarDomainAndHomePageURL(devstarDomain) this.dsHome.setUser(this.user) this.dsHome.setRemoteContainer(this.remoteContainer) - vscode.commands.executeCommand('devstar.showHome'); + + //防止进入HOME页面 + // vscode.commands.executeCommand('devstar.showHome'); // 将devstar domain存在global state中 context.globalState.update('devstarDomain', devstarDomain) @@ -169,13 +171,9 @@ export class DevStarExtension { ); this.registerGlobalCommands(context); - - this.startDevStarHome(); - } - - - async startDevStarHome() { - vscode.commands.executeCommand('devstar.showHome'); + + //防止进入HOME页面 + // this.startDevStarHome(); } diff --git a/src/remote-container.ts b/src/remote-container.ts index 5900ea5..5343ee8 100644 --- a/src/remote-container.ts +++ b/src/remote-container.ts @@ -93,7 +93,7 @@ export default class RemoteContainer { console.log(`[RemoteContainer] Running in local environment, attempting firstConnect`); try { //传入真实IP - await this.firstConnect(host, '192.168.10.4', username, port) + await this.firstConnect(host, hostname, username, port) .then((res) => { if (res === 'success') { console.log(`[RemoteContainer] firstConnect succeeded, opening remote folder`);