diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-12-20 15:19:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 15:19:35 -0500 |
commit | 423474caa88f658477ed9f2df1099b7037166c3a (patch) | |
tree | 44d203094c1b9f6857653157a100a98b3a88f33f /cli/tests/lsp_tests.rs | |
parent | fcca54d3ba2b5c1f9f45b70fde46ba07bde4d07b (diff) |
fix(lsp/format): language formatter used should be based on language id (#17148)
Closes #11897
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, |