Skip to content

Commit 08060ca

Browse files
committed
fix: clicking on terminal button is not hiding it
1 parent a2bfddd commit 08060ca

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • src/extensionsIntegrated/Terminal

src/extensionsIntegrated/Terminal/main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,11 @@ define(function (require, exports, module) {
889889
.insertBefore("#app-drawer-button");
890890

891891
$btn.on("click", function () {
892-
CommandManager.execute(CMD_VIEW_TERMINAL);
892+
if (panel && panel.isVisible()) {
893+
panel.hide();
894+
} else {
895+
CommandManager.execute(CMD_VIEW_TERMINAL);
896+
}
893897
});
894898

895899
const PanelView = require("view/PanelView");

0 commit comments

Comments
 (0)