From 3a36dd8b02810d29b804ed75b6dee89eef985d12 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 8 Jun 2017 20:43:29 -0500 Subject: [PATCH 1/5] Fixes #60, Adds support for md files --- src/extension.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index 32cdaf6..9de67f4 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -117,6 +117,7 @@ export async function activate(context: vscode.ExtensionContext): Promise const php = provideCompletionItemsGenerator('php', htmlRegex); const vue = provideCompletionItemsGenerator('vue', htmlRegex); const twig = provideCompletionItemsGenerator('twig', htmlRegex); + const md = provideCompletionItemsGenerator('md', htmlRegex); const tsReact = provideCompletionItemsGenerator('typescriptreact', jsxRegex); const js = provideCompletionItemsGenerator('javascript', jsxRegex) const jsReact = provideCompletionItemsGenerator('javascriptreact', jsxRegex); @@ -126,6 +127,7 @@ export async function activate(context: vscode.ExtensionContext): Promise 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); @@ -136,4 +138,4 @@ export async function activate(context: vscode.ExtensionContext): Promise 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. \ No newline at end of file +// 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. From b9b107d725f67c44d4aa838386f46d0e3545a842 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 8 Jun 2017 20:44:45 -0500 Subject: [PATCH 2/5] Updates README --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f3c6c8b..a72e0c5 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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) \ No newline at end of file +![](http://i.imgur.com/uyiXqMb.gif) From d60700cbc581d07017480ae9a9f36a24faf09e7d Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 8 Jun 2017 20:45:04 -0500 Subject: [PATCH 3/5] Bumps version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a4b2aa3..9c6f463 100644 --- a/package.json +++ b/package.json @@ -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" From 5b7901a17dbc826565e4b420f617cfe0b553ad53 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 8 Jun 2017 20:45:37 -0500 Subject: [PATCH 4/5] Updates CHANGELOG --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33deacb..d7fda1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +### 1.7.0 (Jun 8, 2017) +* Added support for Markdown + ### 1.6.0 (Jun 4, 2017) * Added support for Twig. @@ -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. \ No newline at end of file +* Refactored to add proper asynchronous parallel parsing of the documents. From b54423b0f9c37275e8d5fcbb2692dbb992f53ff6 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 8 Jun 2017 22:46:00 -0500 Subject: [PATCH 5/5] Fixes markdown language id --- src/extension.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension.ts b/src/extension.ts index 9de67f4..74ecf16 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -117,7 +117,7 @@ export async function activate(context: vscode.ExtensionContext): Promise const php = provideCompletionItemsGenerator('php', htmlRegex); const vue = provideCompletionItemsGenerator('vue', htmlRegex); const twig = provideCompletionItemsGenerator('twig', htmlRegex); - const md = provideCompletionItemsGenerator('md', htmlRegex); + const md = provideCompletionItemsGenerator('markdown', htmlRegex); const tsReact = provideCompletionItemsGenerator('typescriptreact', jsxRegex); const js = provideCompletionItemsGenerator('javascript', jsxRegex) const jsReact = provideCompletionItemsGenerator('javascriptreact', jsxRegex);