Skip to content

Commit

Permalink
fix: check if currentGroup is empty when split terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
winjo committed May 30, 2023
1 parent 638f5d8 commit f8da187
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ export class TerminalCommandContribution implements CommandContribution {
{
execute: () => {
const group = this.view.currentGroup;
if (!group) {
return;
}
const widget = this.view.createWidget(group);
this.view.selectWidget(widget.id);
},
Expand Down

0 comments on commit f8da187

Please sign in to comment.