mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-10 09:18:30 +00:00
fix(core): disable fff by default on windows
This commit is contained in:
parent
538cfaff0d
commit
e4300e9b74
1 changed files with 2 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ export function truthy(key: string) {
|
|||
}
|
||||
|
||||
const copy = process.env["OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT"]
|
||||
const fff = process.env["OPENCODE_DISABLE_FFF"]
|
||||
|
||||
function enabledByExperimental(key: string) {
|
||||
return process.env[key] === undefined ? truthy("OPENCODE_EXPERIMENTAL") : truthy(key)
|
||||
|
|
@ -30,7 +31,7 @@ export const Flag = {
|
|||
OPENCODE_FAKE_VCS: process.env["OPENCODE_FAKE_VCS"],
|
||||
OPENCODE_SERVER_PASSWORD: process.env["OPENCODE_SERVER_PASSWORD"],
|
||||
OPENCODE_SERVER_USERNAME: process.env["OPENCODE_SERVER_USERNAME"],
|
||||
OPENCODE_DISABLE_FFF: truthy("OPENCODE_DISABLE_FFF"),
|
||||
OPENCODE_DISABLE_FFF: fff === undefined ? process.platform === "win32" : truthy("OPENCODE_DISABLE_FFF"),
|
||||
|
||||
// Experimental
|
||||
OPENCODE_EXPERIMENTAL_FILEWATCHER: Config.boolean("OPENCODE_EXPERIMENTAL_FILEWATCHER").pipe(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue