Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4161

MongoDB.tmLanguage: Single source of truth for syntax highlighting

    • Type: Icon: Investigation Investigation
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      • In VSCODE-23, we're taking the fast path. In the future, let's work out a unified solution for VSCODE, MONGOSH, and COMPASS. Notes/ideas below.

      Notes

      VS Code
      Ace Editor
      node ace/tool/tmlanguage.js MongoDB.tmLanguage
      
      highlight.js
      mongosh highlighting
      Output

      repl uses util.inspect() which 1. can be customized 2. replace util.inspect() entirely via the writer option with something like cli-highlight or emphasize

      Input

      trickier... but possible.

      (HT @max for links)

            Assignee:
            Unassigned Unassigned
            Reporter:
            lucas.hrabovsky Lucas Hrabovsky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: