()
| 155 | }); |
| 156 | |
| 157 | const addFreeTextQuestion = () => { |
| 158 | const input = document.getElementById("question-input"); |
| 159 | if (input.value?.length > 0) { |
| 160 | vscode.postMessage({ |
| 161 | type: "addFreeTextQuestion", |
| 162 | value: input.value, |
| 163 | }); |
| 164 | |
| 165 | input.value = ""; |
| 166 | } |
| 167 | }; |
| 168 | |
| 169 | const clearConversation = () => { |
| 170 | document.getElementById("qa-list").innerHTML = ""; |