tw-in-js / vscode-twind-intellisense

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

sastan.twind-intellisense v0.2.1 didn't work in my Fresh Deno project #15

Open Senbonzakura1234 opened 2 years ago

Senbonzakura1234 commented 2 years ago

Reproduce Steps:

echoaman commented 2 years ago

Same here.

image

Fresh creates a /utils/twind.ts file when you create a project. That file has the twind config.

I checked the Output tab of VSCode, selected Twind IntelliSense. It logged this- No twind package and no twind config file found. Not activating Twind IntelliSense.

Updated .vscode/settings.json but still it did not work

{
  "deno.enable": true,
  "deno.lint": true,
  "editor.defaultFormatter": "denoland.vscode-deno",
  "editor.suggest.showStatusBar": true,
  "editor.quickSuggestions": {
    "strings": true
  }
}
echoaman commented 2 years ago

@Senbonzakura1234 check this https://github.com/tw-in-js/vscode-twind-intellisense/issues/9#issuecomment-1173095315. IntelliSense gave suggestions after I added that file.

I guess we can create the file mentioned in comment and add it to .gitignore.

The src code only finds https://github.com/tw-in-js/vscode-twind-intellisense/blob/main/src/extension.ts#L43 (local twind manifest files) or https://github.com/tw-in-js/vscode-twind-intellisense/blob/main/src/extension.ts#L49 (twind config files). Since Fresh does not create such files, the extension remain inactive

lucacasonato commented 2 years ago

Try fresh version 1.1.0 - the extension should now work out of the box!

echoaman commented 2 years ago

Thank you @lucacasonato ! The intellisense is working fine now. Best of luck with deno and fresh !