diff --git a/crates/editor/src/test.rs b/crates/editor/src/test.rs index be1e645d93..f24e3db174 100644 --- a/crates/editor/src/test.rs +++ b/crates/editor/src/test.rs @@ -467,7 +467,7 @@ impl<'a> EditorLspTestContext<'a> { // Constructs lsp range using a marked string with '[', ']' range delimiters pub fn lsp_range(&mut self, marked_text: &str) -> lsp::Range { let (unmarked, mut ranges) = marked_text_ranges_by(marked_text, vec![('[', ']').into()]); - assert_eq!(unmarked, self.editor_text()); + assert_eq!(unmarked, self.cx.editor_text()); let snapshot = self.update_editor(|editor, cx| editor.snapshot(cx)); let offset_range = ranges.remove(&('[', ']').into()).unwrap()[0].clone();