From 41bf728061c3a17b5ab8fbaa0c10dc6c9201c0a7 Mon Sep 17 00:00:00 2001 From: Josh Johnson Date: Mon, 18 Jan 2016 15:59:58 -0500 Subject: [PATCH] Fix #23 --- package.json | 6 +++++- src/Extension.ts | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c468db8..c05cac6 100644 --- a/package.json +++ b/package.json @@ -114,7 +114,11 @@ }, "activationEvents": [ "onLanguage:xml", - "onLanguage:xquery" + "onLanguage:xquery", + "onCommand:xmlTools.formatXml", + "onCommand:xmlTools.minifyXml", + "onCommand:xmlTools.evaluateXPath", + "onCommand:xmlTools.executeXQuery" ], "devDependencies": { "vscode": "^0.10.7", diff --git a/src/Extension.ts b/src/Extension.ts index 379655b..c7ae8e2 100644 --- a/src/Extension.ts +++ b/src/Extension.ts @@ -14,6 +14,7 @@ const LANG_XQUERY: string = 'xquery;' const MEM_QUERY_HISTORY: string = 'xpathQueryHistory'; export function activate(ctx: vsc.ExtensionContext) { + console.log('activate extension'); // expose global and workspace state to the entire extension GlobalState = ctx.globalState; WorkspaceState = ctx.workspaceState;