mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-09 22:31:08 +00:00
Send custom modes to the extension bridge (#7612)
This commit is contained in:
parent
5196c75017
commit
641c058587
1 changed files with 6 additions and 1 deletions
|
|
@ -2392,7 +2392,12 @@ export class ClineProvider
|
|||
// Modes
|
||||
|
||||
public async getModes(): Promise<{ slug: string; name: string }[]> {
|
||||
return DEFAULT_MODES.map((mode) => ({ slug: mode.slug, name: mode.name }))
|
||||
try {
|
||||
const customModes = await this.customModesManager.getCustomModes()
|
||||
return [...DEFAULT_MODES, ...customModes].map(({ slug, name }) => ({ slug, name }))
|
||||
} catch (error) {
|
||||
return DEFAULT_MODES.map(({ slug, name }) => ({ slug, name }))
|
||||
}
|
||||
}
|
||||
|
||||
public async getMode(): Promise<string> {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue