feat(core): file context improvements and option to disable (#24661)

This commit is contained in:
James Long
2026-04-27 16:10:13 -04:00
committed by GitHub
parent 51fc10e407
commit fab1768826
3 changed files with 33 additions and 15 deletions
@@ -727,6 +727,15 @@ function App(props: { onSnapshot?: () => Promise<string[]> }) {
dialog.clear()
},
},
{
title: kv.get("file_context_enabled", true) ? "Disable file context" : "Enable file context",
value: "app.toggle.file_context",
category: "System",
onSelect: (dialog) => {
kv.set("file_context_enabled", !kv.get("file_context_enabled", true))
dialog.clear()
},
},
{
title: kv.get("diff_wrap_mode", "word") === "word" ? "Disable diff wrapping" : "Enable diff wrapping",
value: "app.toggle.diffwrap",