Skip to content

Properly restart server when detecting new Tailwind CSS v4 configs #1387

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

Merged
merged 4 commits into from
May 28, 2025

Conversation

thecrypticace
Copy link
Contributor

@thecrypticace thecrypticace commented May 28, 2025

In editors that use our language server directly (not our VSCode extension), if you start with a project with a CSS file that isn't a Tailwind CSS config then edit it we want the server to restart.

Unfortunately this was hitting an error causing the restart to fail but because of how things are set up this error isn't easily catchable (but it did get logged thankfully).

This fixes that error and turning a CSS file from a non-config into a proper Tailwind CSS v4 config should work and the server should react accordingly.

@thecrypticace thecrypticace changed the title Fix error that happens when restarting an uninitialized server Properly restart server when detecting new Tailwind CSS v4 configs May 28, 2025
Copy link
Member

@philipp-spiess philipp-spiess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small enough change 👍

@thecrypticace thecrypticace merged commit 78ee813 into main May 28, 2025
12 checks passed
@thecrypticace thecrypticace deleted the fix/error-on-restart branch May 28, 2025 14:39
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

Successfully merging this pull request may close these issues.

2 participants