Skip to content

Commit f6efa2b

Browse files
Update src/core/prompts/sections/modes.ts
Co-authored-by: Matt Rubens <[email protected]>
1 parent 2a08c7c commit f6efa2b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/prompts/sections/modes.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ export async function getModesSection(context: vscode.ExtensionContext): Promise
1212
const allModes = await getAllModesWithPrompts(context)
1313

1414
// 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
15+
const shouldEnableCustomModeCreation = await context.globalState.get<boolean>("enableCustomModeCreation") ?? true
1816

1917
let modesContent = `====
2018

0 commit comments

Comments
 (0)