Skip to content

Commit c0f021b

Browse files
committed
feat(css aliases): added css.alias.paths
feat(css aliases): added scss.alias.paths Provides definitions and constraints to the settings
1 parent 5f88101 commit c0f021b

2 files changed

Lines changed: 141 additions & 109 deletions

File tree

extensions/css-language-features/package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,21 @@
6666
"default": true,
6767
"description": "%css.validate.desc%"
6868
},
69+
"css.alias.paths": {
70+
"type": "object",
71+
"additionalProperties": false,
72+
"patternProperties": {
73+
"[^/]$": {
74+
"type": "string",
75+
"pattern": "((\\.css)|/\\*)$",
76+
"patternErrorMessage": "Path must end with stylesheet filetype or folder glob '/*'"
77+
},
78+
"patternErrorMessage": "Alias must not end with forward slash"
79+
},
80+
"scope": "resource",
81+
"default": null,
82+
"description": "%css.alias.paths%"
83+
},
6984
"css.hover.documentation": {
7085
"type": "boolean",
7186
"scope": "resource",
@@ -382,6 +397,21 @@
382397
"default": true,
383398
"description": "%scss.validate.desc%"
384399
},
400+
"scss.alias.paths": {
401+
"type": "object",
402+
"additionalProperties": false,
403+
"patternProperties": {
404+
"[^/]$": {
405+
"type": "string",
406+
"pattern": "((\\.s?css)|/\\*)$",
407+
"patternErrorMessage": "Path must end with stylesheet filetype or folder glob '/*'"
408+
},
409+
"patternErrorMessage": "Alias must not end with forward slash"
410+
},
411+
"scope": "resource",
412+
"default": null,
413+
"description": "%scss.alias.paths%"
414+
},
385415
"scss.hover.documentation": {
386416
"type": "boolean",
387417
"scope": "resource",

0 commit comments

Comments
 (0)