From b6353672f8d01b8c7a67131aac52c6492b432677 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sat, 6 Feb 2021 07:10:53 +1100 Subject: fix(lsp): support codeAction/resolve (#9405) --- cli/tests/lsp/code_action_resolve_request.json | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 cli/tests/lsp/code_action_resolve_request.json (limited to 'cli/tests/lsp/code_action_resolve_request.json') 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" + } + } +} -- cgit v1.2.3