fix(app): toggle file tree and review panel better ux (#12481)

This commit is contained in:
Rahul A Mistry 2026-02-07 16:32:40 +05:30 committed by GitHub
parent 4abf8049c9
commit b5b93aea42
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 180 additions and 161 deletions

View file

@ -139,11 +139,8 @@ export const useSessionCommands = (input: {
title: input.language.t("command.fileTree.toggle"),
description: "",
category: input.language.t("command.category.view"),
onSelect: () => {
const opening = !input.layout.fileTree.opened()
if (opening && !input.view().reviewPanel.opened()) input.view().reviewPanel.open()
input.layout.fileTree.toggle()
},
keybind: "mod+\\",
onSelect: () => input.layout.fileTree.toggle(),
},
{
id: "terminal.new",