Skip to content

Commit 8a6551b

Browse files
CopilotTyriar
andcommitted
Remove special main/master ordering, use regular completion sorting
Co-authored-by: Tyriar <[email protected]>
1 parent 717d3ac commit 8a6551b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionModel.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ const compareCompletionsFn = (leadingLineContent: string, a: TerminalCompletionI
5151
if (bIsMainOrMaster && !aIsMainOrMaster) {
5252
return 1;
5353
}
54-
55-
// When both are main/master, prioritize main over master
56-
if (aIsMainOrMaster && bIsMainOrMaster) {
57-
if (aLabel === 'main' && bLabel === 'master') {
58-
return -1;
59-
}
60-
if (aLabel === 'master' && bLabel === 'main') {
61-
return 1;
62-
}
63-
}
6454
}
6555

6656
// Sort by the score

0 commit comments

Comments
 (0)