fix(vscode): format subagent inspector files

This commit is contained in:
marius-kilocode
2026-08-17 14:37:22 +02:00
parent 53d0af74f6
commit d95c5d460f
3 changed files with 15 additions and 12 deletions
@@ -36,13 +36,16 @@ test("uses one persisted width for every inspector panel", () => {
})
test("hides keyboard hints only in inspector tabs", () => {
const side = readFileSync(resolve(import.meta.dir, "../../webview-ui/agent-manager/terminal/SideTerminalPanel.tsx"), "utf8")
const side = readFileSync(
resolve(import.meta.dir, "../../webview-ui/agent-manager/terminal/SideTerminalPanel.tsx"),
"utf8",
)
expect(subagent).toContain("showKeybind={false}")
expect(side).toContain("showKeybind={false}")
expect(readFileSync(resolve(import.meta.dir, "../../webview-ui/agent-manager/terminal/render.tsx"), "utf8")).not.toContain(
"showKeybind={false}",
)
expect(
readFileSync(resolve(import.meta.dir, "../../webview-ui/agent-manager/terminal/render.tsx"), "utf8"),
).not.toContain("showKeybind={false}")
})
test("limits inspector layout updates during resize", () => {
@@ -88,10 +88,10 @@ export const SubagentPanel: Component<Props> = (props) => {
<SortableClosableTab
id={id}
label={label}
tooltip={label}
icon="task"
showKeybind={false}
keybind={props.active() === id ? "" : props.nextKeybind}
tooltip={label}
icon="task"
showKeybind={false}
keybind={props.active() === id ? "" : props.nextKeybind}
closeKeybind={props.closeKeybind}
active={props.active() === id}
role="tab"
@@ -78,10 +78,10 @@ export const SideTerminalPanel: Component<Props> = (props) => {
<SortableTerminalTab
id={term.id}
label={props.state.title(term.id) ?? term.title}
tooltip={props.state.title(term.id) ?? term.title}
status={props.state.scriptStatus(term.id)}
showKeybind={false}
keybind={active() === term.id ? "" : props.nextKeybind}
tooltip={props.state.title(term.id) ?? term.title}
status={props.state.scriptStatus(term.id)}
showKeybind={false}
keybind={active() === term.id ? "" : props.nextKeybind}
closeKeybind={props.closeKeybind}
active={active() === term.id}
focused={props.state.sideFocusedId() === term.id}