Merge pull request #6759 from fbricon/fix-yaml-schema
fix: register YAML config schema by its URI in VS Code
This commit is contained in:
commit
779b340b95
1 changed files with 3 additions and 5 deletions
|
|
@ -1,5 +1,3 @@
|
|||
import * as path from "path";
|
||||
|
||||
import { getContinueRcPath, getTsConfigPath } from "core/util/paths";
|
||||
import { Telemetry } from "core/util/posthog";
|
||||
import * as vscode from "vscode";
|
||||
|
|
@ -58,10 +56,10 @@ export async function activateExtension(context: vscode.ExtensionContext) {
|
|||
const yamlMatcher = ".continue/**/*.yaml";
|
||||
const yamlConfig = vscode.workspace.getConfiguration("yaml");
|
||||
|
||||
const newPath = path.join(
|
||||
context.extension.extensionUri.fsPath,
|
||||
const newPath = vscode.Uri.joinPath(
|
||||
context.extension.extensionUri,
|
||||
"config-yaml-schema.json",
|
||||
);
|
||||
).toString();
|
||||
|
||||
try {
|
||||
await yamlConfig.update(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue