feat: two new global state variable( localSystemName, localSSHConfigPath) used to support first connect in remote environment
This commit is contained in:
@@ -85,7 +85,11 @@ export class DevStarExtension {
|
||||
this.registerGlobalCommands(context);
|
||||
|
||||
if (vscode.env.remoteName === undefined) {
|
||||
// 如果处于local,且localSystemName未存储,则存储
|
||||
// 本地环境,存储localSystemName, localSSHConfigPath,以备远程环境使用
|
||||
const localSSHConfigPath = utils.getLocalSSHConfigPath(context)
|
||||
if (localSSHConfigPath === undefined || localSSHConfigPath === "") {
|
||||
utils.updateLocalSSHConfigPath(context)
|
||||
}
|
||||
const localSystemName = utils.getLocalSystemName(context)
|
||||
if (localSystemName === undefined || localSystemName === "") {
|
||||
utils.updateLocalSystemName(context)
|
||||
|
Reference in New Issue
Block a user