Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: prompt-tsx version update and clean up stuff #9

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/adobe/aem-github-copilot"
},
"version": "0.0.5",
"version": "0.0.6",
"engines": {
"vscode": "^1.92.0"
},
Expand All @@ -32,12 +32,7 @@
{
"name": "create",
"description": "Given a block name, create corresponding files"
},
{
"name": "info",
"description": "Information About AEM Edge Delivery Services blocks"
},
{
},{
"name": "collection",
"description": "Pull a block from aem block collection repo"
},
Expand Down Expand Up @@ -80,7 +75,7 @@
"@types/vscode": "1.90.0",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
"@vscode/prompt-tsx": "^0.2.3-alpha",
"@vscode/prompt-tsx": "^0.2.9-alpha",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.4.0",
"eslint": "^8.57.0",
Expand Down
2 changes: 0 additions & 2 deletions src/aem.commands.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export enum AEM_COMMANDS {
CREATE = "create",
INFO = "info",
// ENHANCE = "enhance", //TODO
COLLECION = "collection",
DOCS = "docs",
ISSUES = "issues",
Expand Down
10 changes: 3 additions & 7 deletions src/extension.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import * as vscode from "vscode";
import { AEM_COMMANDS, AEM_COMMANDS as commands } from "./aem.commands";
import { AEM_COMMANDS as commands } from "./aem.commands";
import {
createCmdHandler,
} from "./handlers/block.create";
import { infoCmdHandler } from "./handlers/block.info";
import { handleDocsCommand } from "./handlers/block.docs";

import {
Expand Down Expand Up @@ -33,10 +32,7 @@ export function activate(context: vscode.ExtensionContext) {
let cmdResult: any;
stream.progress(vscode.l10n.t(getRandomGreeting()));
try {
if (request.command === commands.INFO) {
cmdResult = await infoCmdHandler(request, stream, token);
logger.logUsage('request', { kind: commands.INFO });
} else if (request.command === commands.CREATE) {
if (request.command === commands.CREATE) {
cmdResult = await createCmdHandler(request, stream, token);
logger.logUsage('request', { kind: commands.CREATE });
} else if (request.command === commands.COLLECION) {
Expand Down Expand Up @@ -74,7 +70,7 @@ export function activate(context: vscode.ExtensionContext) {
{
prompt: "How to build AEM blocks?",
label: vscode.l10n.t("Build with AEM"),
command: commands.INFO,
command: commands.DOCS,
} satisfies vscode.ChatFollowup,
];
},
Expand Down
30 changes: 0 additions & 30 deletions src/handlers/block.info.ts

This file was deleted.

20 changes: 0 additions & 20 deletions src/prompts/eds.info.prompt.tsx

This file was deleted.

Loading