Skip to content

Commit 2a693d5

Browse files
committed
feat: add kill terminal tooltip in terminal sidebar close button
1 parent 5f50768 commit 2a693d5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/extensionsIntegrated/Terminal/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,9 @@ define(function (require, exports, module) {
576576
$item.css("opacity", "0.6");
577577
}
578578

579-
$item.append('<span class="terminal-flyout-close"><i class="fa-solid fa-xmark"></i></span>');
579+
$item.append($('<span class="terminal-flyout-close"></span>')
580+
.attr("title", Strings.TERMINAL_CLOSE_TAB_TOOLTIP)
581+
.append('<i class="fa-solid fa-xmark"></i>'));
580582
$item.append('<span class="terminal-flyout-icon"><i class="fa-solid fa-terminal"></i></span>');
581583
$item.append($('<span class="terminal-flyout-title"></span>').text(label));
582584
if (cwdName) {

src/nls/root/strings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1821,6 +1821,7 @@ define({
18211821
"TERMINAL_FOCUS_HINT": "Press {0} to switch between editor and terminal",
18221822
"TERMINAL_CLEAR": "Clear Terminal",
18231823
"TERMINAL_CLEAR_BUFFER_HINT": "💡 Press {0} to clear terminal buffer",
1824+
"TERMINAL_CLOSE_TAB_TOOLTIP": "Kill Terminal",
18241825
"EXTENDED_COMMIT_MESSAGE": "EXTENDED",
18251826
"GETTING_STAGED_DIFF_PROGRESS": "Getting diff of staged files\u2026",
18261827
"GIT_COMMIT": "Git commit\u2026",

0 commit comments

Comments
 (0)