Skip to content

Fixes #60, Supports Markdown Files #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.7.0 (Jun 8, 2017)
* Added support for Markdown

### 1.6.0 (Jun 4, 2017)
* Added support for Twig.

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

### 1.0.2 (Sep 17, 2016)
* Refactored to add proper asynchronous parallel parsing of the documents.
* Refactored to add proper asynchronous parallel parsing of the documents.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@ A Visual Studio Code extension that provides CSS class name completion for the H
* TypeScript React (.tsx)
* Vue (.vue) [requires [vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur)]
* Twig
* Markdown (.md)

## Contributions
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).

## What's new in version 1.7.0 (Jun 8, 2017)
* Added support for Markdown

## What's new in version 1.6.0 (Jun 4, 2017)
* Added support for Twig.

Expand All @@ -34,4 +38,4 @@ Check out the [change log](https://github.com/zignd/HTML-CSS-Class-Completion/bl
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".

![](http://i.imgur.com/O7NjEUW.gif)
![](http://i.imgur.com/uyiXqMb.gif)
![](http://i.imgur.com/uyiXqMb.gif)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "html-css-class-completion",
"displayName": "IntelliSense for CSS class names",
"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.",
"version": "1.6.0",
"version": "1.7.0",
"publisher": "Zignd",
"engines": {
"vscode": "^1.4.0"
Expand Down
4 changes: 3 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
const php = provideCompletionItemsGenerator('php', htmlRegex);
const vue = provideCompletionItemsGenerator('vue', htmlRegex);
const twig = provideCompletionItemsGenerator('twig', htmlRegex);
const md = provideCompletionItemsGenerator('markdown', htmlRegex);
const tsReact = provideCompletionItemsGenerator('typescriptreact', jsxRegex);
const js = provideCompletionItemsGenerator('javascript', jsxRegex)
const jsReact = provideCompletionItemsGenerator('javascriptreact', jsxRegex);
Expand All @@ -126,6 +127,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
context.subscriptions.push(php);
context.subscriptions.push(vue);
context.subscriptions.push(twig);
context.subscriptions.push(md);
context.subscriptions.push(tsReact);
context.subscriptions.push(js);
context.subscriptions.push(jsReact);
Expand All @@ -136,4 +138,4 @@ export async function activate(context: vscode.ExtensionContext): Promise<void>
export function deactivate(): void {
}

// 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.
// 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.