fix: unify LSP server PATH resolution between detection and spawn (#2431)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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"),
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user