MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getVSCodeStyleConfigDir

Function getVSCodeStyleConfigDir

packages/cli/src/ui/utils/terminalSetup.ts:112–131  ·  view source on GitHub ↗
(appName: string)

Source from the content-addressed store, hash-verified

110
111// Helper function to get VS Code-style config directory
112function 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
134async function configureVSCodeStyle(

Callers 1

configureVSCodeStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected