-
Notifications
You must be signed in to change notification settings - Fork 518
/
main.js
37 lines (26 loc) · 1.21 KB
/
main.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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
"use strict";
/* eslint-disable no-undef */ // Ignore the fact that the engine (which is VSCode) is unknown by the linter
// This is the extension entrypoint, which imports extension.bundle.js, the actual extension code.
//
// This is in a separate file so we can properly measure extension.bundle.js load time.
const perfStats = {
loadStartTime: Date.now(),
loadEndTime: undefined
};
Object.defineProperty(exports, "__esModule", { value: true });
// eslint-disable-next-line @typescript-eslint/no-var-requires
const extension = require("./dist/extension.bundle");
async function activate(ctx) {
return await extension.activateInternal(ctx, perfStats);
}
async function deactivate(ctx) {
return await extension.deactivateInternal(ctx);
}
exports.activate = activate;
exports.deactivate = deactivate;
perfStats.loadEndTime = Date.now();
/* eslint-enable no-undef */