diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-28 10:18:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-28 10:18:32 -0500 |
commit | fe11df09b15088f5d33a086cc416ae9eaa68f728 (patch) | |
tree | 4a9fc914b6377f6096df8dd5542882be0c09d7bd /cli/tests/integration/lsp_tests.rs | |
parent | 1803df7d3a3406d7a21e7aa0d3e26d807d042092 (diff) |
fix(lsp): update document dependencies on configuration change (#17556)
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
-rw-r--r-- | cli/tests/integration/lsp_tests.rs | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index d149e6919..bca327e96 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -508,15 +508,11 @@ fn lsp_import_map_config_file() { map.insert("config".to_string(), json!("./deno.import_map.jsonc")); params.initialization_options = Some(Value::Object(map)); } - let import_map = - serde_json::to_vec_pretty(&load_fixture("import-map.json")).unwrap(); - fs::write(temp_dir.path().join("import-map.json"), import_map).unwrap(); - fs::create_dir(temp_dir.path().join("lib")).unwrap(); - fs::write( - temp_dir.path().join("lib").join("b.ts"), - r#"export const b = "b";"#, - ) - .unwrap(); + let import_map_text = + serde_json::to_string_pretty(&load_fixture("import-map.json")).unwrap(); + temp_dir.write("import-map.json", import_map_text); + temp_dir.create_dir_all("lib"); + temp_dir.write("lib/b.ts", r#"export const b = "b";"#); let deno_exe = deno_exe_path(); let mut client = LspClient::new(&deno_exe, false).unwrap(); |