(&self)
| 83 | } |
| 84 | |
| 85 | pub(crate) fn text(&self) -> Option<String> { |
| 86 | self.0.value().or_else(|| { |
| 87 | self.0 |
| 88 | .supports_text_ranges() |
| 89 | .then(|| self.0.document_range().text()) |
| 90 | }) |
| 91 | } |
| 92 | |
| 93 | pub(crate) fn text_selection(&self) -> Option<(usize, usize)> { |
| 94 | if !self.is_focused() { |
no test coverage detected