summaryrefslogtreecommitdiff
path: root/cli/tests/integration/lsp_tests.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2023-09-24 08:18:51 +0100
committerGitHub <noreply@github.com>2023-09-24 08:18:51 +0100
commitd955d66a3f8c82a2286739cbb2d2ec657119163f (patch)
tree37154af2f005dae334a79559d5a6848bc9dcc112 /cli/tests/integration/lsp_tests.rs
parentb5ba5f157ed880568d5154e8443073dcf80098f8 (diff)
fix(lsp): show related information for tsc diagnostics (#20654)
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
-rw-r--r--cli/tests/integration/lsp_tests.rs19
1 files changed, 18 insertions, 1 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs
index 4bc4713c6..567af5399 100644
--- a/cli/tests/integration/lsp_tests.rs
+++ b/cli/tests/integration/lsp_tests.rs
@@ -7351,7 +7351,24 @@ fn lsp_diagnostics_deprecated() {
"code": 6385,
"source": "deno-ts",
"message": "'a' is deprecated.",
- "relatedInformation": [],
+ "relatedInformation": [
+ {
+ "location": {
+ "uri": "file:///a/file.ts",
+ "range": {
+ "start": {
+ "line": 0,
+ "character": 4,
+ },
+ "end": {
+ "line": 0,
+ "character": 16,
+ },
+ },
+ },
+ "message": "The declaration was marked as deprecated here.",
+ },
+ ],
"tags": [2]
}
],