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

Support for [%tw "..."] auto-completion #120

Closed
dylanirlbeck opened this issue May 20, 2020 · 2 comments
Closed

Support for [%tw "..."] auto-completion #120

dylanirlbeck opened this issue May 20, 2020 · 2 comments

Comments

@dylanirlbeck
Copy link

dylanirlbeck commented May 20, 2020

Hello there! I recently created a ReasonML ppx extension (tailwind-ppx) that validates your Tailwind classes, and I'm wondering if there's any way that auto-completion support can be added for vscode-tailwindcss? In short, the PPX is used like this:

<Component className=[%tw "..."] />

so in VSCode, you should get auto-completion after typing in [%tw ".

I'm thinking we just need to tweak whatever regex you use to prompt for auto-completion, but I'm not seeing the place in the code where this can be done. I've already added support for the ppx in coc-tailwindcss, so I'm hoping it won't be too difficult to do the same with vscode-tailwindcss.

I'd be happy to help if necessary! Thanks in advance

@dylanirlbeck dylanirlbeck changed the title Support for [%tw "..."] auto-completion Support for [%tw "..."] auto-completion May 20, 2020
@iamcco
Copy link

iamcco commented May 20, 2020

The language server of next version is open source now. https://github.com/bradlc/vscode-tailwindcss/tree/next

@bradlc
What do you think of making this like an option so that uses can define their own regex.

@bradlc
Copy link
Contributor

bradlc commented Jun 16, 2020

Hey @dylanirlbeck. I have created a new issue (#129) to consolidate similar requests. Please refer to that issue for comments/updates

@bradlc bradlc closed this as completed Jun 16, 2020
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