Skip to content

Commit 16689ee

Browse files
committed
Refactoring
1 parent db19096 commit 16689ee

File tree

4 files changed

+87
-198
lines changed

4 files changed

+87
-198
lines changed

README.md

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,7 @@ Missing CSS support for HTML documents.
77
- HTML `class` attribute completion.
88
- HTML `id` attribute completion.
99
- Supports `<link rel="stylesheet">` and `<style></style>` tags.
10-
- Supports remote style sheets.
11-
- Supports local style sheets form workspace.
12-
13-
## Remote Style Sheets
14-
15-
If it is not possible to specify remote styles with `<link rel="stylesheet">` tag, they can be specified in VS Code settings:
16-
17-
```json
18-
"css.remoteStyleSheets": [
19-
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
20-
]
21-
```
22-
23-
## Local Style Sheets
24-
25-
Workspace CSS parsing can be disabled for unwanted locations in VS Code settings:
26-
27-
```json
28-
"css.ignoredFolders": [
29-
"**/node_modules/**"
30-
]
31-
```
32-
33-
Also, it can be disabled for all files with:
34-
35-
```json
36-
"css.watcherEnabled": false
37-
```
10+
- Supports completion from additional style sheets.
3811

3912
## Supported Languages
4013

@@ -52,6 +25,17 @@ Extension can be configured to support any language where it makes sense such as
5225
`django-html` `laravel-blade` `razor` `vue` `blade` `pug` `jade` `handlebars` `php` `twig`
5326
`md` `nunjucks` `javascriptreact` `typescriptreact` `erb` `HTML (Eex)` `html-eex` `haml` `svelte`
5427

28+
## Additional Style Sheets
29+
30+
If it is not possible to specify local or remote styles with `<link rel="stylesheet">` tag, they can be specified in VS Code settings:
31+
32+
```json
33+
"css.styleSheets": [
34+
"css/bootstrap.css",
35+
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
36+
]
37+
```
38+
5539
## Installation
5640

5741
[Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css)

package-lock.json

Lines changed: 1 addition & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-html-css",
33
"displayName": "HTML CSS Support",
44
"description": "CSS support for HTML documents",
5-
"version": "1.1.6",
5+
"version": "1.2.0",
66
"publisher": "ecmel",
77
"license": "MIT",
88
"homepage": "https://github.com/ecmel/vscode-html-css",
@@ -32,33 +32,19 @@
3232
"configuration": {
3333
"title": "CSS Settings",
3434
"properties": {
35-
"css.remoteStyleSheets": {
36-
"type": "array",
37-
"default": [],
38-
"description": "A list of remote style sheets.",
39-
"scope": "resource"
40-
},
4135
"css.enabledLanguages": {
4236
"type": "array",
4337
"description": "A list of languages where suggestions are desired.",
4438
"default": [
4539
"html"
4640
],
47-
"scope": "window"
41+
"scope": "application"
4842
},
49-
"css.ignoredFolders": {
43+
"css.styleSheets": {
5044
"type": "array",
51-
"description": "A list of folders to exclude from stylesheet parsing.",
52-
"default": [
53-
"**/node_modules/**"
54-
],
55-
"scope": "window"
56-
},
57-
"css.watcherEnabled": {
58-
"type": "boolean",
59-
"description": "Whether workspace scanning is enabled.",
60-
"default": true,
61-
"scope": "window"
45+
"default": [],
46+
"description": "A list of local or remote style sheets for suggestions.",
47+
"scope": "resource"
6248
}
6349
}
6450
}
@@ -77,7 +63,6 @@
7763
"webpack": "webpack --mode development"
7864
},
7965
"devDependencies": {
80-
"@types/chokidar": "^2.1.3",
8166
"@types/css-tree": "^1.0.4",
8267
"@types/glob": "^7.1.3",
8368
"@types/mocha": "^8.0.0",
@@ -86,7 +71,6 @@
8671
"@types/vscode": "^1.51.0",
8772
"@typescript-eslint/eslint-plugin": "^4.1.1",
8873
"@typescript-eslint/parser": "^4.1.1",
89-
"chokidar": "3.4.2",
9074
"css-tree": "^1.1.2",
9175
"eslint": "^7.9.0",
9276
"glob": "^7.1.6",

0 commit comments

Comments
 (0)