We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c91649f commit 4001e9dCopy full SHA for 4001e9d
src/vs/workbench/contrib/debug/browser/repl.ts
@@ -270,12 +270,13 @@ export class Repl extends FilterViewPane implements IHistoryNavigationWidget {
270
271
if (this.configurationService.getValue<IDebugConfiguration>('debug').console.historySuggestions) {
272
const history = this.history.getHistory();
273
- history.forEach(h => suggestions.push({
+ const idxLength = String(history.length).length;
274
+ history.forEach((h, i) => suggestions.push({
275
label: h,
276
insertText: h,
277
kind: CompletionItemKind.Text,
278
range: computeRange(h.length),
- sortText: 'ZZZ'
279
+ sortText: 'ZZZ' + String(history.length - i).padStart(idxLength, '0')
280
}));
281
}
282
0 commit comments