diff --git a/src/extLoader.ts b/src/extLoader.ts index 4ab8f3f..f342760 100644 --- a/src/extLoader.ts +++ b/src/extLoader.ts @@ -15,7 +15,10 @@ const perfStats: PerfStats = { // Object.defineProperty(exports, "__esModule", { value: true }); import { ExtensionContext } from 'vscode'; -import { activateInternal, deactivateInternal } from './extension'; +import { + activate as activateInternal, + deactivate as deactivateInternal +} from './extension'; // while this may load the code/references, it will be empty import { ext } from './extensionVariables'; diff --git a/src/extension.ts b/src/extension.ts index a9f03e8..de1933f 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -78,7 +78,7 @@ logger.output = function (log: string) { // provide extension functions for activation -export async function activateInternal(context: ExtensionContext) { +export async function activate(context: ExtensionContext) { process.on('unhandledRejection', error => { logger.error('--- unhandledRejection ---', error); @@ -969,6 +969,6 @@ export async function activateInternal(context: ExtensionContext) { // this method is called when your extension is deactivated -export async function deactivateInternal(context: ExtensionContext) { +export async function deactivate(context: ExtensionContext) { // log deactivation event }