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

Function callback

src/cm/lsp/serverLauncher.ts:912–925  ·  view source on GitHub ↗
(type, data)

Source from the content-addressed store, hash-verified

910): Promise<string> {
911 const executor = getExecutor();
912 const callback: ExecutorCallback = (type, data) => {
913 if (type === "stderr") {
914 if (/proot warning/i.test(data)) return;
915 addLspLog(serverId, "stderr", data);
916 console.warn(`[LSP:${serverId}] ${data}`);
917 } else if (type === "stdout" && data && data.trim()) {
918 addLspLog(serverId, "info", data);
919 console.info(`[LSP:${serverId}] ${data}`);
920 // Detect when the axs proxy signals it's listening
921 if (/listening on/i.test(data)) {
922 signalServerReady(serverId);
923 }
924 }
925 };
926 const uuid = await executor.start(command, callback, true);
927 addLspLog(serverId, "info", `Started shell process ${uuid}`);
928 managedServers.set(serverId, {

Callers

nothing calls this directly

Calls 2

addLspLogFunction · 0.90
signalServerReadyFunction · 0.85

Tested by

no test coverage detected