@@ -14,14 +14,30 @@ export function activate(context: vscode.ExtensionContext) {
14
14
// The command has been defined in the package.json file
15
15
// Now provide the implementation of the command with registerCommand
16
16
// The commandId parameter must match the command field in package.json
17
- let disposable = vscode . commands . registerCommand ( 'extension.sayHello ' , ( ) => {
17
+ let createExampleProject = vscode . commands . registerCommand ( 'extension.createExampleProject ' , ( args : any ) => {
18
18
// The code you place here will be executed every time your command is executed
19
+ let path = ( args ) ? args . path : "" ;
20
+ // Display a message box to the user
21
+ vscode . window . showInformationMessage ( 'Creating example project: ' + path ) ;
22
+ } ) ;
19
23
24
+ let createSeedProject = vscode . commands . registerCommand ( 'extension.createSeedProject' , ( args : any ) => {
25
+ // The code you place here will be executed every time your command is executed
26
+ let path = ( args ) ? args . path : "" ;
27
+ // Display a message box to the user
28
+ vscode . window . showInformationMessage ( 'Creating seed project: ' + path ) ;
29
+ } ) ;
30
+
31
+ let generateUISchema = vscode . commands . registerCommand ( 'extension.generateUISchema' , ( args : any ) => {
32
+ // The code you place here will be executed every time your command is executed
33
+ let path = ( args ) ? args . path : "" ;
20
34
// Display a message box to the user
21
- vscode . window . showInformationMessage ( 'Hello World!' ) ;
35
+ vscode . window . showInformationMessage ( 'Generating UI Schema: ' + path ) ;
22
36
} ) ;
23
37
24
- context . subscriptions . push ( disposable ) ;
38
+ context . subscriptions . push ( createExampleProject ) ;
39
+ context . subscriptions . push ( createSeedProject ) ;
40
+ context . subscriptions . push ( generateUISchema ) ;
25
41
}
26
42
27
43
// this method is called when your extension is deactivated
0 commit comments