mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 19:11:03 +08:00
fix(vscode): format subagent inspector files
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user