diff options
Diffstat (limited to 'cli/tests/lsp_tests.rs')
-rw-r--r-- | cli/tests/lsp_tests.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cli/tests/lsp_tests.rs b/cli/tests/lsp_tests.rs index 066f3efa8..8ed6a67d7 100644 --- a/cli/tests/lsp_tests.rs +++ b/cli/tests/lsp_tests.rs @@ -5339,7 +5339,9 @@ mod lsp { "textDocument/didOpen", json!({ "textDocument": { - "uri": "file:///a/file.json", + // Also test out using a non-json file extension here. + // What should matter is the language identifier. + "uri": "file:///a/file.lock", "languageId": "json", "version": 1, "text": "{\"key\":\"value\"}" @@ -5353,7 +5355,7 @@ mod lsp { "textDocument/formatting", json!({ "textDocument": { - "uri": "file:///a/file.json" + "uri": "file:///a/file.lock" }, "options": { "tabSize": 2, |