Open Senbonzakura1234 opened 2 years ago
Same here.
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
}
}
@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
Try fresh version 1.1.0 - the extension should now work out of the box!
Thank you @lucacasonato ! The intellisense is working fine now. Best of luck with deno and fresh !
Reproduce Steps:
env: Deno v1.24.3
run
deno run -A -r https://fresh.deno.dev .
to create a new Fresh projectchoose '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
tw
functionTried but not work: I tried to reload the vscode, restart my system, but it still didn't work either