Skip to content

css class autocomplete #230

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

Closed
0x000777 opened this issue Nov 7, 2019 · 2 comments
Closed

css class autocomplete #230

0x000777 opened this issue Nov 7, 2019 · 2 comments

Comments

@0x000777
Copy link

0x000777 commented Nov 7, 2019

Hello!
Don't work css class autocomplete for *.svelte files.

image

It is new javascript framework. You can see: https://svelte.dev/
in short - this is an analogue of Vue.js cli
Vue.js has a * .vue file extension, and Svelte has - * .svelte

@Zenthae
Copy link

Zenthae commented Mar 16, 2020

you can manually add support by going into you're extension folder zignd.html-css-class-completion-x.xx.x/out/src/extension.js

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

and you should disable auto-update for extensions if you don't want to have to do this at each update

@zignd
Copy link
Owner

zignd commented Mar 4, 2021

You can now do that without hacks from the user settings as described in this section in the README.md https://github.com/zignd/HTML-CSS-Class-Completion#extended-support-for-other-language-modes

@zignd zignd closed this as completed Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants