summaryrefslogtreecommitdiff
path: root/cli/tests/integration/lsp_tests.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2023-10-10 05:53:41 +0100
committerGitHub <noreply@github.com>2023-10-10 05:53:41 +0100
commit6bbccb72d7153f95688b63391672f2e2b979eeed (patch)
tree39239574062107eee4f36560440ce26e560aa202 /cli/tests/integration/lsp_tests.rs
parent2665ca103e64ae07d7c29d3400d0c37ec691ff50 (diff)
refactor(lsp): add "deno.reloadImportRegistries" as a command (#20823)
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
-rw-r--r--cli/tests/integration/lsp_tests.rs12
1 files changed, 12 insertions, 0 deletions
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
@@ -873,6 +873,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();
let mut client = context.new_lsp_command().build();