Skip to content

Commit 23a4df1

Browse files
authored
Can't easily open PR to the right (#8545)
Fixes #8537
1 parent 2e75836 commit 23a4df1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/github/issueOverview.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ export class IssueOverviewPanel<TItem extends IssueModel = IssueModel> extends W
4343
protected _scrollPosition = { x: 0, y: 0 };
4444

4545
protected static _getViewColumn(toTheSide: boolean, panel?: IssueOverviewPanel): number | undefined {
46+
const tabViewColumn = vscode.window.tabGroups.activeTabGroup.viewColumn;
4647
const activeColumn = toTheSide
4748
? vscode.ViewColumn.Beside
48-
: (panel ? undefined : (vscode.window.activeTextEditor
49-
? vscode.window.activeTextEditor.viewColumn
50-
: vscode.ViewColumn.One));
49+
: (panel ? undefined : tabViewColumn);
5150
return activeColumn;
5251
}
5352

0 commit comments

Comments
 (0)