[vscode-spring-cli] Basic AI command support

This commit is contained in:
aboyko
2024-01-27 23:51:23 -05:00
parent 48fcde87e3
commit cebd63c697
7 changed files with 171 additions and 29 deletions

View File

@@ -5,31 +5,37 @@ import { handleCatalogAdd, handleCatalogRemove } from "./project-catalog";
import { handleProjectAdd, handleProjectRemove } from "./project";
import { handleCommandAdd, handleCommandExecute, handleCommandNew, handleCommandRemove } from "./command";
import { ExtensionContext, commands, tasks } from "vscode";
import { handleAiAdd } from "./ai";
import { handleGuideApply } from "./guide";
export const CLI = new Cli();
export async function activate(context: ExtensionContext): Promise<void> {
context.subscriptions.push(...[
]);
context.subscriptions.push(commands.registerCommand('vscode-spring-cli.boot.new', handleBootNew));
context.subscriptions.push(commands.registerCommand('vscode-spring-cli.boot.add', handleBootAdd));
context.subscriptions.push(commands.registerCommand('vscode-spring-cli.project-catalog.add', handleCatalogAdd));
context.subscriptions.push(commands.registerCommand('vscode-spring-cli.project-catalog.remove', handleCatalogRemove));
context.subscriptions.push(commands.registerCommand('vscode-spring-cli.project.add', handleProjectAdd));
context.subscriptions.push(commands.registerCommand('vscode-spring-cli.project.remove', handleProjectRemove));
context.subscriptions.push(commands.registerCommand('vscode-spring-cli.command.add', handleCommandAdd));
context.subscriptions.push(commands.registerCommand('vscode-spring-cli.command.remove', handleCommandRemove));
context.subscriptions.push(commands.registerCommand('vscode-spring-cli.command.new', handleCommandNew));
context.subscriptions.push(commands.registerCommand('vscode-spring-cli.command.execute', handleCommandExecute));
context.subscriptions.push(tasks.registerTaskProvider(SPRING_CLI_TASK_TYPE, new CliTaskProvider(CLI)));
context.subscriptions.push(
commands.registerCommand('vscode-spring-cli.boot.new', handleBootNew),
commands.registerCommand('vscode-spring-cli.boot.add', handleBootAdd),
commands.registerCommand('vscode-spring-cli.project-catalog.add', handleCatalogAdd),
commands.registerCommand('vscode-spring-cli.project-catalog.remove', handleCatalogRemove),
commands.registerCommand('vscode-spring-cli.project.add', handleProjectAdd),
commands.registerCommand('vscode-spring-cli.project.remove', handleProjectRemove),
commands.registerCommand('vscode-spring-cli.command.add', handleCommandAdd),
commands.registerCommand('vscode-spring-cli.command.remove', handleCommandRemove),
commands.registerCommand('vscode-spring-cli.command.new', handleCommandNew),
commands.registerCommand('vscode-spring-cli.command.execute', handleCommandExecute),
commands.registerCommand('vscode-spring-cli.ai.add', handleAiAdd),
commands.registerCommand('vscode-spring-cli.guide.apply', handleGuideApply),
tasks.registerTaskProvider(SPRING_CLI_TASK_TYPE, new CliTaskProvider(CLI))
);
}
export async function deactivate(): Promise<void> {
}