refactor: use unified paramater name in firstOpenProject

This commit is contained in:
Levi Yan
2025-05-13 18:13:08 +08:00
parent e4de00d390
commit 83f7d7bb29

View File

@@ -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);
}
})
}