(status)
| 38 | } |
| 39 | |
| 40 | function getStatusColor(status) { |
| 41 | switch (status) { |
| 42 | case "active": |
| 43 | return "var(--lsp-status-active, #22c55e)"; |
| 44 | case "connecting": |
| 45 | return "var(--lsp-status-connecting, #f59e0b)"; |
| 46 | default: |
| 47 | return "var(--lsp-status-stopped, #6b7280)"; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | function copyLogsToClipboard(serverId, serverLabel) { |
| 52 | const logs = getLspLogs(serverId); |