refactor: convert openRemoteFolder to a static method, and adjust the sort of parameters
This commit is contained in:
@@ -137,7 +137,7 @@ export default class RemoteContainer {
|
||||
}
|
||||
|
||||
|
||||
openRemoteFolder(host: string, username: string, port: number, path: string): void {
|
||||
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`
|
||||
let terminal = vscode.window.activeTerminal || vscode.window.createTerminal(`Ext Terminal`);
|
||||
|
Reference in New Issue
Block a user