✨ add problems context provider to config.json
This commit is contained in:
parent
5096946b57
commit
867228a468
1 changed files with 21 additions and 0 deletions
|
|
@ -112,6 +112,27 @@ class VsCodeIde implements IDE {
|
|||
);
|
||||
});
|
||||
|
||||
migrate("problemsContextProvider", () => {
|
||||
if (
|
||||
!config.contextProviders?.filter((cp) => cp.name === "problems")
|
||||
?.length
|
||||
) {
|
||||
config.contextProviders = [
|
||||
...(config.contextProviders || []),
|
||||
{
|
||||
name: "problems",
|
||||
params: {},
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
fs.writeFileSync(
|
||||
configPath,
|
||||
JSON.stringify(config, undefined, 2),
|
||||
"utf8"
|
||||
);
|
||||
});
|
||||
|
||||
migrate("renameFreeTrialProvider", () => {
|
||||
contents = contents.replace(/openai-free-trial/g, "free-trial");
|
||||
fs.writeFileSync(configPath, contents, "utf8");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue