[vscode-spring-cli] Basic AI command support
This commit is contained in:
@@ -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> {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user