Skip to content

Commit fd199d6

Browse files
committed
Bump version and update the docs
1 parent d2508d9 commit fd199d6

File tree

4 files changed

+36
-19
lines changed

4 files changed

+36
-19
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
### 1.20 (Dec 19, 2020)
2+
* Settings to allow users to specify which language modes will have autocompletion;
3+
* Fix interpretation of classes defined inside media queries.
4+
5+
### 1.19 (May 18, 2019)
6+
* Fix Emmet completion which was not enabled at startup when the configuration was set.
7+
18
### 1.18 (Jan 25, 2019)
29
* Added support for Django template (django-html).
310

README.md

+20-10
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ A Visual Studio Code extension that provides CSS class name completion for the H
55
![](https://i.imgur.com/5crMfTj.gif)
66

77
## Features
8-
* Gives you autocompletion for CSS class definitions that can be found in your workspace (defined in CSS files or the in the file types listed in the Supported Language Modes section)
9-
* Supports external stylesheets referenced through `link` elements in HTML files
10-
* Command to manually re-cache the class definitions used in the autocompletion
11-
* User Settings to override which folders and files should be considered or excluded from the caching process
8+
* Gives you autocompletion for CSS class definitions that can be found in your workspace (defined in CSS files or the in the file types listed in the Supported Language Modes section);
9+
* Supports external stylesheets referenced through `link` elements in HTML files;
10+
* Command to manually re-cache the class definitions used in the autocompletion;
11+
* User Settings to override which folders and files should be considered or excluded from the caching process.
1212

1313
## Supported Language Modes
1414
* HTML
@@ -26,23 +26,33 @@ A Visual Studio Code extension that provides CSS class name completion for the H
2626
* EJS (.ejs)
2727
* Django template (django-html)
2828

29+
## Extended Support for Other Language Modes
30+
31+
It's possible to specify which language modes will have autocompletion. There are three settings for this feature:
32+
* `html-css-class-completion.HTMLLanguages` is for language modes based on HTML, the ones you have the `class` attribute;
33+
* `html-css-class-completion.CSSLanguages` currently is for languages like CSS, Sass and Scss, this one is not very useful right now because it only supports the `@apply` function;
34+
* `html-css-class-completion.JavaScriptLanguages` is for JavaScript based languages supporting the `class` or `className` attribute.
35+
36+
The language modes listed in the previous section are already defined as default values in these settings, and you can add new ones or remove the already defined ones as necessary.
37+
2938
## Specific Support
30-
* "@apply" directive in CSS, SASS and SCSS Files for [Tailwind CSS](https://tailwindcss.com)
31-
* "className" and "class" in TypeScript React, JavaScript and JavaScript React language modes
32-
* Emmet abbreviations support triggered by typing a "." (comes disabled by default, check the User Settings topic for more information)
39+
* "@apply" directive in CSS, SASS and SCSS Files for [Tailwind CSS](https://tailwindcss.com);
40+
* "className" and "class" in TypeScript React, JavaScript and JavaScript React language modes;
41+
* Emmet abbreviations support triggered by typing a "." (comes disabled by default, check the User Settings topic for more information).
3342

3443
## Contributions
3544
You can request new features and contribute to the extension development on its [repository on GitHub](https://github.com/Zignd/HTML-CSS-Class-Completion/issues). Look for an issue you're interested in working on, comment on it to let me know you're working on it and submit your pull request! :D
3645

37-
## What's new in version 1.18 (Jan 25, 2019)
38-
* Added support for Django template (django-html).
46+
## What's new in version 1.20 (Dec 19, 2020)
47+
* Settings to allow users to specify which language modes will have autocompletion;
48+
* Fix interpretation of classes defined inside media queries.
3949

4050
Check out the [changelog](https://github.com/zignd/HTML-CSS-Class-Completion/blob/master/CHANGELOG.md) for the current and previous updates.
4151

4252
## Usage
4353
If there are HTML or JS files on your workspace, the extension automatically starts and looks for CSS class definitions. In case new CSS classes are defined, or new CSS files are added to the workspace, and you also want auto-completion for them, just hit the lightning icon on the status bar. Also, you can execute the command by pressing `Ctrl+Shift+P`(`Cmd+Shift+P` for Mac) and then typing "Cache CSS class definitions."
4454

45-
### User Settings
55+
### More User Settings
4656
The extension supports a few user settings, changes to these settings will be automatically recognized and the caching process will be re-executed.
4757

4858
#### Folders and Files

package-lock.json

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "html-css-class-completion",
33
"displayName": "IntelliSense for CSS class names in HTML",
44
"description": "CSS class name completion for the HTML class attribute based on the definitions found in your workspace.",
5-
"version": "1.19.0",
5+
"version": "1.20.0",
66
"publisher": "Zignd",
77
"engines": {
88
"vscode": "^1.19.0"
@@ -118,7 +118,7 @@
118118
"mocha": "^8.2.1",
119119
"tslint": "^5.9.1",
120120
"typescript": "^2.6.2",
121-
"vsce": "^1.81.1",
121+
"vsce": "^1.83.0",
122122
"vscode": "^1.1.26"
123123
},
124124
"dependencies": {

0 commit comments

Comments
 (0)