refactor: revert openRemoteFolder function to member function (not static)
This commit is contained in:
@@ -137,9 +137,9 @@ export default class RemoteContainer {
|
||||
}
|
||||
|
||||
|
||||
static openRemoteFolder(host: string, port: number, username: string, path: string): void {
|
||||
var host = `${host}-${port}`
|
||||
const command = `code --remote ssh-remote+${username}@${host} ${path} --reuse-window`
|
||||
openRemoteFolder(host: string, port: number, username: string, path: string): void {
|
||||
// var host = `${host}-${port}`
|
||||
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