fix: add oh-my-openagent.jsonc config file detection (fixes #2624)
This commit is contained in:
@@ -4,7 +4,7 @@ import { join } from "path"
|
||||
import { BUILTIN_SERVERS } from "./constants"
|
||||
import type { ResolvedServer } from "./types"
|
||||
import { getOpenCodeConfigDir } from "../../shared"
|
||||
import { parseJsonc, detectConfigFile } from "../../shared/jsonc-parser"
|
||||
import { parseJsonc, detectConfigFile, detectPluginConfigFile } from "../../shared/jsonc-parser"
|
||||
|
||||
interface LspEntry {
|
||||
disabled?: boolean
|
||||
@@ -38,8 +38,8 @@ export function getConfigPaths(): { project: string; user: string; opencode: str
|
||||
const cwd = process.cwd()
|
||||
const configDir = getOpenCodeConfigDir({ binary: "opencode" })
|
||||
return {
|
||||
project: detectConfigFile(join(cwd, ".opencode", "oh-my-opencode")).path,
|
||||
user: detectConfigFile(join(configDir, "oh-my-opencode")).path,
|
||||
project: detectPluginConfigFile(join(cwd, ".opencode")).path,
|
||||
user: detectPluginConfigFile(configDir).path,
|
||||
opencode: detectConfigFile(join(configDir, "opencode")).path,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user