Skip to content

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

@dylanirlbeck

Description

@dylanirlbeck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions