(appName: string)
| 110 | |
| 111 | // Helper function to get VS Code-style config directory |
| 112 | function getVSCodeStyleConfigDir(appName: string): string | null { |
| 113 | const platform = os.platform(); |
| 114 | |
| 115 | if (platform === 'darwin') { |
| 116 | return path.join( |
| 117 | os.homedir(), |
| 118 | 'Library', |
| 119 | 'Application Support', |
| 120 | appName, |
| 121 | 'User', |
| 122 | ); |
| 123 | } else if (platform === 'win32') { |
| 124 | if (!process.env['APPDATA']) { |
| 125 | return null; |
| 126 | } |
| 127 | return path.join(process.env['APPDATA'], appName, 'User'); |
| 128 | } else { |
| 129 | return path.join(os.homedir(), '.config', appName, 'User'); |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | // Generic VS Code-style terminal configuration |
| 134 | async function configureVSCodeStyle( |
no outgoing calls
no test coverage detected