From 71e22ab977f7d17dc6abe3c5a174975f3f360da5 Mon Sep 17 00:00:00 2001 From: lixiaoyang1992 Date: Tue, 11 Nov 2025 14:18:14 +0800 Subject: [PATCH] fix: update global directory path conversion to use localPathToUri --- core/config/workspace/workspaceBlocks.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/config/workspace/workspaceBlocks.ts b/core/config/workspace/workspaceBlocks.ts index 9ba16b400..7dcdecf63 100644 --- a/core/config/workspace/workspaceBlocks.ts +++ b/core/config/workspace/workspaceBlocks.ts @@ -1,13 +1,13 @@ import { BlockType, ConfigYaml, - createRuleMarkdown, createPromptMarkdown, - RULE_FILE_EXTENSION, + createRuleMarkdown, } from "@continuedev/config-yaml"; import * as YAML from "yaml"; import { IDE } from "../.."; import { getContinueGlobalPath } from "../../util/paths"; +import { localPathToUri } from "../../util/pathToUri"; import { joinPathsToUri } from "../../util/uri"; const BLOCK_TYPE_CONFIG: Record< @@ -165,7 +165,7 @@ export async function createNewWorkspaceBlockFile( export async function createNewGlobalRuleFile(ide: IDE): Promise { try { - const globalDir = getContinueGlobalPath(); + const globalDir = localPathToUri(getContinueGlobalPath()); // Create the rules subdirectory within the global directory const rulesDir = joinPathsToUri(globalDir, "rules");