Skip to content

Commit a011812

Browse files
committed
Correct completion kind
1 parent 00211cb commit a011812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const compareCompletionsFn = (leadingLineContent: string, a: TerminalCompletionI
8484
// Boost main and master branches for git commands
8585
// HACK: Currently this just matches leading line content, it should eventually check the
8686
// completion type is a branch
87-
if (a.completion.kind === TerminalCompletionItemKind.Method && b.completion.kind === TerminalCompletionItemKind.Method && /^\s*git\b/.test(leadingLineContent)) {
87+
if (a.completion.kind === TerminalCompletionItemKind.Argument && b.completion.kind === TerminalCompletionItemKind.Argument && /^\s*git\b/.test(leadingLineContent)) {
8888
const aLabel = typeof a.completion.label === 'string' ? a.completion.label : a.completion.label.label;
8989
const bLabel = typeof b.completion.label === 'string' ? b.completion.label : b.completion.label.label;
9090
const aIsMainOrMaster = aLabel === 'main' || aLabel === 'master';

0 commit comments

Comments
 (0)