mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 05:15:00 +00:00
fix compile error in EditorLspTestContext
This commit is contained in:
parent
8378590d57
commit
3cec157335
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue