-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathmain.mjs
More file actions
25 lines (19 loc) · 924 Bytes
/
main.mjs
File metadata and controls
25 lines (19 loc) · 924 Bytes
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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
// This is the extension entrypoint, which imports extension.bundle.mjs, the actual extension code.
//
// This is in a separate file so we can properly measure extension.bundle.mjs load time.
const perfStats = {
loadStartTime: Date.now(),
loadEndTime: undefined
};
const extension = await import("./dist/extension.bundle.mjs");
export async function activate(ctx) {
return await extension.activateInternal(ctx, perfStats);
}
export async function deactivate(ctx) {
return await extension.deactivateInternal(ctx);
}
perfStats.loadEndTime = Date.now();