)]}'
{
  "commit": "b34b8b307e8d804b6ea3f2596388708839f30e58",
  "tree": "d11dfa24942aae9784b18cfa0a3e47758ffb57f5",
  "parents": [
    "efa8f436182a310f7c5eaaf0f9f4787ba4fd3693"
  ],
  "author": {
    "name": "Josh Bleecher Snyder",
    "email": "josharian@gmail.com",
    "time": "Wed May 28 21:00:56 2025 +0000"
  },
  "committer": {
    "name": "Josh Bleecher Snyder",
    "email": "josharian@gmail.com",
    "time": "Wed May 28 18:58:56 2025 -0700"
  },
  "message": "webui: add line numbers to Monaco diff view comment auto-inserted text\n\nEnhances the Monaco diff editor comment functionality to include line\nnumbers in the auto-inserted context text when users add comments to\nselected code. The comments now show specific line information along\nwith the filename and editor type.\n\nChanges include:\n\n1. Modified sketch-monaco-view.ts submitComment method:\n   - Added line number calculation logic using this.selectionRange\n   - Single line selections show \u0027(line N)\u0027 format\n   - Multi-line selections show \u0027(lines N-M)\u0027 format\n   - No line info added when selectionRange is unavailable\n   - Line info is appended to the existing fileContext and editorLabel\n\n2. Enhanced comment format from:\n   \u0027filename [Modified]:\u0027\n   to:\n   \u0027filename [Modified] (line 42):\u0027\n   or:\n   \u0027filename [Modified] (lines 10-15):\u0027\n\n3. Line number extraction uses Monaco\u0027s selection tracking:\n   - Leverages existing selectionRange state from handleSelectionChange\n   - Works for both original and modified editors in diff view\n   - Maintains backwards compatibility when selectionRange is null\n\nThe auto-inserted comment text now provides precise line context,\nmaking comments more useful for code review and collaboration by\nclearly indicating which specific lines are being referenced.\nThis addresses the issue where comments lacked line number context,\nmaking it difficult to locate the referenced code.\n\nCo-Authored-By: sketch \u003chello@sketch.dev\u003e\nChange-ID: s2b4c8f9a1e6d7e3k\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1d7363b978acc766eb9821bfbda1e99d8d6a2384",
      "old_mode": 33188,
      "old_path": "webui/src/web-components/sketch-monaco-view.ts",
      "new_id": "56138e353bf2835a1905a80d634009661e4a3350",
      "new_mode": 33188,
      "new_path": "webui/src/web-components/sketch-monaco-view.ts"
    }
  ]
}
