Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Jul 13, 2022
1 parent ef696f4 commit b7ab521
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions cli/lsp/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1168,29 +1168,34 @@ let c: number = "a";
assert_eq!(actual.len(), 2);
for (specifier, _, diagnostics) in actual {
match specifier.as_str() {
"file:///std/testing/asserts.ts" => assert_eq!(json!(diagnostics), json!([])),
"file:///a/file.ts" => assert_eq!(json!(diagnostics), json!([
{
"range": {
"start": {
"line": 0,
"character": 23
"file:///std/testing/asserts.ts" => {
assert_eq!(json!(diagnostics), json!([]))
}
"file:///a/file.ts" => assert_eq!(
json!(diagnostics),
json!([
{
"range": {
"start": {
"line": 0,
"character": 23
},
"end": {
"line": 0,
"character": 50
}
},
"end": {
"line": 0,
"character": 50
"severity": 4,
"code": "import-map-remap",
"source": "deno",
"message": "The import specifier can be remapped to \"/~/std/testing/asserts.ts\" which will resolve it via the active import map.",
"data": {
"from": "../std/testing/asserts.ts",
"to": "/~/std/testing/asserts.ts"
}
},
"severity": 4,
"code": "import-map-remap",
"source": "deno",
"message": "The import specifier can be remapped to \"/~/std/testing/asserts.ts\" which will resolve it via the active import map.",
"data": {
"from": "../std/testing/asserts.ts",
"to": "/~/std/testing/asserts.ts"
}
}
])),
])
),
_ => unreachable!("unexpected specifier {}", specifier),
}
}
Expand Down

0 comments on commit b7ab521

Please sign in to comment.