refactor: remove operations that are no longer used under Remote Env
This commit is contained in:
18
src/utils.ts
18
src/utils.ts
@@ -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')
|
||||
}
|
Reference in New Issue
Block a user