Skip to content

Commit

Permalink
get terminal editor's name to persist upon rename cancellation (#236281)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge authored Dec 16, 2024
1 parent 057dd7b commit d0ecdc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vs/workbench/contrib/terminal/browser/terminalActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,9 @@ async function renameWithQuickPick(c: ITerminalServicesCollection, accessor: Ser
value: instance.title,
prompt: localize('workbench.action.terminal.rename.prompt', "Enter terminal name"),
});
instance.rename(title);
if (title) {
instance.rename(title);
}
}
}

Expand Down

0 comments on commit d0ecdc1

Please sign in to comment.