Skip to content

Commit 92bcff5

Browse files
committed
Add: Add 'create react hook' command
1 parent ebd371c commit 92bcff5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/factory/Commands.factory.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as vscode from 'vscode';
22
import { createReactComponentCommand } from "../commands/CreateReactComponent.command";
3+
import { createReactHookCommand } from '../commands/CreateReactHook.factory';
34

45
export const commandsFactory = (context: vscode.ExtensionContext) => {
56
commands.forEach((command) => {
@@ -12,6 +13,10 @@ const commands = [
1213
'vscode-react-developer-toolkit.createReactComponent',
1314
createReactComponentCommand,
1415
),
16+
vscode.commands.registerCommand(
17+
'vscode-react-developer-toolkit.createReactHook',
18+
createReactHookCommand,
19+
),
1520
];
1621

1722
export default commandsFactory;

0 commit comments

Comments
 (0)