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 * as fs from "fs/promises"
45import pWaitFor from "p-wait-for"
56import * as vscode from "vscode"
@@ -1516,9 +1517,9 @@ export const webviewMessageHandler = async (
15161517 rulesFolderPath = path . join ( ".roo" , `rules-${ message . slug } ` )
15171518 }
15181519 } else {
1519- // Global scope - use VSCode's environment variables
1520- const homeDir = vscode . env . userHome
1521- rulesFolderPath = vscode . Uri . joinPath ( homeDir , ".roo" , `rules-${ message . slug } ` ) . fsPath
1520+ // Global scope - use OS home directory
1521+ const homeDir = os . homedir ( )
1522+ rulesFolderPath = path . join ( homeDir , ".roo" , `rules-${ message . slug } ` )
15221523 }
15231524
15241525 // Check if the rules folder exists
You can’t perform that action at this time.
0 commit comments