Skip to content

IntelliSense not works for Typescript #118

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

Closed
gkn06 opened this issue May 16, 2020 · 4 comments
Closed

IntelliSense not works for Typescript #118

gkn06 opened this issue May 16, 2020 · 4 comments

Comments

@gkn06
Copy link

gkn06 commented May 16, 2020

How to make it work for .ts files?

I think typescript should be added here
https://github.com/bradlc/vscode-tailwindcss/blob/f5dfe02f74ac9bd68529f1997ae875691b819833/src/index.ts#L34-L39

@gkn06
Copy link
Author

gkn06 commented May 16, 2020

tried alpha version too with this setting but still no luck

 "tailwindCSS.includeLanguages": {
    "plaintext": "typescript"
  }

@bradlc
Copy link
Contributor

bradlc commented May 17, 2020

Thanks, I'll add it!

Your includeLanguages setting should look like this by the way:

"tailwindCSS.includeLanguages": {
  "typescript": "javascript"
}

bradlc pushed a commit that referenced this issue May 17, 2020
@gkn06
Copy link
Author

gkn06 commented May 17, 2020

Thanks @bradlc

@gkn06 gkn06 closed this as completed May 20, 2020
@tobkle
Copy link

tobkle commented May 24, 2020

For Typescript React I need this in the settings:

"tailwindCSS.includeLanguages": {
    "typescript": "javascript",
    "typescriptreact": "javascript"
}

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