refactor: remove operations that are no longer used under Remote Env

This commit is contained in:
Levi Yan
2025-06-11 13:36:08 +08:00
parent 35bd842979
commit 3ed039b62c
3 changed files with 33 additions and 152 deletions

View File

@@ -116,22 +116,4 @@ export async function showErrorNotification(message: string): Promise<void> {
} else if (selection === 'Report a problem') {
vscode.commands.executeCommand('vscode.open', vscode.Uri.parse('https://gitee.com/SuperIDE/DevStar/issues'));
}
}
export function updateLocalSystemName(context: vscode.ExtensionContext) {
// win32, linux, darwin
const name = os.platform()
context.globalState.update('localSystemName', name)
}
export function getLocalSystemName(context: vscode.ExtensionContext): string | undefined {
return context.globalState.get('localSystemName')
}
export function updateLocalSSHConfigPath(context: vscode.ExtensionContext) {
context.globalState.update('localSSHConfigPath', path.join(os.homedir(), '.ssh', 'config'))
}
export function getLocalSSHConfigPath(context: vscode.ExtensionContext): undefined | string{
return context.globalState.get('localSSHConfigPath')
}