Ferrell Synthetic Intelligence commited on
Commit ·
550affb
1
Parent(s): b6522ba
Connect live DAP debugger protocol
Browse files
app.js
CHANGED
|
@@ -280,6 +280,10 @@ async function startTool(kind, id, label) {
|
|
| 280 |
const initialized = await fetch('http://127.0.0.1:4777/api/lsp/notify', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ id, message: { method: 'initialized', params: {} } }) });
|
| 281 |
appendLog('LSP', init.ok && initialized.ok ? 'initialize handshake completed.' : 'initialize handshake failed.', init.ok && initialized.ok ? '' : 'warning');
|
| 282 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 283 |
} catch (error) {
|
| 284 |
$('#tool-status').textContent = `${label}: unavailable`;
|
| 285 |
appendLog('TOOLCHAIN', `${label} unavailable: ${error.message}`, 'warning');
|
|
|
|
| 280 |
const initialized = await fetch('http://127.0.0.1:4777/api/lsp/notify', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ id, message: { method: 'initialized', params: {} } }) });
|
| 281 |
appendLog('LSP', init.ok && initialized.ok ? 'initialize handshake completed.' : 'initialize handshake failed.', init.ok && initialized.ok ? '' : 'warning');
|
| 282 |
}
|
| 283 |
+
if (kind === 'dap') {
|
| 284 |
+
const init = await fetch('http://127.0.0.1:4777/api/dap/request', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ id, request: { command: 'initialize', arguments: { clientID: 'aide', clientName: 'AIDE', adapterID: id, linesStartAt1: true, columnsStartAt1: true, pathFormat: 'path' } } }) });
|
| 285 |
+
appendLog('DAP', init.ok ? 'initialize handshake completed.' : 'initialize request failed.', init.ok ? '' : 'warning');
|
| 286 |
+
}
|
| 287 |
} catch (error) {
|
| 288 |
$('#tool-status').textContent = `${label}: unavailable`;
|
| 289 |
appendLog('TOOLCHAIN', `${label} unavailable: ${error.message}`, 'warning');
|