From aaa909bdb39c9a527640d6030fd0205f6db067ae Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 21 May 2021 06:53:55 +1000 Subject: [PATCH] fix upstream changes to tests --- cli/tests/integration_tests_lsp.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cli/tests/integration_tests_lsp.rs b/cli/tests/integration_tests_lsp.rs index 8d8007a314f4c5..8e04cbb95d8b24 100644 --- a/cli/tests/integration_tests_lsp.rs +++ b/cli/tests/integration_tests_lsp.rs @@ -1398,6 +1398,11 @@ fn lsp_code_actions_deno_cache() { } })) .unwrap(); + let (id, method, _) = client.read_request::().unwrap(); + assert_eq!(method, "workspace/configuration"); + client + .write_response(id, json!({ "enable": true })) + .unwrap(); let (method, _) = client.read_notification::().unwrap(); assert_eq!(method, "textDocument/publishDiagnostics"); let (method, _) = client.read_notification::().unwrap(); @@ -1860,6 +1865,11 @@ fn lsp_diagnostics_deno_types() { load_fixture("did_open_params_deno_types.json"), ) .unwrap(); + let (id, method, _) = client.read_request::().unwrap(); + assert_eq!(method, "workspace/configuration"); + client + .write_response(id, json!({ "enable": true })) + .unwrap(); let (maybe_res, maybe_err) = client .write_request::<_, _, Value>( "textDocument/documentSymbol",