Skip to content
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

VSCode's 'WindiCSS IntelliSense' plugin is disabled after I use 'windi.config.js' in my vue project #214

Open
lainbo opened this issue Jun 9, 2021 · 4 comments

Comments

@lainbo
Copy link

lainbo commented Jun 9, 2021

// windi.config.js
import { defineConfig } from 'windicss/helpers'

export default defineConfig({
  preflight: {
    blocklist: 'img'
  }
})

After this config, vscode's syntax hint plugin will not hint

@leosin
Copy link

leosin commented Jun 11, 2021

me too ,and without preflight, still not work

@lainbo lainbo closed this as completed Jun 11, 2021
@lainbo lainbo reopened this Jun 11, 2021
@jiangmaniu
Copy link

At present, WindiCSS IntelliSense seems to conflict with other plugins, which will cause the issue of WindiCSS IntelliSense not working. For details, please see #149 and #132, which may help you

@lainbo
Copy link
Author

lainbo commented Jun 23, 2021

At present, WindiCSS IntelliSense seems to conflict with other plugins, which will cause the issue of WindiCSS IntelliSense not working. For details, please see #149 and #132, which may help you

Thanks for your answer, after I disable "Auto Rename Tag", WindiCSS IntelliSense started to work, but then I can't auto rename tags, is there any better way? By the way, you can speak Chinese

@alexanderniebuhr alexanderniebuhr transferred this issue from windicss/windicss Jul 31, 2021
@jbaubree
Copy link

jbaubree commented Nov 2, 2021

In my case, i had same issue and i fixed it directly importing Windicss in my package.json. I think vite-plugin-windicss does not link well windicss for vs-code.
You can also try to export your windicss config file without defineConfig(), it will be better because vscode will not search anything from 'windicss'.

Hope that will help :)

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

4 participants