)]}'
{
  "commit": "444f7f00ff439e79b65cf3d2efd4ad66a698af2c",
  "tree": "7271aaf5cbf3ba074b732c3d264bd47082fa9d2a",
  "parents": [
    "b34b8b307e8d804b6ea3f2596388708839f30e58"
  ],
  "author": {
    "name": "Josh Bleecher Snyder",
    "email": "josharian@gmail.com",
    "time": "Wed May 28 21:16:55 2025 +0000"
  },
  "committer": {
    "name": "Josh Bleecher Snyder",
    "email": "josharian@gmail.com",
    "time": "Wed May 28 18:59:10 2025 -0700"
  },
  "message": "webui: expand Monaco comment selections to full lines for better context\n\nEnhances the Monaco diff editor comment functionality to automatically\nexpand any text selection to include complete lines, providing better\ncontext for LLM analysis and code review discussions.\n\nChanges include:\n\n1. Modified handleSelectionChange method in sketch-monaco-view.ts:\n   - Automatically expands selection start to column 1 (beginning of line)\n   - Expands selection end to the maximum column of the end line\n   - Updates both selectedText and selectionRange to reflect full lines\n   - Maintains existing line number calculation for comment headers\n\n2. Enhanced selection behavior:\n   - Partial line selections now include the entire line(s)\n   - Multi-line partial selections expand to include complete first and last lines\n   - Already full-line selections remain unchanged\n   - Preserves line number information for accurate comment context\n\nThe expansion logic uses Monaco\u0027s getLineMaxColumn() method to determine\nproper line boundaries and getValueInRange() to extract the complete\ntext. This ensures that comments always include meaningful, complete\ncode segments rather than partial fragments.\n\nCo-Authored-By: sketch \u003chello@sketch.dev\u003e\nChange-ID: s7a8b9c2d3e4f5g6k\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "56138e353bf2835a1905a80d634009661e4a3350",
      "old_mode": 33188,
      "old_path": "webui/src/web-components/sketch-monaco-view.ts",
      "new_id": "9f996f3fc61022c7d4286f61d68971e38fe75892",
      "new_mode": 33188,
      "new_path": "webui/src/web-components/sketch-monaco-view.ts"
    }
  ]
}
