MCPcopy Index your code
hub / github.com/anomalyco/opencode / spawn

Function spawn

packages/opencode/src/lsp/server.ts:102–112  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

100 },
101 extensions: [".ts", ".tsx", ".js", ".jsx", ".mjs"],
102 async spawn(root) {
103 const deno = which("deno")
104 if (!deno) {
105 return
106 }
107 return {
108 process: spawn(deno, ["lsp"], {
109 cwd: root,
110 }),
111 }
112 },
113}
114
115export const Typescript: Info = {

Callers

nothing calls this directly

Calls 15

whichFunction · 0.90
spawnFunction · 0.90
resolveBinFunction · 0.85
getRoslynLanguageServerFunction · 0.85
findVscodeRazorExtensionFunction · 0.85
validFunction · 0.85
pathExistsFunction · 0.85
pushMethod · 0.80
renameMethod · 0.80
spawnMethod · 0.80
writeMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected