File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import { safeWriteJson } from "../../utils/safeWriteJson"
22import * as path from "path"
3+ import * as os from "os"
34import fs from "fs/promises"
45import pWaitFor from "p-wait-for"
56import * as vscode from "vscode"
@@ -1507,9 +1508,9 @@ export const webviewMessageHandler = async (
15071508 rulesFolderPath = path . join ( ".roo" , `rules-${ message . slug } ` )
15081509 }
15091510 } else {
1510- // Global scope - use VSCode's environment variables
1511- const homeDir = vscode . env . userHome
1512- rulesFolderPath = vscode . Uri . joinPath ( homeDir , ".roo" , `rules-${ message . slug } ` ) . fsPath
1511+ // Global scope - use OS home directory
1512+ const homeDir = os . homedir ( )
1513+ rulesFolderPath = path . join ( homeDir , ".roo" , `rules-${ message . slug } ` )
15131514 }
15141515
15151516 // Check if the rules folder exists
You can’t perform that action at this time.
0 commit comments