[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*)?)?)?$/;

View File

@@ -2,5 +2,5 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/// <reference path='../../../../../src/vs/vscode.d.ts'/>
/// <reference path="../../../../../src/vs/vscode.proposed.d.ts" />

File diff suppressed because it is too large Load Diff