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

Canvas syntax highlighting not syncing with theme changes via GPThemes btn #94

Open
Tracked by #86
itsmartashub opened this issue Dec 15, 2024 · 0 comments
Open
Tracked by #86
Assignees
Labels
Area: Canvas Bug Something isn't working

Comments

@itsmartashub
Copy link
Owner

itsmartashub commented Dec 15, 2024

The CodeMirror editor in the canvas feature fails to properly update its syntax highlighting when themes are changed using the GPThemes floating button. While the overall UI theme changes, the code highlighting remains in the previous theme's style, creating a visual inconsistency.
But if we refresh the page, everything is great. Tho, I want to avoid the need of page refreshing on every theme changes.

However, changing the theme via the ChatGPT settings correctly updates the CM syntax highlighting.

Manually changing the theme value in localStorage updates the syntax correctly.

@itsmartashub itsmartashub added Bug Something isn't working Area: Canvas labels Dec 15, 2024
@itsmartashub itsmartashub self-assigned this Dec 15, 2024
itsmartashub added a commit that referenced this issue Dec 15, 2024
[86] Add `Canvas` text and code support

Closes: #86, #88, #89, #91, #92, #93
Still open: #94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Canvas Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant