Files
oh-my-opencode/src/tools/lsp/server-path-bases.ts
T
2026-03-12 11:04:43 +09:00

17 lines
513 B
TypeScript

import { join } from "path"
import { getDataDir, getOpenCodeConfigDir } from "../../shared"
export function getLspServerAdditionalPathBases(workingDirectory: string): string[] {
const configDir = getOpenCodeConfigDir({ binary: "opencode" })
const dataDir = join(getDataDir(), "opencode")
return [
join(workingDirectory, "node_modules", ".bin"),
join(configDir, "bin"),
join(configDir, "node_modules", ".bin"),
join(dataDir, "bin"),
join(dataDir, "bin", "node_modules", ".bin"),
]
}