(result)
| 135 | } |
| 136 | |
| 137 | function formatStatusLabel(result) { |
| 138 | switch (result?.status) { |
| 139 | case "present": |
| 140 | return strings["lsp-status-installed"]; |
| 141 | case "missing": |
| 142 | return strings["lsp-status-not-installed"]; |
| 143 | case "failed": |
| 144 | return strings["lsp-status-check-failed"]; |
| 145 | default: |
| 146 | return strings["lsp-status-unknown"]; |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | function formatStartupTimeoutValue(timeout) { |
| 151 | return typeof timeout === "number" |
no outgoing calls
no test coverage detected