windicss / windicss-intellisense

Intelligent WindiCSS tooling for VS Code
https://marketplace.visualstudio.com/items?itemName=voorjaar.windicss-intellisense
MIT License
194 stars 16 forks source link

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

Open lainbo opened 3 years ago

lainbo commented 3 years ago
// 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 commented 3 years ago

me too ,and without preflight, still not work

jiangmaniu commented 3 years ago

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 commented 3 years ago

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

jbaubree commented 2 years ago

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 :)