update css, new formatting options

This commit is contained in:
Martin Aeschlimann 2022-04-01 18:07:52 +02:00
Родитель 290a62d727
Коммит 2c5c9636a2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 2609A01E695523E3
5 изменённых файлов: 32 добавлений и 11 удалений

14
package-lock.json сгенерированный
Просмотреть файл

@ -30,7 +30,7 @@
"ts-node": "^10.6.0",
"typedoc": "^0.22.11",
"typescript": "4.5.5",
"vscode-css-languageservice": "5.3.0",
"vscode-css-languageservice": "5.4.1",
"vscode-html-languageservice": "4.2.4",
"vscode-json-languageservice": "4.2.1",
"vscode-languageserver-textdocument": "^1.0.4",
@ -2488,9 +2488,9 @@
"dev": true
},
"node_modules/vscode-css-languageservice": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/vscode-css-languageservice/-/vscode-css-languageservice-5.3.0.tgz",
"integrity": "sha512-ujWW855AoJlE4ETU17Gff7unlZZTHDA0w26itk9EQFMfJqi9lE6S67zOsMvcPmJf55MrnGQbojDYZRiDVaFjdA==",
"version": "5.4.1",
"resolved": "https://registry.npmjs.org/vscode-css-languageservice/-/vscode-css-languageservice-5.4.1.tgz",
"integrity": "sha512-W7D3GKFXf97ReAaU4EZ2nxVO1kQhztbycJgc1b/Ipr0h8zYWr88BADmrXu02z+lsCS84D7Sr4hoUzDKeaFn2Kg==",
"dev": true,
"dependencies": {
"vscode-languageserver-textdocument": "^1.0.4",
@ -4601,9 +4601,9 @@
"dev": true
},
"vscode-css-languageservice": {
"version": "5.3.0",
"resolved": "https://registry.npmjs.org/vscode-css-languageservice/-/vscode-css-languageservice-5.3.0.tgz",
"integrity": "sha512-ujWW855AoJlE4ETU17Gff7unlZZTHDA0w26itk9EQFMfJqi9lE6S67zOsMvcPmJf55MrnGQbojDYZRiDVaFjdA==",
"version": "5.4.1",
"resolved": "https://registry.npmjs.org/vscode-css-languageservice/-/vscode-css-languageservice-5.4.1.tgz",
"integrity": "sha512-W7D3GKFXf97ReAaU4EZ2nxVO1kQhztbycJgc1b/Ipr0h8zYWr88BADmrXu02z+lsCS84D7Sr4hoUzDKeaFn2Kg==",
"dev": true,
"requires": {
"vscode-languageserver-textdocument": "^1.0.4",

Просмотреть файл

@ -53,7 +53,7 @@
"ts-node": "^10.6.0",
"typedoc": "^0.22.11",
"typescript": "4.5.5",
"vscode-css-languageservice": "5.3.0",
"vscode-css-languageservice": "5.4.1",
"vscode-html-languageservice": "4.2.4",
"vscode-json-languageservice": "4.2.1",
"vscode-languageserver-textdocument": "^1.0.4",

Просмотреть файл

@ -13,6 +13,12 @@ export interface CSSFormatConfiguration {
newlineBetweenRules?: boolean;
/** ensure space around selector separators: '>', '+', '~' (e.g. "a>b" -> "a > b"): Default: false */
spaceAroundSelectorSeparator?: boolean;
/** put braces on the same line as rules (`collapse`), or put braces on own line, Allman / ANSI style (`expand`). Default `collapse` */
braceStyle?: 'collapse' | 'expand';
/** whether existing line breaks before elements should be preserved. Default: true */
preserveNewLines?: boolean;
/** maximum number of line breaks to be preserved in one chunk. Default: unlimited */
maxPreserveNewLines?: number;
}
export interface Options {
@ -208,7 +214,10 @@ const optionsDefault: Required<Options> = {
format: {
newlineBetweenSelectors: true,
newlineBetweenRules: true,
spaceAroundSelectorSeparator: false
spaceAroundSelectorSeparator: false,
braceStyle: 'collapse',
maxPreserveNewLines: undefined,
preserveNewLines: true
}
};

Просмотреть файл

@ -7164,6 +7164,12 @@ declare namespace monaco.languages.css {
newlineBetweenRules?: boolean;
/** ensure space around selector separators: '>', '+', '~' (e.g. "a>b" -> "a > b"): Default: false */
spaceAroundSelectorSeparator?: boolean;
/** put braces on the same line as rules (`collapse`), or put braces on own line, Allman / ANSI style (`expand`). Default `collapse` */
braceStyle?: 'collapse' | 'expand';
/** whether existing line breaks before elements should be preserved. Default: true */
preserveNewLines?: boolean;
/** maximum number of line breaks to be preserved in one chunk. Default: unlimited */
maxPreserveNewLines?: number;
}
export interface Options {
readonly validate?: boolean;
@ -7370,7 +7376,7 @@ declare namespace monaco.languages.html {
*/
readonly format?: HTMLFormatConfiguration;
/**
* Conde completion settings.
* Code completion settings.
*/
readonly suggest?: CompletionConfiguration;
/**

8
website/typedoc/monaco.d.ts поставляемый
Просмотреть файл

@ -7164,6 +7164,12 @@ declare namespace monaco.languages.css {
newlineBetweenRules?: boolean;
/** ensure space around selector separators: '>', '+', '~' (e.g. "a>b" -> "a > b"): Default: false */
spaceAroundSelectorSeparator?: boolean;
/** put braces on the same line as rules (`collapse`), or put braces on own line, Allman / ANSI style (`expand`). Default `collapse` */
braceStyle?: 'collapse' | 'expand';
/** whether existing line breaks before elements should be preserved. Default: true */
preserveNewLines?: boolean;
/** maximum number of line breaks to be preserved in one chunk. Default: unlimited */
maxPreserveNewLines?: number;
}
export interface Options {
readonly validate?: boolean;
@ -7370,7 +7376,7 @@ declare namespace monaco.languages.html {
*/
readonly format?: HTMLFormatConfiguration;
/**
* Conde completion settings.
* Code completion settings.
*/
readonly suggest?: CompletionConfiguration;
/**