From 3cec157335a71c1df0b1e97f35211d28144ea6ec Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Thu, 9 Jun 2022 16:36:02 -0700 Subject: [PATCH] fix compile error in EditorLspTestContext --- crates/editor/src/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();