Fix feedback editor compile error due to LanguageRegistry API change

This commit is contained in:
Max Brunsfeld 2023-01-24 14:09:24 -08:00
parent dff08d3cfe
commit 51984f0d39

View file

@ -123,7 +123,7 @@ impl FeedbackEditor {
}
fn new(project: ModelHandle<Project>, cx: &mut ViewContext<Self>) -> Self {
let markdown_language = project.read(cx).languages().get_language("Markdown");
let markdown_language = project.read(cx).languages().language_for_name("Markdown");
let buffer = project
.update(cx, |project, cx| {