mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Update src/core/prompts/sections/modes.ts
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
This commit is contained in:
parent
2a08c7c3db
commit
f6efa2b589
1 changed files with 1 additions and 3 deletions
|
|
@ -12,9 +12,7 @@ export async function getModesSection(context: vscode.ExtensionContext): Promise
|
|||
const allModes = await getAllModesWithPrompts(context)
|
||||
|
||||
// Get enableCustomModeCreation setting from extension state
|
||||
const enableCustomModeCreation = await context.globalState.get<boolean>("enableCustomModeCreation")
|
||||
// Default to true if undefined
|
||||
const shouldEnableCustomModeCreation = enableCustomModeCreation !== undefined ? enableCustomModeCreation : true
|
||||
const shouldEnableCustomModeCreation = await context.globalState.get<boolean>("enableCustomModeCreation") ?? true
|
||||
|
||||
let modesContent = `====
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue