Method
hint
(&self, line: &str, _pos: usize, _ctx: &Context<'_>)
Source from the content-addressed store, hash-verified
| 134 | type Hint = String; |
| 135 | |
| 136 | fn hint(&self, line: &str, _pos: usize, _ctx: &Context<'_>) -> Option<String> { |
| 137 | if !line.is_empty() { |
| 138 | self.show_hint.set(false); |
| 139 | } |
| 140 | (self.show_hint.get() && line.trim().is_empty()) |
| 141 | .then(|| DEFAULT_HINT_SUGGESTION.to_owned()) |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | /// returns true if the current position is after the open quote for |
Callers
nothing calls this directly
Tested by
no test coverage detected