tw-in-js / vscode-twind-intellisense

Intelligent Twind tooling for VS Code
MIT License
60 stars 10 forks source link

@twind/next comptability #7

Open zslabs opened 2 years ago

zslabs commented 2 years ago

👋 Very excited for all the great progress on 1.0!

Will this plugin need a bit of work to be compatible? I tried a combination of this VS Code plugin, https://github.com/tw-in-js/typescript-plugin and library mode with the following configs:

// tsconfig.json

"plugins": [
  {
    "name": "@twind/typescript-plugin",
    "tags": ["tw", "tx", "className"],
    "atrributes": ["tw", "tx", "className"],
    "debug": true
  }
]
// VS Code settings

"twind.attributes": [
  "tw",
  "tx",

  "className",
  "class"
],
"twind.tags": [
  "tw",
  "tx",
  "className",
  "class"
],

The auto-completions appear to be missing and the hover attrs are a bit spotty: twind

When the hover attrs trigger, they do pull custom values from twind.config.ts just fine however.

Happy to provide any other info I can. Thanks as always, I really appreciate all the hard work put into this!