Skip to content

Commit

Permalink
chore: prompt-tsx version update and clean up stuff (#9)
Browse files Browse the repository at this point in the history
* info command removed

* prompt-tsx version updated
  • Loading branch information
gargadobe committed Sep 12, 2024
1 parent 5e1cfa6 commit 10989ab
Show file tree
Hide file tree
Showing 8 changed files with 399 additions and 132 deletions.
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

0 comments on commit 10989ab

Please sign in to comment.