Skip to content

feat(editor): JSON syntax highlighting in Mongo document editor (#50) - #75

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/50-json-syntax-highlighting
May 28, 2026
Merged

feat(editor): JSON syntax highlighting in Mongo document editor (#50)#75
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/50-json-syntax-highlighting

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Extends HighlighterTheme with JSON scopes (keys, numbers, true/false/null, strings).
  • MongoDocumentEditor uses QueryaCodeEditor highlighting with editorTheme.background and workbench.success for the save banner.
  • Tests: JSON span unit test, Format/invalid JSON widget tests, editor background token.

Test plan

  • flutter analyze
  • flutter test (333 tests)
  • Manual: open Mongo document, verify key/string/number/boolean colors; Format; invalid JSON error banner; save success banner color follows theme.

Closes #50

Map JSON grammar scopes in HighlighterTheme, wire mongo editor to workbench
success and editor background tokens, and add format/validation tests.
@ZhuchkaTriplesix ZhuchkaTriplesix added enhancement New feature or request theme Theming, colors, VS Code themes editor Code/SQL editor 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 629e113 into dev May 28, 2026
4 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/50-json-syntax-highlighting branch June 13, 2026 20:09
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
feat(editor): JSON syntax highlighting in Mongo document editor (#50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editor Code/SQL editor 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