Move non abbr emmet cmds from core to extension #29969

This commit is contained in:
Ramya Achutha Rao
2017-07-26 16:30:50 -07:00
parent cfeac5b418
commit 4cbe0d35ea
10 changed files with 197 additions and 91 deletions

View File

@@ -9,7 +9,7 @@ import { Property, Rule } from 'EmmetNode';
const vendorPrefixes = ['-webkit-', '-moz-', '-ms-', '-o-', ''];
export function reflectCssValue() {
export function reflectCssValue(): Thenable<boolean> {
let editor = window.activeTextEditor;
if (!editor) {
window.showInformationMessage('No editor is active.');
@@ -24,7 +24,7 @@ export function reflectCssValue() {
return updateCSSNode(editor, node);
}
function updateCSSNode(editor: TextEditor, property: Property) {
function updateCSSNode(editor: TextEditor, property: Property): Thenable<boolean> {
const rule: Rule = property.parent;
let currentPrefix = '';