You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(editor): SQL keywords are not highlighted (SELECT / FROM render in the plain foreground colour) #1814
In the SQL workspace of a SQLite connection (the Demo Playground, default dark theme), SELECT * FROM orders; renders SELECT and FROM in the plain foreground colour. The * is coloured as an operator, so highlighting runs, but keywords get no colour.
Checked in a running debug build (dev at 7cae35c):
the active theme's editor.keyword is #569CD6 (blue), editor.foreground is near white;
sampling the pixels of the editor line finds only near-white text, nothing in the keyword colour;
same at 100 % and 150 % interface scale.
The text was put into the editor through its controller (the MCP toolkit's enter_text), not typed key by key. Worth checking both, since text set programmatically (history, opening a .sql file, a pasted query) takes the same path.
Where to look
QueryaHighlightController / SyntaxHighlightService and the SQL grammar: whether keyword tokens get a scope that maps to editor.keyword, and whether a programmatic text = re-runs highlighting.
Acceptance
SELECT, FROM, WHERE, JOIN … use editor.keyword in the built-in themes, typed or set programmatically.
A widget test pins the keyword colour of a highlighted line.
Activity
Merge pull request #1827 from QueryaHub/fix/sql-keyword-highlighting
ZhuchkaTriplesix commentedon Oct 25, 2026
Fixed by #1827 (the grammars are normalised before loading, since Dart's RegExp rejects the inline (?i) flag).