vscode-css-languageservice 5.3.0 → 5.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/lib/esm/beautify/beautify-css.js +8 -8
- package/lib/esm/cssLanguageTypes.d.ts +10 -0
- package/lib/esm/data/webCustomData.js +145 -139
- package/lib/esm/services/cssFormatter.js +32 -13
- package/lib/umd/beautify/beautify-css.js +8 -8
- package/lib/umd/cssLanguageTypes.d.ts +10 -0
- package/lib/umd/data/webCustomData.js +145 -139
- package/lib/umd/services/cssFormatter.js +32 -13
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
|
|
2
|
+
5.4.0 / 2022-04-01
|
|
3
|
+
==================
|
|
4
|
+
* new formatter settings: `braceStyle`, `preserveNewLines`, `maxPreserveNewLines`, `wrapLineLength`, `indentEmptyLines`
|
|
5
|
+
|
|
6
|
+
|
|
2
7
|
5.3.0 / 2022-03-23
|
|
3
8
|
==================
|
|
4
9
|
* renamed `CSSFormatConfiguration.selectorSeparatorNewline` to `CSSFormatConfiguration.newlineBetweenSelectors`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// copied from js-beautify/js/lib/beautify-css.js
|
|
2
|
-
// version: 1.14.
|
|
2
|
+
// version: 1.14.2
|
|
3
3
|
/* AUTO-GENERATED. DO NOT MODIFY. */
|
|
4
4
|
/*
|
|
5
5
|
|
|
@@ -1002,8 +1002,8 @@ module.exports.Directives = Directives;
|
|
|
1002
1002
|
|
|
1003
1003
|
|
|
1004
1004
|
|
|
1005
|
-
var Beautifier = __webpack_require__(16).Beautifier,
|
|
1006
|
-
Options = __webpack_require__(17).Options;
|
|
1005
|
+
var Beautifier = (__webpack_require__(16).Beautifier),
|
|
1006
|
+
Options = (__webpack_require__(17).Options);
|
|
1007
1007
|
|
|
1008
1008
|
function css_beautify(source_text, options) {
|
|
1009
1009
|
var beautifier = new Beautifier(source_text, options);
|
|
@@ -1050,10 +1050,10 @@ module.exports.defaultOptions = function() {
|
|
|
1050
1050
|
|
|
1051
1051
|
|
|
1052
1052
|
|
|
1053
|
-
var Options = __webpack_require__(17).Options;
|
|
1054
|
-
var Output = __webpack_require__(2).Output;
|
|
1055
|
-
var InputScanner = __webpack_require__(8).InputScanner;
|
|
1056
|
-
var Directives = __webpack_require__(13).Directives;
|
|
1053
|
+
var Options = (__webpack_require__(17).Options);
|
|
1054
|
+
var Output = (__webpack_require__(2).Output);
|
|
1055
|
+
var InputScanner = (__webpack_require__(8).InputScanner);
|
|
1056
|
+
var Directives = (__webpack_require__(13).Directives);
|
|
1057
1057
|
|
|
1058
1058
|
var directives_core = new Directives(/\/\*/, /\*\//);
|
|
1059
1059
|
|
|
@@ -1536,7 +1536,7 @@ module.exports.Beautifier = Beautifier;
|
|
|
1536
1536
|
|
|
1537
1537
|
|
|
1538
1538
|
|
|
1539
|
-
var BaseOptions = __webpack_require__(6).Options;
|
|
1539
|
+
var BaseOptions = (__webpack_require__(6).Options);
|
|
1540
1540
|
|
|
1541
1541
|
function Options(options) {
|
|
1542
1542
|
BaseOptions.call(this, options, 'css');
|
|
@@ -223,6 +223,16 @@ export interface CSSFormatConfiguration {
|
|
|
223
223
|
newlineBetweenRules?: boolean;
|
|
224
224
|
/** ensure space around selector separators: '>', '+', '~' (e.g. "a>b" -> "a > b"): Default: false */
|
|
225
225
|
spaceAroundSelectorSeparator?: boolean;
|
|
226
|
+
/** put braces on the same line as rules (`collapse`), or put braces on own line, Allman / ANSI style (`expand`). Default `collapse` */
|
|
227
|
+
braceStyle?: 'collapse' | 'expand';
|
|
228
|
+
/** whether existing line breaks before elements should be preserved. Default: true */
|
|
229
|
+
preserveNewLines?: boolean;
|
|
230
|
+
/** maximum number of line breaks to be preserved in one chunk. Default: unlimited */
|
|
231
|
+
maxPreserveNewLines?: number;
|
|
232
|
+
/** maximum amount of characters per line (0/undefined = disabled). Default: disabled. */
|
|
233
|
+
wrapLineLength?: number;
|
|
234
|
+
/** add indenting whitespace to empty lines. Default: false */
|
|
235
|
+
indentEmptyLines?: boolean;
|
|
226
236
|
/** @deprecated Use newlineBetweenSelectors instead*/
|
|
227
237
|
selectorSeparatorNewline?: boolean;
|
|
228
238
|
}
|