summaryrefslogtreecommitdiff
path: root/cli/tests/lsp/code_action_resolve_request.json
blob: 48a2eea3bce79c5c8bf32a1b4d96949c3b3af369 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "codeAction/resolve",
  "params": {
    "title": "Add all missing 'async' modifiers",
    "kind": "quickfix",
    "diagnostics": [
      {
        "range": {
          "start": {
            "line": 1,
            "character": 2
          },
          "end": {
            "line": 1,
            "character": 7
          }
        },
        "severity": 1,
        "code": 1308,
        "source": "deno-ts",
        "message": "'await' expressions are only allowed within async functions and at the top levels of modules.",
        "relatedInformation": []
      }
    ],
    "data": {
      "specifier": "file:///a/file.ts",
      "fixId": "fixAwaitInSyncFunction"
    }
  }
}