diff options
Diffstat (limited to 'cli/lsp')
-rw-r--r-- | cli/lsp/completions.rs | 6 | ||||
-rw-r--r-- | cli/lsp/documents.rs | 2 | ||||
-rw-r--r-- | cli/lsp/registries.rs | 2 | ||||
-rw-r--r-- | cli/lsp/tsc.rs | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/cli/lsp/completions.rs b/cli/lsp/completions.rs index 5e0fad0f4..7a93c8baf 100644 --- a/cli/lsp/completions.rs +++ b/cli/lsp/completions.rs @@ -587,11 +587,11 @@ mod tests { let file_c = dir_a.join("c.ts"); std::fs::write(&file_c, b"").expect("could not create"); let file_d = dir_b.join("d.ts"); - std::fs::write(&file_d, b"").expect("could not create"); + std::fs::write(file_d, b"").expect("could not create"); let file_e = dir_a.join("e.txt"); - std::fs::write(&file_e, b"").expect("could not create"); + std::fs::write(file_e, b"").expect("could not create"); let file_f = dir_a.join("f.mjs"); - std::fs::write(&file_f, b"").expect("could not create"); + std::fs::write(file_f, b"").expect("could not create"); let specifier = ModuleSpecifier::from_file_path(file_c).expect("could not create"); let actual = get_local_completions( diff --git a/cli/lsp/documents.rs b/cli/lsp/documents.rs index 82e2618b3..936d225ec 100644 --- a/cli/lsp/documents.rs +++ b/cli/lsp/documents.rs @@ -1266,7 +1266,7 @@ fn lsp_deno_graph_analyze( use deno_graph::ModuleParser; let analyzer = deno_graph::CapturingModuleAnalyzer::new( - Some(Box::new(LspModuleParser::default())), + Some(Box::<LspModuleParser>::default()), None, ); let parsed_source_result = analyzer.parse_module( diff --git a/cli/lsp/registries.rs b/cli/lsp/registries.rs index 1488077dd..aeaa4c012 100644 --- a/cli/lsp/registries.rs +++ b/cli/lsp/registries.rs @@ -955,7 +955,7 @@ impl ModuleRegistry { None } else { Some(lsp::CompletionList { - items: completions.into_iter().map(|(_, i)| i).collect(), + items: completions.into_values().collect(), is_incomplete, }) }; diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index 1152c080d..5d5b8213b 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -1969,7 +1969,7 @@ impl CompletionEntryDetails { let detail = if original_item.detail.is_some() { original_item.detail.clone() } else if !self.display_parts.is_empty() { - Some(replace_links(&display_parts_to_string( + Some(replace_links(display_parts_to_string( &self.display_parts, language_server, ))) |