refactor: simplify ask settings UI
This commit is contained in:
@@ -2,13 +2,13 @@ import type {
|
||||
ExtensionAPI,
|
||||
ExtensionCommandContext,
|
||||
} from "@mariozechner/pi-coding-agent";
|
||||
import { showAskSettingsModal } from "./ui/show-settings-modal.ts";
|
||||
import { showAskSettings } from "./ui/show-settings.ts";
|
||||
|
||||
export function registerAskSettingsCommand(pi: ExtensionAPI) {
|
||||
pi.registerCommand("ask-settings", {
|
||||
description: "Open the ask settings modal",
|
||||
description: "Open ask settings",
|
||||
handler: async (_args: string, ctx: ExtensionCommandContext) => {
|
||||
await showAskSettingsModal(ctx.ui);
|
||||
await showAskSettings(ctx.ui);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user