We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a08c7c commit f6efa2bCopy full SHA for f6efa2b
src/core/prompts/sections/modes.ts
@@ -12,9 +12,7 @@ export async function getModesSection(context: vscode.ExtensionContext): Promise
12
const allModes = await getAllModesWithPrompts(context)
13
14
// Get enableCustomModeCreation setting from extension state
15
- const enableCustomModeCreation = await context.globalState.get<boolean>("enableCustomModeCreation")
16
- // Default to true if undefined
17
- const shouldEnableCustomModeCreation = enableCustomModeCreation !== undefined ? enableCustomModeCreation : true
+ const shouldEnableCustomModeCreation = await context.globalState.get<boolean>("enableCustomModeCreation") ?? true
18
19
let modesContent = `====
20
0 commit comments