summaryrefslogtreecommitdiff
path: root/cli/tests/lsp/code_action_resolve_response.json
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-05-18 06:45:13 +1000
committerBert Belder <bertbelder@gmail.com>2021-05-31 16:37:27 +0200
commit96abb27e7328391e9319c99dd23595e42f7982a2 (patch)
tree82cb99c1406fc94850bc3d5d66f8db40300860de /cli/tests/lsp/code_action_resolve_response.json
parent9ad52a28e500931a291e9658f155c4c3861de61a (diff)
refactor: share test harness for lsp between bench and integration (#10659)
Diffstat (limited to 'cli/tests/lsp/code_action_resolve_response.json')
-rw-r--r--cli/tests/lsp/code_action_resolve_response.json91
1 files changed, 91 insertions, 0 deletions
diff --git a/cli/tests/lsp/code_action_resolve_response.json b/cli/tests/lsp/code_action_resolve_response.json
new file mode 100644
index 000000000..e3f5b3f0e
--- /dev/null
+++ b/cli/tests/lsp/code_action_resolve_response.json
@@ -0,0 +1,91 @@
+{
+ "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": []
+ }
+ ],
+ "edit": {
+ "documentChanges": [
+ {
+ "textDocument": {
+ "uri": "file:///a/file.ts",
+ "version": 1
+ },
+ "edits": [
+ {
+ "range": {
+ "start": {
+ "line": 0,
+ "character": 7
+ },
+ "end": {
+ "line": 0,
+ "character": 7
+ }
+ },
+ "newText": "async "
+ },
+ {
+ "range": {
+ "start": {
+ "line": 0,
+ "character": 21
+ },
+ "end": {
+ "line": 0,
+ "character": 25
+ }
+ },
+ "newText": "Promise<void>"
+ },
+ {
+ "range": {
+ "start": {
+ "line": 4,
+ "character": 7
+ },
+ "end": {
+ "line": 4,
+ "character": 7
+ }
+ },
+ "newText": "async "
+ },
+ {
+ "range": {
+ "start": {
+ "line": 4,
+ "character": 21
+ },
+ "end": {
+ "line": 4,
+ "character": 25
+ }
+ },
+ "newText": "Promise<void>"
+ }
+ ]
+ }
+ ]
+ },
+ "data": {
+ "specifier": "file:///a/file.ts",
+ "fixId": "fixAwaitInSyncFunction"
+ }
+}