Skip to content

Commit e09bfe3

Browse files
authored
Merge pull request #61 from cvharris/support-md
Fixes #60, Supports Markdown Files
2 parents 019b136 + b54423b commit e09bfe3

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
### 1.7.0 (Jun 8, 2017)
2+
* Added support for Markdown
3+
14
### 1.6.0 (Jun 4, 2017)
25
* Added support for Twig.
36

@@ -24,4 +27,4 @@
2427
* Fixed error showing up whenever there were no workspace opened.
2528

2629
### 1.0.2 (Sep 17, 2016)
27-
* Refactored to add proper asynchronous parallel parsing of the documents.
30+
* Refactored to add proper asynchronous parallel parsing of the documents.

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,14 @@ A Visual Studio Code extension that provides CSS class name completion for the H
1818
* TypeScript React (.tsx)
1919
* Vue (.vue) [requires [vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)]
2020
* Twig
21+
* Markdown (.md)
2122

2223
## Contributions
2324
You can request new features and/or contribute to the extension development on its [repository on GitHub](https://github.com/Zignd/HTML-CSS-Class-Completion/issues).
2425

26+
## What's new in version 1.7.0 (Jun 8, 2017)
27+
* Added support for Markdown
28+
2529
## What's new in version 1.6.0 (Jun 4, 2017)
2630
* Added support for Twig.
2731

@@ -34,4 +38,4 @@ Check out the [change log](https://github.com/zignd/HTML-CSS-Class-Completion/bl
3438
If there are HTML files on your workspace the extension automatically starts and look for CSS class definitions. In case new CSS classes are definined or new CSS files are added to the workspace and you also want auto completion for them simply hit the lightning icon you will find on the status bar and execute the command pressing `Ctrl+Shift+P` and then typing "Cache CSS class definitions".
3539

3640
![](http://i.imgur.com/O7NjEUW.gif)
37-
![](http://i.imgur.com/uyiXqMb.gif)
41+
![](http://i.imgur.com/uyiXqMb.gif)

package.json

Lines changed: 1 addition & 1 deletion
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",
44
"description": "Provides CSS class name completion for the HTML class attribute based on the CSS files in your workspace. Also supports React's className attribute.",
5-
"version": "1.6.0",
5+
"version": "1.7.0",
66
"publisher": "Zignd",
77
"engines": {
88
"vscode": "^1.4.0"

src/extension.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
117117
const php = provideCompletionItemsGenerator('php', htmlRegex);
118118
const vue = provideCompletionItemsGenerator('vue', htmlRegex);
119119
const twig = provideCompletionItemsGenerator('twig', htmlRegex);
120+
const md = provideCompletionItemsGenerator('markdown', htmlRegex);
120121
const tsReact = provideCompletionItemsGenerator('typescriptreact', jsxRegex);
121122
const js = provideCompletionItemsGenerator('javascript', jsxRegex)
122123
const jsReact = provideCompletionItemsGenerator('javascriptreact', jsxRegex);
@@ -126,6 +127,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
126127
context.subscriptions.push(php);
127128
context.subscriptions.push(vue);
128129
context.subscriptions.push(twig);
130+
context.subscriptions.push(md);
129131
context.subscriptions.push(tsReact);
130132
context.subscriptions.push(js);
131133
context.subscriptions.push(jsReact);
@@ -136,4 +138,4 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
136138
export function deactivate(): void {
137139
}
138140

139-
// TODO: Look for CSS class definitions automatically in case a new file is added to the workspace. I think the API does not provide and event for that. Maybe I should consider opening a PR.
141+
// TODO: Look for CSS class definitions automatically in case a new file is added to the workspace. I think the API does not provide and event for that. Maybe I should consider opening a PR.

0 commit comments

Comments
 (0)