MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / formatStatusLabel

Function formatStatusLabel

src/settings/lspServerDetail.js:137–148  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

135}
136
137function 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
150function formatStartupTimeoutValue(timeout) {
151 return typeof timeout === "number"

Callers 2

createItemsFunction · 0.85
refreshVisibleStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected