2026-03-12 01:44:06 +09:00
|
|
|
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"),
|
2026-03-12 11:04:43 +09:00
|
|
|
join(dataDir, "bin", "node_modules", ".bin"),
|
2026-03-12 01:44:06 +09:00
|
|
|
]
|
|
|
|
|
}
|