style: formatting
This commit is contained in:
		@@ -60,7 +60,7 @@ export default class RemoteContainer {
 | 
			
		||||
              vscode.window.showInformationMessage('安装完成!');
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
              await ssh.dispose();
 | 
			
		||||
            await ssh.dispose();
 | 
			
		||||
          } else {
 | 
			
		||||
            // connect with password (deprecate in future)
 | 
			
		||||
            await ssh.connect({
 | 
			
		||||
@@ -108,7 +108,7 @@ export default class RemoteContainer {
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  async storeHostInfo(host:string, port:number, username:string): Promise<void> {
 | 
			
		||||
  async storeHostInfo(host: string, port: number, username: string): Promise<void> {
 | 
			
		||||
    const sshConfigPath = path.join(os.homedir(), '.ssh', 'config');
 | 
			
		||||
    // check if the host and related info exist in local ssh config file before saving
 | 
			
		||||
    var canAppendSSHConfig = true
 | 
			
		||||
@@ -149,8 +149,8 @@ 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);
 | 
			
		||||
  }
 | 
			
		||||
  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);
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user