Rename LanguageRegistry::get_language to language_for_name

This commit is contained in:
Antonio Scandurra
2023-01-23 08:56:41 +01:00
parent f086fa3f21
commit c49dc8d6e5
4 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -331,7 +331,7 @@ impl InfoPopover {
if let Some(language) = content
.language
.clone()
.and_then(|language| project.languages().get_language(&language))
.and_then(|language| project.languages().language_for_name(&language))
{
let runs = language
.highlight_text(&content.text.as_str().into(), 0..content.text.len());