Skip to content

Commit 0d1e3ba

Browse files
committed
v1.2.2
1 parent 31c988f commit 0d1e3ba

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "remix-development-tools",
33
"description": "Remix development tools.",
44
"author": "Alem Tuzlak",
5-
"version": "1.2.1",
5+
"version": "1.2.2",
66
"license": "MIT",
77
"keywords": [
88
"remix",

src/RemixDevTools/tabs/TerminalTab.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,16 @@ const Terminal = ({ onClose, terminal, projectCommands }: TerminalProps) => {
9090
<div className="rdt-relative rdt-flex rdt-h-full rdt-w-full rdt-flex-col rdt-justify-between rdt-rounded-lg rdt-border rdt-border-gray-100/10">
9191
{terminals.length > 1 && (
9292
<button
93-
onClick={onClose}
93+
onClick={() => {
94+
if (terminal.locked) {
95+
sendJsonMessage({
96+
type: "kill",
97+
terminalId: terminal.id,
98+
processId: terminal.processId,
99+
});
100+
}
101+
onClose();
102+
}}
94103
title="Close terminal"
95104
className="rdt-absolute rdt-right-2 rdt-top-2"
96105
>

0 commit comments

Comments
 (0)