From 6279f835060f7bf671541ef1fa0a705c16945375 Mon Sep 17 00:00:00 2001 From: isidor Date: Wed, 25 Mar 2020 11:50:24 +0100 Subject: [PATCH] debug: configuration presentation sort polish #93362 --- src/vs/workbench/contrib/debug/common/debugUtils.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/vs/workbench/contrib/debug/common/debugUtils.ts b/src/vs/workbench/contrib/debug/common/debugUtils.ts index 02f3fdcd869..e899fb7bd90 100644 --- a/src/vs/workbench/contrib/debug/common/debugUtils.ts +++ b/src/vs/workbench/contrib/debug/common/debugUtils.ts @@ -247,6 +247,9 @@ function convertPaths(msg: DebugProtocol.ProtocolMessage, fixSourcePath: (toDA: export function getVisibleAndSorted(array: T[]): T[] { return array.filter(config => !config.presentation?.hidden).sort((first, second) => { if (!first.presentation) { + if (!second.presentation) { + return 0; + } return 1; } if (!second.presentation) { @@ -271,6 +274,10 @@ export function getVisibleAndSorted