(port: number, text: string)
| 91 | } |
| 92 | |
| 93 | async function appendPrompt(port: number, text: string) { |
| 94 | await fetch(`http://localhost:${port}/tui/append-prompt`, { |
| 95 | method: "POST", |
| 96 | headers: { |
| 97 | "Content-Type": "application/json", |
| 98 | }, |
| 99 | body: JSON.stringify({ text }), |
| 100 | }) |
| 101 | } |
| 102 | |
| 103 | function getActiveFile() { |
| 104 | const activeEditor = vscode.window.activeTextEditor |
no test coverage detected