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

Review VS Code Intellisense auto-complete for Tailwind classes #3193

Open
endigo9740 opened this issue Feb 4, 2025 · 0 comments
Open

Review VS Code Intellisense auto-complete for Tailwind classes #3193

endigo9740 opened this issue Feb 4, 2025 · 0 comments
Labels
feature request Request a feature or introduce and update to the project.
Milestone

Comments

@endigo9740
Copy link
Contributor

endigo9740 commented Feb 4, 2025

Describe the feature in detail (code, mocks, or screenshots encouraged)

In versions prior to Skeleton v3 we implemented a build-time process that would scan all components and generate a unique list of props that utilize the special CssClass type. This class simply represented a string, but by doing this we could generate a JSON file like this:

https://raw.githubusercontent.com/skeletonlabs/skeleton/master/packages/skeleton/scripts/tw-settings.json

This was then used as part of the Skeleton CSA (aka v2 CLI) to insert this file into user's Skeleton project. This would live here:

./.vscode/settings.json

By doing this, VS Code can identify all Skeleton props that should take CSS classes, allowing for Intellisense auto-complete.

Goal

In v3 we should try to find a way to generate similar JSON files for each component framework - since prop names can differ. Then providing a manual (but optional) onboarding step for users that wish to install this in their project and gain this functionality. Perhaps look at if similar functionality is available for other popular editors as well.

Then long term, we should revisit moving this to a dedicated Skeleton VS Code extension so users no longer have to manage this on their own.

NOTE: The CSA approach will never be possible again as we will never build tooling for scaffolding user apps again. It's just not possible when supporting multiple frameworks and meta-framework combinations.

What type of pull request would this be?

New Feature

Provide relevant links or additional information.

No response

@endigo9740 endigo9740 added the feature request Request a feature or introduce and update to the project. label Feb 4, 2025
@endigo9740 endigo9740 added this to the v3.0 (Next) milestone Feb 4, 2025
@endigo9740 endigo9740 marked this as a duplicate of #3079 Feb 4, 2025
@endigo9740 endigo9740 changed the title Review Tailwind Intellisense auto-complete for classes Review VS Code Intellisense auto-complete for Tailwind classes Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a feature or introduce and update to the project.
Projects
None yet
Development

No branches or pull requests

1 participant