-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathextension.js
More file actions
23 lines (19 loc) · 802 Bytes
/
extension.js
File metadata and controls
23 lines (19 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const saber = require('./lib/java/saber');
const LOGGER = require('./lib/log/logger');
// this method is called when your extension is activated
// your extension is activated the very first time the command is executed
function activate(context) {
// Use the console to output diagnostic information (console.log) and errors (console.error)
// This line of code will only be executed once when your extension is activated
LOGGER.info('Congratulations, your extension "vscode-java-saber" is now active!', __filename);
try {
saber.registerCommand(context);
} catch (error) {
LOGGER.error(error, __filename);
}
}
exports.activate = activate;
// this method is called when your extension is deactivated
function deactivate() {
}
exports.deactivate = deactivate;