diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-10-16 22:43:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-16 22:43:26 +0100 |
commit | 72dd74d83a89d3db17e6ed5d0b8c7f4ba3f3d233 (patch) | |
tree | c2344262cbfdb824eacd712744cc805c6e96321c /cli/bench/lsp_bench_standalone.rs | |
parent | f8417224eb9cbc2e4ae134ae197670a0bc53df2e (diff) |
Reland feat(lsp): deno/didRefreshDenoConfigurationTree notifications (#26325)
Diffstat (limited to 'cli/bench/lsp_bench_standalone.rs')
-rw-r--r-- | cli/bench/lsp_bench_standalone.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/bench/lsp_bench_standalone.rs b/cli/bench/lsp_bench_standalone.rs index 9c4f264ec..3c946cfbe 100644 --- a/cli/bench/lsp_bench_standalone.rs +++ b/cli/bench/lsp_bench_standalone.rs @@ -13,7 +13,11 @@ use test_util::lsp::LspClientBuilder; fn incremental_change_wait(bench: &mut Bencher) { let mut client = LspClientBuilder::new().use_diagnostic_sync(false).build(); client.initialize_default(); + let (method, _): (String, Option<Value>) = client.read_notification(); + assert_eq!(method, "deno/didRefreshDenoConfigurationTree"); client.change_configuration(json!({ "deno": { "enable": true } })); + let (method, _): (String, Option<Value>) = client.read_notification(); + assert_eq!(method, "deno/didRefreshDenoConfigurationTree"); client.write_notification( "textDocument/didOpen", |