From 6bbccb72d7153f95688b63391672f2e2b979eeed Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 10 Oct 2023 05:53:41 +0100 Subject: refactor(lsp): add "deno.reloadImportRegistries" as a command (#20823) --- cli/tests/integration/lsp_tests.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cli/tests') diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index 1fb1e0bc2..c13053db8 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -872,6 +872,18 @@ fn lsp_deno_task() { ); } +#[test] +fn lsp_reload_import_registries_command() { + let context = TestContextBuilder::new().use_temp_cwd().build(); + let mut client = context.new_lsp_command().build(); + client.initialize_default(); + let res = client.write_request( + "workspace/executeCommand", + json!({ "command": "deno.reloadImportRegistries" }), + ); + assert_eq!(res, json!(true)); +} + #[test] fn lsp_import_attributes() { let context = TestContextBuilder::new().use_temp_cwd().build(); -- cgit v1.2.3