mirror of
https://github.com/EthanMarti/infio-copilot.git
synced 2026-01-16 16:31:56 +00:00
remove mode setting
This commit is contained in:
parent
032111994b
commit
3493bccb43
@ -112,22 +112,6 @@ export class InfioSettingTab extends PluginSettingTab {
|
||||
});
|
||||
}),
|
||||
);
|
||||
new Setting(containerEl)
|
||||
.setName('Mode for new chat')
|
||||
.setDesc('Choose the mode to use when starting a new chat.')
|
||||
.addDropdown((dropdown) =>
|
||||
dropdown
|
||||
.addOption('ask', 'Ask')
|
||||
.addOption('write', 'Write')
|
||||
.addOption('research', 'Research')
|
||||
.setValue(this.plugin.settings.mode || 'ask')
|
||||
.onChange(async (value) => {
|
||||
await this.plugin.setSettings({
|
||||
...this.plugin.settings,
|
||||
mode: value as 'ask' | 'write' | 'research',
|
||||
});
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
renderModelsSection(containerEl: HTMLElement): void {
|
||||
|
||||
@ -229,7 +229,7 @@ export const InfioSettingsSchema = z.object({
|
||||
multiSearchReplaceDiffStrategy: z.boolean().catch(true),
|
||||
|
||||
// Mode
|
||||
mode: z.enum(['ask', 'write', 'research']).catch('ask'),
|
||||
mode: z.string().catch('ask'),
|
||||
defaultMention: z.enum(['none', 'current-file', 'vault']).catch('none'),
|
||||
|
||||
// web search
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user