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

Function getUpdateCommand

src/cm/lsp/serverLauncher.ts:556–566  ·  view source on GitHub ↗
(server: LspServerDefinition)

Source from the content-addressed store, hash-verified

554}
555
556function getUpdateCommand(server: LspServerDefinition): string | null {
557 const launcher = server.launcher;
558 if (!launcher) return null;
559 if (
560 typeof launcher.updateCommand === "string" &&
561 launcher.updateCommand.trim()
562 ) {
563 return launcher.updateCommand.trim();
564 }
565 return buildInstallCommand(server, "update");
566}
567
568async function readServerVersion(
569 server: LspServerDefinition,

Callers 2

getInstallCommandFunction · 0.85
installServerFunction · 0.85

Calls 1

buildInstallCommandFunction · 0.85

Tested by

no test coverage detected