Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/lib.rs')
| -rw-r--r-- | crates/ide/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 81a771fec8..0bcd033412 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs @@ -366,7 +366,10 @@ impl Analysis { /// Returns position of the matching brace (all types of braces are /// supported). - pub fn matching_brace(&self, position: FilePosition) -> Cancellable<Option<TextSize>> { + pub fn matching_brace( + &self, + position: FilePosition, + ) -> Cancellable<Option<(TextSize, TextSize)>> { self.with_db(|db| { let file_id = EditionedFileId::current_edition(&self.db, position.file_id); let parse = db.parse(file_id); |