-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathextension.js
58 lines (50 loc) · 1.45 KB
/
extension.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
const vscode = require('vscode');
const lwcService = require('./src/lwcService');
const layoutService = require('./src/layoutService');
const contentService = require('./src/contentService');
/**
* @param {vscode.ExtensionContext} context
*/
function activate(context) {
context.subscriptions.push(
vscode.commands.registerCommand(
'lwr-create-for-lwc-oss.createLwc',
lwcService.createLwc
)
);
context.subscriptions.push(
vscode.commands.registerCommand(
'lwr-create-for-lwc-oss.createJsOnlyLwc',
lwcService.createJsOnlyLwc
)
);
context.subscriptions.push(
vscode.commands.registerCommand(
'lwr-create-for-lwc-oss.createCssOnlyLwc',
lwcService.createCssOnlyLwc
)
);
context.subscriptions.push(
vscode.commands.registerCommand(
'lwr-create-for-lwc-oss.createHtmlLayout',
layoutService.createHtmlLayout
)
);
context.subscriptions.push(
vscode.commands.registerCommand(
'lwr-create-for-lwc-oss.createNunjucksLayout',
layoutService.createNunjucksLayout
)
);
context.subscriptions.push(
vscode.commands.registerCommand(
'lwr-create-for-lwc-oss.createMarkdownContent',
contentService.createMarkdownContent
)
);
}
function deactivate() {}
module.exports = {
activate,
deactivate
};