Sanity checks
What CLI tool does this relate to?
git
Which statement makes the most sense?
There is a bug with this completion spec
Issue Details
This section takes too long and causes usability issues:
|
// Commit history |
|
commits: { |
|
script: ["git", "--no-optional-locks", "log", "--oneline"], |
|
postProcess: function (out) { |
|
const output = filterMessages(out); |
|
|
|
if (output.startsWith("fatal:")) { |
|
return []; |
|
} |
|
|
|
return output.split("\n").map((line) => { |
|
return { |
|
name: line.substring(0, 7), |
|
icon: "fig://icon?type=node", |
|
description: line.substring(7), |
|
}; |
|
}); |
|
}, |
|
}, |
PS D:\microsoft\vscode> Measure-Command { git --no-optional-locks log --oneline }
Days : 0
Hours : 0
Minutes : 0
Seconds : 1
Milliseconds : 733
Ticks : 17338688
TotalDays : 2.00679259259259E-05
TotalHours : 0.000481630222222222
TotalMinutes : 0.0288978133333333
TotalSeconds : 1.7338688
TotalMilliseconds : 1733.8688
Instead of including all commits, only the most recent n should be included
Sanity checks
git checkoutis missing options ingitcompletion spec). If your issue is more general, please create your issue here: withfig/figWhat CLI tool does this relate to?
git
Which statement makes the most sense?
There is a bug with this completion spec
Issue Details
This section takes too long and causes usability issues:
autocomplete/src/git.ts
Lines 119 to 137 in aef52ac
Instead of including all commits, only the most recent n should be included