mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
fix(plugin): user plugins override built-in plugins for same provider (#12361)
This commit is contained in:
parent
28c8182bd5
commit
09a0e921ce
@ -44,11 +44,12 @@ export namespace Plugin {
|
||||
hooks.push(init)
|
||||
}
|
||||
|
||||
const plugins = [...(config.plugin ?? [])]
|
||||
if (plugins.length) await Config.waitForDependencies()
|
||||
const plugins: string[] = []
|
||||
if (!Flag.OPENCODE_DISABLE_DEFAULT_PLUGINS) {
|
||||
plugins.push(...BUILTIN)
|
||||
}
|
||||
plugins.push(...(config.plugin ?? []))
|
||||
if (plugins.length) await Config.waitForDependencies()
|
||||
|
||||
for (let plugin of plugins) {
|
||||
// ignore old codex plugin since it is supported first party now
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user