2019-10-23 00:02:59 +03:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
* Licensed under the MIT License. See LICENSE.md in the project root for license information.
|
|
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
// This is the extension entrypoint module, 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.
|
|
|
|
|
|
|
|
let perfStats = {
|
|
|
|
loadStartTime: Date.now(),
|
|
|
|
loadEndTime: undefined
|
|
|
|
};
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
|
2020-03-18 01:48:41 +03:00
|
|
|
const extension = require('./out/src/extension');
|
2019-10-23 00:02:59 +03:00
|
|
|
|
|
|
|
async function activate(ctx) {
|
2020-03-18 01:48:41 +03:00
|
|
|
return await extension.activateInternal(ctx, perfStats, true /* ignoreBundle */);
|
2019-10-23 00:02:59 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
async function deactivate(ctx) {
|
|
|
|
return await extension.deactivateInternal(ctx, perfStats);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Export as entrypoints for vscode
|
|
|
|
exports.activate = activate;
|
|
|
|
exports.deactivate = deactivate;
|
|
|
|
|
|
|
|
perfStats.loadEndTime = Date.now();
|