直接ssh进入容器并且移除自动进入HOME页面

This commit is contained in:
2025-11-10 13:58:45 +08:00
parent 7e33976d51
commit ab2c05711b
2 changed files with 7 additions and 9 deletions

View File

@@ -83,7 +83,9 @@ export class DevStarExtension {
this.dsHome.setDevstarDomainAndHomePageURL(devstarDomain) this.dsHome.setDevstarDomainAndHomePageURL(devstarDomain)
this.dsHome.setUser(this.user) this.dsHome.setUser(this.user)
this.dsHome.setRemoteContainer(this.remoteContainer) this.dsHome.setRemoteContainer(this.remoteContainer)
vscode.commands.executeCommand('devstar.showHome');
//防止进入HOME页面
// vscode.commands.executeCommand('devstar.showHome');
// 将devstar domain存在global state中 // 将devstar domain存在global state中
context.globalState.update('devstarDomain', devstarDomain) context.globalState.update('devstarDomain', devstarDomain)
@@ -169,13 +171,9 @@ export class DevStarExtension {
); );
this.registerGlobalCommands(context); this.registerGlobalCommands(context);
this.startDevStarHome(); //防止进入HOME页面
} // this.startDevStarHome();
async startDevStarHome() {
vscode.commands.executeCommand('devstar.showHome');
} }

View File

@@ -93,7 +93,7 @@ export default class RemoteContainer {
console.log(`[RemoteContainer] Running in local environment, attempting firstConnect`); console.log(`[RemoteContainer] Running in local environment, attempting firstConnect`);
try { try {
//传入真实IP //传入真实IP
await this.firstConnect(host, '192.168.10.4', username, port) await this.firstConnect(host, hostname, username, port)
.then((res) => { .then((res) => {
if (res === 'success') { if (res === 'success') {
console.log(`[RemoteContainer] firstConnect succeeded, opening remote folder`); console.log(`[RemoteContainer] firstConnect succeeded, opening remote folder`);