This commit is contained in:
Josh Johnson 2016-01-08 21:50:30 -05:00
parent f1d49a678a
commit 4dcac61936
1 changed files with 4 additions and 0 deletions

View File

@ -51,6 +51,10 @@ export function deactivate() {
} }
function _handleContextChange(editor: vsc.TextEditor): void { function _handleContextChange(editor: vsc.TextEditor): void {
if (!editor || !editor.document) {
return;
}
switch (editor.document.languageId) { switch (editor.document.languageId) {
case 'xquery': case 'xquery':
XQueryLintingFeatureProvider.provideXQueryDiagnostics(editor); XQueryLintingFeatureProvider.provideXQueryDiagnostics(editor);