)]}'
{
  "commit": "d59a28f927a466dba18287a776f6ea21723de738",
  "tree": "6f8f4f97d16c1f4bb2408e64212317b46f23804d",
  "parents": [
    "e8f417a962ed6ed4ce93226507cc6e6d007c386b"
  ],
  "author": {
    "name": "Alan Donovan",
    "email": "adonovan@google.com",
    "time": "Fri Apr 21 16:40:05 2023 -0400"
  },
  "committer": {
    "name": "Robert Findley",
    "email": "rfindley@google.com",
    "time": "Mon Apr 24 19:42:53 2023 +0000"
  },
  "message": "gopls/internal/lsp/source: references: restrict search to workspace packages\n\nThis change restricts the scope of the search to workspace\npackages so that we don\u0027t report irrelevant references,\nand more importantly, spend a lot of time type-checking them.\n\nConceptually, we simply call call snapshot.WorkspaceMetadata\nand intersect the resulits of the ReverseDependency operations\nwith it.\n\nHowever, the diff is somewhat trickier because it merges the\nold call to snapshot.WorkspaceMetadata within expandMethodSearch\ninto the new one, and downgrades \u0027expansions\u0027 into a set of IDs\nso that expandMethodSearch needn\u0027t trade in Metadatas.\nIt also factors the removal of intermediate test variants\nthat was previously done in two places, by applying it\nto the workspace set.\n\nCasual testing (searching for refs to os.File.Close in\nkubernetes, using the CLI tool which performs an IWL)\nsuggests that it is \u003e2x faster:\nv0.11.0 \u003d 35s; master \u003d 20s; this CL \u003d 14s.\n\nAlso, a test.\n\nFixes golang/go#59674\n\nChange-Id: I58c072af7f878f4d64ceffd5b62a68bc3e5daae4\nReviewed-on: https://go-review.googlesource.com/c/tools/+/487017\nTryBot-Result: Gopher Robot \u003cgobot@golang.org\u003e\nRun-TryBot: Alan Donovan \u003cadonovan@google.com\u003e\ngopls-CI: kokoro \u003cnoreply+kokoro@google.com\u003e\nReviewed-by: Robert Findley \u003crfindley@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d24c792c928152a2b58e1cbc1285536ee1689d23",
      "old_mode": 33188,
      "old_path": "gopls/internal/lsp/cache/load.go",
      "new_id": "5f796f00350dfe42771dded4874a8a5df103d327",
      "new_mode": 33188,
      "new_path": "gopls/internal/lsp/cache/load.go"
    },
    {
      "type": "modify",
      "old_id": "6557a0c8b8b9e88572e9e096dfc7f04d5bed7a73",
      "old_mode": 33188,
      "old_path": "gopls/internal/lsp/cache/snapshot.go",
      "new_id": "cf2b9309df260164bfb42ab5739307162acab640",
      "new_mode": 33188,
      "new_path": "gopls/internal/lsp/cache/snapshot.go"
    },
    {
      "type": "modify",
      "old_id": "4c595a9c555fce849f97efc26a7a3d80fe49c39d",
      "old_mode": 33188,
      "old_path": "gopls/internal/lsp/diagnostics.go",
      "new_id": "0ba8399e34e86c871a754c52db89586271a57af9",
      "new_mode": 33188,
      "new_path": "gopls/internal/lsp/diagnostics.go"
    },
    {
      "type": "modify",
      "old_id": "3b439c706973c33b9b92f6d326e1fde231892c8a",
      "old_mode": 33188,
      "old_path": "gopls/internal/lsp/source/references.go",
      "new_id": "75e3a61116ec497a53478ce95b494803713169e3",
      "new_mode": 33188,
      "new_path": "gopls/internal/lsp/source/references.go"
    },
    {
      "type": "modify",
      "old_id": "9fe659962a94046d2f4b9d1f5a7a9561d1fd4fbe",
      "old_mode": 33188,
      "old_path": "gopls/internal/lsp/source/view.go",
      "new_id": "de69852ed1925449126b671a45a29f45bcc861fd",
      "new_mode": 33188,
      "new_path": "gopls/internal/lsp/source/view.go"
    },
    {
      "type": "modify",
      "old_id": "e1f5d8e0502781ee971f88cdb8ddedaec24fd3ad",
      "old_mode": 33188,
      "old_path": "gopls/internal/regtest/misc/references_test.go",
      "new_id": "a2073332564df137f1b1c7f8cdf336f5c2ca22fc",
      "new_mode": 33188,
      "new_path": "gopls/internal/regtest/misc/references_test.go"
    }
  ]
}
