Skip to content

Commit 4cd47d8

Browse files
Copilotalexr00
andcommitted
Only truncate PR titles when horizontal scrolling is disabled
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 7127933 commit 4cd47d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/view/treeNodes/pullRequestNode.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ export class PRNode extends TreeNode implements vscode.CommentingRangeProvider2
323323
label += `#${number}: `;
324324
}
325325

326-
let labelTitle = title.length > 50 ? `${title.substring(0, 50)}...` : title;
326+
const horizontalScrolling = vscode.workspace.getConfiguration('workbench').get<boolean>('list.horizontalScrolling', false);
327+
let labelTitle = (!horizontalScrolling && title.length > 50) ? `${title.substring(0, 50)}...` : title;
327328
if (COPILOT_ACCOUNTS[author.login]) {
328329
labelTitle = labelTitle.replace('[WIP]', '');
329330
}

0 commit comments

Comments
 (0)