Files
oh-my-opencode/src/tools/lsp/server-path-bases.ts
T

17 lines
513 B
TypeScript
Raw Normal View History

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"),
]
}