refactor: use unified paramater name in firstOpenProject
This commit is contained in:
@@ -16,12 +16,12 @@ export default class RemoteContainer {
|
||||
this.user = user
|
||||
}
|
||||
|
||||
async firstOpenProject(host: string, port: number, username: string, path: string, context: vscode.ExtensionContext) {
|
||||
await this.firstConnect(host, username, port, context)
|
||||
async firstOpenProject(hostname: string, port: number, username: string, path: string, context: vscode.ExtensionContext) {
|
||||
await this.firstConnect(hostname, username, port, context)
|
||||
.then((res) => {
|
||||
if (res === 'success') {
|
||||
// only success then open folder
|
||||
this.openRemoteFolder(host, port, username, path);
|
||||
this.openRemoteFolder(hostname, port, username, path);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user