[
  {
    "name": "1 full + 1 unchanged",
    "method": "workspace/diagnostic",
    "params": {
      "items": [
        {
          "uri": "file:///src/main.rs",
          "kind": "full",
          "diagnostics": [
            {
              "range": { "start": { "line": 10, "character": 5 }, "end": { "line": 10, "character": 15 } },
              "severity": 2,
              "message": "unused variable: `x`",
              "code": "unused_variables",
              "source": "rust-analyzer"
            },
            {
              "range": { "start": { "line": 20, "character": 0 }, "end": { "line": 20, "character": 10 } },
              "severity": 1,
              "message": "cannot find value `y` in this scope",
              "code": "E0425",
              "source": "rust-analyzer"
            }
          ]
        },
        {
          "uri": "file:///src/lib.rs",
          "kind": "unchanged"
        }
      ]
    }
  },
  {
    "name": "2 full items, many diags",
    "method": "workspace/diagnostic",
    "params": {
      "items": [
        {
          "uri": "file:///src/main.rs",
          "kind": "full",
          "diagnostics": [
            {
              "range": { "start": { "line": 10, "character": 5 }, "end": { "line": 10, "character": 15 } },
              "severity": 2,
              "message": "unused variable: `x`",
              "code": "unused_variables",
              "source": "rust-analyzer"
            }
          ]
        },
        {
          "uri": "file:///src/types.rs",
          "kind": "full",
          "diagnostics": [
            {
              "range": { "start": { "line": 1, "character": 8 }, "end": { "line": 1, "character": 18 } },
              "severity": 1,
              "message": "expected `usize`, found `String`",
              "code": "E0308",
              "source": "rust-analyzer"
            },
            {
              "range": { "start": { "line": 5, "character": 0 }, "end": { "line": 5, "character": 30 } },
              "severity": 3,
              "message": "unused import: `std::collections::HashMap`",
              "code": "unused_imports",
              "source": "rust-analyzer",
              "tags": [1]
            }
          ]
        }
      ]
    }
  },
  {
    "name": "empty items",
    "method": "workspace/diagnostic",
    "params": { "items": [] }
  }
]
