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

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

Open
Senbonzakura1234 opened this issue Aug 22, 2022 · 4 comments

Comments

@Senbonzakura1234
Copy link

Senbonzakura1234 commented Aug 22, 2022

Reproduce Steps:

  • env: Deno v1.24.3

  • run deno run -A -r https://fresh.deno.dev . to create a new Fresh project

  • choose 'y' for both questions in the cli

  • install sastan.twind-intellisense v0.2.1 extension

  • check any class properties of jsx element in any .tsx files
    - Expected behavior: sastan.twind-intellisense v0.2.1 will suggest tailwind class inside tw function
    - Actual behavior: no code suggestions from sastan.twind-intellisense v0.2.1
    image

  • Tried but not work: I tried to reload the vscode, restart my system, but it still didn't work either

@echoaman
Copy link

echoaman commented Aug 25, 2022

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
Copy link

@Senbonzakura1234 check this #9 (comment). 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
Copy link

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

@echoaman
Copy link

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

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