feat: open project without logging

This commit is contained in:
Levi Yan
2025-02-25 11:43:06 +08:00
parent 04b2d6bcaf
commit 7d21c0df5a
3 changed files with 13 additions and 18 deletions

View File

@@ -146,3 +146,11 @@ export default class RemoteContainer {
}
}
export async function openProjectWithoutLogging(host: string, port: number, username: string, path: string): Promise<void> {
const command = `code --remote ssh-remote+${username}@${host}:${port} ${path} --reuse-window`
let terminal = vscode.window.activeTerminal || vscode.window.createTerminal(`Ext Terminal`);
terminal.show(true);
terminal.sendText(command);
}