diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-02-02 18:02:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-02 18:02:59 -0500 |
commit | ed3086e4b129843c13a009112cf21dfd05745905 (patch) | |
tree | 92e7b035e2d302bd4cc0a9f1c4e8b2964a09eb83 /cli/bench/lsp_bench_standalone.rs | |
parent | de5a4a1757d1f816c594cb0fe7426a5c738f0abb (diff) |
refactor(lsp): remove circular dependency between `LanguageServer` and `DiagnosticsServer` (#13577)
Diffstat (limited to 'cli/bench/lsp_bench_standalone.rs')
-rw-r--r-- | cli/bench/lsp_bench_standalone.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/bench/lsp_bench_standalone.rs b/cli/bench/lsp_bench_standalone.rs index 68d2a0442..0caa8620d 100644 --- a/cli/bench/lsp_bench_standalone.rs +++ b/cli/bench/lsp_bench_standalone.rs @@ -36,6 +36,19 @@ fn incremental_change_wait(bench: &mut Bencher) { }), ) .unwrap(); + + let (id, method, _): (u64, String, Option<Value>) = + client.read_request().unwrap(); + assert_eq!(method, "workspace/configuration"); + client + .write_response( + id, + json!({ + "enable": true + }), + ) + .unwrap(); + let (method, _maybe_diag): (String, Option<Value>) = client.read_notification().unwrap(); assert_eq!(method, "textDocument/publishDiagnostics"); |