{
  "method": "textDocument/codeAction",
  "result": [
    {
      "title": "Extract to function in module scope",
      "kind": "refactor.extract",
      "diagnostics": [],
      "edit": {
        "changes": {
          "<PLACEHOLDER_PROJECT_URL>/refactor-extract-function-basic.js": [
            {
              "range": {
                "start": {
                  "line": 4,
                  "character": 2
                },
                "end": {
                  "line": 5,
                  "character": 21
                }
              },
              "newText": "newFunction();"
            },
            {
              "range": {
                "start": {
                  "line": 7,
                  "character": 1
                },
                "end": {
                  "line": 7,
                  "character": 1
                }
              },
              "newText": "\nfunction newFunction(): void {\n  console.log(\"foo\");\n  console.log(\"bar\");\n}"
            }
          ]
        }
      },
      "command": {
        "title": "",
        "command": "log:org.flow:<PLACEHOLDER_PROJECT_URL>",
        "arguments": [
          "textDocument/codeAction",
          "refactor_extract",
          "Extract to function in module scope"
        ]
      }
    },
    {
      "title": "Extract to inner function in function 'fooBar'",
      "kind": "refactor.extract",
      "diagnostics": [],
      "edit": {
        "changes": {
          "<PLACEHOLDER_PROJECT_URL>/refactor-extract-function-basic.js": [
            {
              "range": {
                "start": {
                  "line": 4,
                  "character": 2
                },
                "end": {
                  "line": 5,
                  "character": 21
                }
              },
              "newText": "newFunction();"
            },
            {
              "range": {
                "start": {
                  "line": 6,
                  "character": 25
                },
                "end": {
                  "line": 6,
                  "character": 25
                }
              },
              "newText": "function newFunction(): void {\n    console.log(\"foo\");\n    console.log(\"bar\");\n  }"
            }
          ]
        }
      },
      "command": {
        "title": "",
        "command": "log:org.flow:<PLACEHOLDER_PROJECT_URL>",
        "arguments": [
          "textDocument/codeAction",
          "refactor_extract",
          "Extract to inner function in function 'fooBar'"
        ]
      }
    }
  ]
}
