summaryrefslogtreecommitdiff
path: root/tests/integration/lsp_tests.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-09-11 00:20:03 +0100
committerGitHub <noreply@github.com>2024-09-11 00:20:03 +0100
commitf959297dcd382b25bdedd0ff6aa27e8fb40e7ecd (patch)
treef30f58be88150fb49b6207aee79058714197f3aa /tests/integration/lsp_tests.rs
parent4865ae13e1a637a86de1266f1f5147b6142872c6 (diff)
feat(lsp): unstable setting as list (#25552)
Diffstat (limited to 'tests/integration/lsp_tests.rs')
-rw-r--r--tests/integration/lsp_tests.rs14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/integration/lsp_tests.rs b/tests/integration/lsp_tests.rs
index f0d0a2d8d..4c8372df6 100644
--- a/tests/integration/lsp_tests.rs
+++ b/tests/integration/lsp_tests.rs
@@ -10907,7 +10907,7 @@ fn lsp_configuration_did_change() {
},
},
},
- "unstable": false,
+ "unstable": [],
} }));
let list = client.get_completion_list(
@@ -11851,6 +11851,8 @@ Deno.test({
async fn(t) {
console.log("test a");
await t.step("step of test a", () => {});
+ const kv = await Deno.openKv();
+ kv.close();
}
});
"#;
@@ -11860,6 +11862,12 @@ Deno.test({
let mut client = context.new_lsp_command().build();
client.initialize_default();
+ client.change_configuration(json!({
+ "deno": {
+ "enable": true,
+ "unstable": ["kv"],
+ },
+ }));
client.did_open(json!({
"textDocument": {
@@ -12380,7 +12388,7 @@ fn lsp_node_modules_dir() {
"paths": true,
"imports": {},
},
- "unstable": false,
+ "unstable": [],
} }));
};
refresh_config(&mut client);
@@ -12498,7 +12506,7 @@ fn lsp_vendor_dir() {
"paths": true,
"imports": {},
},
- "unstable": false,
+ "unstable": [],
} }));
let diagnostics = client.read_diagnostics();