Skip to content
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ A Visual Studio Code extension that provides CSS class name completion for the H
* Embedded Ruby (.html.erb) [requires [rebornix.Ruby](https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby)]
* Handlebars
* EJS (.ejs)
* Django Templates

## Specific Support
* "@apply" directive in CSS, SASS and SCSS Files for [Tailwind CSS](https://tailwindcss.com)
Expand Down
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function provideCompletionItemsGenerator(languageSelector: string, classMatchReg

function enableEmmetSupport(disposables: Disposable[]) {
const emmetRegex = /(?=\.)([\w-\. ]*$)/;
const languageModes = ["html", "razor", "php", "blade", "vue", "twig", "markdown", "erb",
const languageModes = ["html", "django-html", "razor", "php", "blade", "vue", "twig", "markdown", "erb",
"handlebars", "ejs", "typescriptreact", "javascript", "javascriptreact"];
languageModes.forEach((language) => {
emmetDisposables.push(provideCompletionItemsGenerator(language, emmetRegex, "", "."));
Expand Down Expand Up @@ -181,7 +181,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
});

// HTML based extensions
["html", "razor", "php", "blade", "vue", "twig", "markdown", "erb", "handlebars", "ejs"].forEach((extension) => {
["html", "django-html", "razor", "php", "blade", "vue", "twig", "markdown", "erb", "handlebars", "ejs"].forEach((extension) => {
context.subscriptions.push(provideCompletionItemsGenerator(extension, /class=["|']([\w- ]*$)/));
});

Expand Down