[json] enable semantic selection

This commit is contained in:
Martin Aeschlimann
2019-01-28 16:05:18 +01:00
parent 37fbae08a4
commit 21585312c2
12 changed files with 46 additions and 2296 deletions

View File

@@ -94,9 +94,9 @@ export function activate(context: ExtensionContext) {
});
}
};
languages.registerSelectionRangeProvider('css', selectionRangeProvider);
languages.registerSelectionRangeProvider('less', selectionRangeProvider);
languages.registerSelectionRangeProvider('scss', selectionRangeProvider);
documentSelector.forEach(selector => {
languages.registerSelectionRangeProvider(selector, selectionRangeProvider);
});
function initCompletionProvider(): Disposable {
const regionCompletionRegExpr = /^(\s*)(\/(\*\s*(#\w*)?)?)?$/;