mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
extend selection expands macros and can totally panic
This commit is contained in:
parent
171f6e6d00
commit
73836cdbbc
3 changed files with 11 additions and 7 deletions
|
@ -310,8 +310,8 @@ impl Analysis {
|
|||
}
|
||||
|
||||
/// Selects the next syntactic nodes encopasing the range.
|
||||
pub fn extend_selection(&self, frange: FileRange) -> TextRange {
|
||||
extend_selection::extend_selection(&self.db, frange)
|
||||
pub fn extend_selection(&self, frange: FileRange) -> Cancelable<TextRange> {
|
||||
self.with_db(|db| extend_selection::extend_selection(db, frange))
|
||||
}
|
||||
|
||||
/// Returns position of the mathcing brace (all types of braces are
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue