fix bug loading config.yaml
This commit is contained in:
parent
0ed8612782
commit
98ba407941
2 changed files with 9 additions and 5 deletions
|
|
@ -3,6 +3,7 @@ import fs from "node:fs";
|
|||
import {
|
||||
AssistantUnrolled,
|
||||
ConfigResult,
|
||||
parseAssistantUnrolled,
|
||||
validateConfigYaml,
|
||||
} from "@continuedev/config-yaml";
|
||||
import { fetchwithRequestOptions } from "@continuedev/fetch";
|
||||
|
|
@ -34,10 +35,10 @@ import { PlatformConfigMetadata } from "../profile/PlatformProfileLoader";
|
|||
|
||||
import { slashFromCustomCommand } from "../../commands";
|
||||
import { allTools } from "../../tools";
|
||||
import { clientRenderHelper } from "./clientRender";
|
||||
import { llmsFromModelConfig } from "./models";
|
||||
import { GlobalContext } from "../../util/GlobalContext";
|
||||
import { modifyContinueConfigWithSharedConfig } from "../sharedConfig";
|
||||
import { clientRenderHelper } from "./clientRender";
|
||||
import { llmsFromModelConfig } from "./models";
|
||||
|
||||
async function loadConfigYaml(
|
||||
workspaceConfigs: string[],
|
||||
|
|
@ -46,9 +47,12 @@ async function loadConfigYaml(
|
|||
ide: IDE,
|
||||
controlPlaneClient: ControlPlaneClient,
|
||||
): Promise<ConfigResult<AssistantUnrolled>> {
|
||||
const ideSettings = await ide.getIdeSettings();
|
||||
let config =
|
||||
overrideConfigYaml ??
|
||||
(await clientRenderHelper(rawYaml, ide, controlPlaneClient));
|
||||
(ideSettings.continueTestEnvironment === "production"
|
||||
? await clientRenderHelper(rawYaml, ide, controlPlaneClient)
|
||||
: parseAssistantUnrolled(rawYaml));
|
||||
const errors = validateConfigYaml(config);
|
||||
|
||||
if (errors?.some((error) => error.fatal)) {
|
||||
|
|
|
|||
4
extensions/vscode/package-lock.json
generated
4
extensions/vscode/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "continue",
|
||||
"version": "0.9.259",
|
||||
"version": "0.9.260",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "continue",
|
||||
"version": "0.9.259",
|
||||
"version": "0.9.260",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/fetch": "^1.0.3",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue