Skip to content

fix(editor): SQL keywords are not highlighted (SELECT / FROM render in the plain foreground colour) #1814

Closed

Description

@ZhuchkaTriplesix

Problem

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

  1. added
    bugSomething isn't working
    editorCode/SQL editor
    P2Medium priority / Parity & Refactoring
    on Oct 25, 2026
  2. added a commit that references this issue on Oct 25, 2026
  3. ZhuchkaTriplesix commented on Oct 25, 2026

    @ZhuchkaTriplesix
    MemberAuthor

    Fixed by #1827 (the grammars are normalised before loading, since Dart's RegExp rejects the inline (?i) flag).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium priority / Parity & RefactoringbugSomething isn't workingeditorCode/SQL editor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions