-
Notifications
You must be signed in to change notification settings - Fork 1
/
extension.js
34 lines (28 loc) · 964 Bytes
/
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
// @ts-nocheck
global.__basedir = __dirname;
const vscode = require("vscode");
const RegisterInitApp = require("./Commands/Activate.register.js");
const RegisterGenerateCode = require("./Commands/Generate.register.js");
const RegisterExplainCode = require("./Commands/Explain.register.js");
const RegisterDocString = require("./Commands/DocString.register.js");
const OptimiseDocString = require("./Commands/Optimise.register.js");
const RefactorDocString = require("./Commands/Refactor.register.js");
/**
* @param {vscode.ExtensionContext} context
*/
function activate(context) {
vscode.window.showInformationMessage("Mahadev GPT activated now.");
RegisterInitApp(context);
RegisterGenerateCode(context);
RegisterExplainCode(context);
RegisterDocString(context);
OptimiseDocString(context);
RefactorDocString(context);
}
function deactivate() {
console.log("Mahadev GPT de-activated.");
}
module.exports = {
activate,
deactivate,
};