15 lines
404 B
TypeScript
15 lines
404 B
TypeScript
import type {
|
|
ExtensionAPI,
|
|
ExtensionCommandContext,
|
|
} from "@mariozechner/pi-coding-agent";
|
|
import { showAskSettings } from "./ui/show-settings.ts";
|
|
|
|
export function registerAskSettingsCommand(pi: ExtensionAPI) {
|
|
pi.registerCommand("ask-settings", {
|
|
description: "Open ask settings",
|
|
handler: async (_args: string, ctx: ExtensionCommandContext) => {
|
|
await showAskSettings(ctx.ui);
|
|
},
|
|
});
|
|
}
|