Get all params
(&self, cx: &App)
| 97 | ) { |
| 98 | // Preserve descriptions across bulk round-trips by matching keys. |
| 99 | let mut descriptions: HashMap<String, String> = HashMap::new(); |
| 100 | for row in &self.param_rows { |
| 101 | let key = row.key_input.read(cx).text().to_string(); |
| 102 | let description = row.description_input.read(cx).text().to_string(); |
| 103 | if !key.is_empty() && !description.is_empty() { |
| 104 | descriptions.insert(key.clone(), description); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | self.param_rows.clear(); |
| 109 | for entry in entries { |
| 110 | let description = descriptions.get(&entry.key).cloned().unwrap_or_default(); |
| 111 | let completion_engine = self.completion_engine.clone(); |
no test coverage detected