Skip to content

Conversation

@kv9898
Copy link

@kv9898 kv9898 commented Nov 5, 2025

Fixes #861

I admit the fix is a bit ugly and I wish better solutions are possible.

Copilot AI and others added 9 commits November 4, 2025 15:36
- Add notification system to send actual theme kind from VS Code to LSP
- Track active color theme kind in LSP ConfigurationManager
- Send theme notifications on startup and when theme changes
- Use actual theme kind instead of parsing theme name

Co-authored-by: kv9898 <[email protected]>
- Add explicit check for 'Dark' in theme name fallback
- Only fire configuration change event if theme actually changed

Co-authored-by: kv9898 <[email protected]>
- Add validation for theme kind parameter in notification handler
- Document HighContrast theme handling (treated as dark)
- Prevent fallback detection from overriding explicit theme notifications
- Add flag to track whether theme was explicitly set

Co-authored-by: kv9898 <[email protected]>
@vezwork
Copy link
Collaborator

vezwork commented Nov 14, 2025

Thanks so much for the PR @kv9898 !

I am not working on theme-related stuff right now, but I will be, hopefully before the end of the year. I will come back to review your PR then. I will try to help come up with a clean solution to the problem.

@kv9898
Copy link
Author

kv9898 commented Nov 14, 2025

Thanks so much for the PR @kv9898 !

I am not working on theme-related stuff right now, but I will be, hopefully before the end of the year. I will come back to review your PR then. I will try to help come up with a clean solution to the problem.

Thanks! I understand that Quarto is highly modularized and communication between parts can be tricky (and debugging quarto is definitely not easy from my experience).

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.

Math formulas render in black in VS Code preview when using dark theme

2 participants