{
  "method": "textDocument/codeAction",
  "result": [
    {
      "title": "Rewrite object type as an interface",
      "kind": "quickfix",
      "diagnostics": [
        {
          "range": {
            "start": {
              "line": 12,
              "character": 9
            },
            "end": {
              "line": 12,
              "character": 16
            }
          },
          "severity": 1,
          "code": "InferError",
          "source": "Flow",
          "message": "Cannot call `bar` with object literal bound to `_` because cannot subtype class  `A` [1] with  object type [2]. Please use an interface instead in property `i`.",
          "relatedInformation": []
        }
      ],
      "edit": {
        "changes": {
          "<PLACEHOLDER_PROJECT_URL>/class-object-subtype.js": [
            {
              "range": {
                "start": {
                  "line": 10,
                  "character": 23
                },
                "end": {
                  "line": 10,
                  "character": 39
                }
              },
              "newText": "interface { x: number }"
            }
          ]
        }
      },
      "command": {
        "title": "",
        "command": "log:org.flow:<PLACEHOLDER_PROJECT_URL>",
        "arguments": [
          "textDocument/codeAction",
          "replace_obj_with_interface",
          "Rewrite object type as an interface"
        ]
      }
    }
  ]
}
