Skip to content

Commit 40667ce

Browse files
committed
Send custom modes to the extension bridge
1 parent 5196c75 commit 40667ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,9 @@ export class ClineProvider
23922392
// Modes
23932393

23942394
public async getModes(): Promise<{ slug: string; name: string }[]> {
2395-
return DEFAULT_MODES.map((mode) => ({ slug: mode.slug, name: mode.name }))
2395+
const defaultModes = DEFAULT_MODES.map((mode) => ({ slug: mode.slug, name: mode.name }))
2396+
const customModes = await this.customModesManager.getCustomModes()
2397+
return [...defaultModes, ...customModes]
23962398
}
23972399

23982400
public async getMode(): Promise<string> {

0 commit comments

Comments
 (0)