Skip to content

Commit 85f7d62

Browse files
committed
fix: register YAML config schema by its URI in VS Code
Signed-off-by: Fred Bricon <[email protected]>
1 parent 13c1b0c commit 85f7d62

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

extensions/vscode/src/activation/activate.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import * as path from "path";
2-
31
import { getContinueRcPath, getTsConfigPath } from "core/util/paths";
42
import { Telemetry } from "core/util/posthog";
53
import * as vscode from "vscode";
@@ -38,10 +36,10 @@ export async function activateExtension(context: vscode.ExtensionContext) {
3836
const yamlMatcher = ".continue/**/*.yaml";
3937
const yamlConfig = vscode.workspace.getConfiguration("yaml");
4038

41-
const newPath = path.join(
42-
context.extension.extensionUri.fsPath,
39+
const newPath = vscode.Uri.joinPath(
40+
context.extension.extensionUri,
4341
"config-yaml-schema.json",
44-
);
42+
).toString();
4543

4644
try {
4745
await yamlConfig.update(

0 commit comments

Comments
 (0)