diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2022-02-04 18:14:57 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-04 18:14:57 +1100 |
| commit | af5a373e00c944397dd95515b4c742485e241c9c (patch) | |
| tree | 104e8268b46e5bbb9e96275f99fad184097f8769 /cli/tests/testdata | |
| parent | 681c3be18de764d3844acbff4a05ac5f40bc3a5f (diff) | |
feat(lsp): add redirect diagnostic and quick fix (#13580)
Ref: #12864
Diffstat (limited to 'cli/tests/testdata')
| -rw-r--r-- | cli/tests/testdata/lsp/code_action_redirect_response.json | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/cli/tests/testdata/lsp/code_action_redirect_response.json b/cli/tests/testdata/lsp/code_action_redirect_response.json new file mode 100644 index 000000000..b2bb470bd --- /dev/null +++ b/cli/tests/testdata/lsp/code_action_redirect_response.json @@ -0,0 +1,47 @@ +[ + { + "title": "Update specifier to its redirected specifier.", + "kind": "quickfix", + "diagnostics": [ + { + "range": { + "start": { + "line": 0, + "character": 19 + }, + "end": { + "line": 0, + "character": 60 + } + }, + "severity": 3, + "code": "redirect", + "source": "deno", + "message": "The import of \"http://127.0.0.1:4545/x_deno_warning.js\" was redirected to \"http://127.0.0.1:4545/x_deno_warning_redirect.js\".", + "data": { + "specifier": "http://127.0.0.1:4545/x_deno_warning.js", + "redirect": "http://127.0.0.1:4545/x_deno_warning_redirect.js" + } + } + ], + "edit": { + "changes": { + "file:///a/file.ts": [ + { + "range": { + "start": { + "line": 0, + "character": 19 + }, + "end": { + "line": 0, + "character": 60 + } + }, + "newText": "\"http://127.0.0.1:4545/x_deno_warning_redirect.js\"" + } + ] + } + } + } +] |
