6014f03ed2
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
17 lines
513 B
TypeScript
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"),
|
|
]
|
|
}
|