Update config-manager.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
0286c46f17
commit
c19eeeb0b0
@ -293,19 +293,11 @@ function getEffectivelyEnabledItems(config) {
|
|||||||
chatmodes: new Set()
|
chatmodes: new Set()
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const itemName in effectiveStates.prompts) {
|
for (const section of ["prompts", "instructions", "chatmodes"]) {
|
||||||
if (effectiveStates.prompts[itemName].enabled) {
|
for (const itemName in effectiveStates[section]) {
|
||||||
result.prompts.add(itemName);
|
if (effectiveStates[section][itemName].enabled) {
|
||||||
}
|
result[section].add(itemName);
|
||||||
}
|
}
|
||||||
for (const itemName in effectiveStates.instructions) {
|
|
||||||
if (effectiveStates.instructions[itemName].enabled) {
|
|
||||||
result.instructions.add(itemName);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
for (const itemName in effectiveStates.chatmodes) {
|
|
||||||
if (effectiveStates.chatmodes[itemName].enabled) {
|
|
||||||
result.chatmodes.add(itemName);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user