We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebd371c commit 92bcff5Copy full SHA for 92bcff5
src/factory/Commands.factory.ts
@@ -1,5 +1,6 @@
1
import * as vscode from 'vscode';
2
import { createReactComponentCommand } from "../commands/CreateReactComponent.command";
3
+import { createReactHookCommand } from '../commands/CreateReactHook.factory';
4
5
export const commandsFactory = (context: vscode.ExtensionContext) => {
6
commands.forEach((command) => {
@@ -12,6 +13,10 @@ const commands = [
12
13
'vscode-react-developer-toolkit.createReactComponent',
14
createReactComponentCommand,
15
),
16
+ vscode.commands.registerCommand(
17
+ 'vscode-react-developer-toolkit.createReactHook',
18
+ createReactHookCommand,
19
+ ),
20
];
21
22
export default commandsFactory;
0 commit comments