Merge pull request #2184 from mertyldrm/fix/config-context-warning-leak
fix: remove config-context console.warn that leaks into TUI textbox
This commit is contained in:
commit
36a29e826d
@ -19,9 +19,6 @@ export function initConfigContext(binary: OpenCodeBinaryType, version: string |
|
|||||||
|
|
||||||
export function getConfigContext(): ConfigContext {
|
export function getConfigContext(): ConfigContext {
|
||||||
if (!configContext) {
|
if (!configContext) {
|
||||||
if (process.env.NODE_ENV !== "production") {
|
|
||||||
console.warn("[config-context] getConfigContext() called before initConfigContext(); defaulting to CLI paths.")
|
|
||||||
}
|
|
||||||
const paths = getOpenCodeConfigPaths({ binary: "opencode", version: null })
|
const paths = getOpenCodeConfigPaths({ binary: "opencode", version: null })
|
||||||
configContext = { binary: "opencode", version: null, paths }
|
configContext = { binary: "opencode", version: null, paths }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user