diff options
Diffstat (limited to 'cli/tests/lsp/code_action_resolve_request.json')
-rw-r--r-- | cli/tests/lsp/code_action_resolve_request.json | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cli/tests/lsp/code_action_resolve_request.json b/cli/tests/lsp/code_action_resolve_request.json new file mode 100644 index 000000000..48a2eea3b --- /dev/null +++ b/cli/tests/lsp/code_action_resolve_request.json @@ -0,0 +1,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" + } + } +} |