Skip to content

Commit 03fd3f8

Browse files
authored
Merge pull request #8677 from lixiaoyang1992/fix-create-global-rule
fix: update global directory path conversion to use localPathToUri
2 parents 7802a0d + 71e22ab commit 03fd3f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/config/workspace/workspaceBlocks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {
22
BlockType,
33
ConfigYaml,
4-
createRuleMarkdown,
54
createPromptMarkdown,
6-
RULE_FILE_EXTENSION,
5+
createRuleMarkdown,
76
} from "@continuedev/config-yaml";
87
import * as YAML from "yaml";
98
import { IDE } from "../..";
109
import { getContinueGlobalPath } from "../../util/paths";
10+
import { localPathToUri } from "../../util/pathToUri";
1111
import { joinPathsToUri } from "../../util/uri";
1212

1313
const BLOCK_TYPE_CONFIG: Record<
@@ -165,7 +165,7 @@ export async function createNewWorkspaceBlockFile(
165165

166166
export async function createNewGlobalRuleFile(ide: IDE): Promise<void> {
167167
try {
168-
const globalDir = getContinueGlobalPath();
168+
const globalDir = localPathToUri(getContinueGlobalPath());
169169

170170
// Create the rules subdirectory within the global directory
171171
const rulesDir = joinPathsToUri(globalDir, "rules");

0 commit comments

Comments
 (0)