Skip to content

feat(theme): VS Code tokenColors and TextMate scope resolution (#46) - #76

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/46-token-colors
May 28, 2026
Merged

feat(theme): VS Code tokenColors and TextMate scope resolution (#46)#76
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/46-token-colors

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • TokenStyleResolver with longest-prefix scope matching and per-scope cache.
  • Imported VS Code tokenColors flow through QueryaThemeHighlighterTheme (and QueryaEditorTheme token fields).
  • Background compute highlighting for buffers ≥ 8KB to keep large SQL files responsive.

Test plan

  • flutter analyze
  • flutter test (337 tests)
  • Manual: import Dracula/One Dark theme file, open SQL workspace — comment/keyword/string colors match theme.

Closes #46

)

Add TokenStyleResolver, bridge tokenColors to HighlighterTheme on import,
and offload highlighting for buffers over 8KB to a background isolate.
@ZhuchkaTriplesix ZhuchkaTriplesix added enhancement New feature or request theme Theming, colors, VS Code themes labels May 28, 2026
@github-actions github-actions Bot added this to the Theme system milestone May 28, 2026

@ZhuchkaTriplesix ZhuchkaTriplesix left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

123

@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit e95092e into dev May 28, 2026
4 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/46-token-colors branch June 13, 2026 20:09
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
feat(theme): VS Code tokenColors and TextMate scope resolution (#46)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request theme Theming, colors, VS Code themes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant