chore: generate
This commit is contained in:
parent
ba746e36d8
commit
b8266e5819
2 changed files with 12 additions and 1 deletions
|
|
@ -107,7 +107,9 @@ function DiffViewer(props: { api: TuiPluginApi }) {
|
||||||
})
|
})
|
||||||
const files = createMemo(() => diff() ?? [])
|
const files = createMemo(() => diff() ?? [])
|
||||||
const [focus, setFocus] = createSignal<DiffViewerFocus>("patches")
|
const [focus, setFocus] = createSignal<DiffViewerFocus>("patches")
|
||||||
const [fileTreeEnabled, setFileTreeEnabled] = createSignal(props.api.kv.get<boolean>(KV_SHOW_FILE_TREE, true) !== false)
|
const [fileTreeEnabled, setFileTreeEnabled] = createSignal(
|
||||||
|
props.api.kv.get<boolean>(KV_SHOW_FILE_TREE, true) !== false,
|
||||||
|
)
|
||||||
const showFileTree = createMemo(() => showDiffViewerFileTree(fileTreeEnabled(), files().length))
|
const showFileTree = createMemo(() => showDiffViewerFileTree(fileTreeEnabled(), files().length))
|
||||||
const [singlePatch, setSinglePatch] = createSignal(props.api.kv.get<boolean>(KV_SINGLE_PATCH, false) === true)
|
const [singlePatch, setSinglePatch] = createSignal(props.api.kv.get<boolean>(KV_SINGLE_PATCH, false) === true)
|
||||||
const patchPaneWidth = createMemo(() => dimensions().width - (showFileTree() ? 33 : 0) - 4)
|
const patchPaneWidth = createMemo(() => dimensions().width - (showFileTree() ? 33 : 0) - 4)
|
||||||
|
|
|
||||||
|
|
@ -2288,6 +2288,15 @@
|
||||||
"enum": ["git", "branch"]
|
"enum": ["git", "branch"]
|
||||||
},
|
},
|
||||||
"required": true
|
"required": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "context",
|
||||||
|
"in": "query",
|
||||||
|
"schema": {
|
||||||
|
"type": "integer",
|
||||||
|
"minimum": 0
|
||||||
|
},
|
||||||
|
"required": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue