提交 3942260b 编写于 作者: B Benjamin Pasero

strange sorting order of QuickPick help (fixes #3378)

上级 149cede9
......@@ -135,8 +135,8 @@ export class HelpHandler extends QuickOpenHandler {
let workbenchScoped: HelpEntry[] = [];
let editorScoped: HelpEntry[] = [];
let entry: HelpEntry;
for (let i = 0; i < handlerDescriptors.length; i++) {
let handlerDescriptor = handlerDescriptors[i];
handlerDescriptors.sort((h1, h2) => h1.prefix.localeCompare(h2.prefix)).forEach((handlerDescriptor) => {
if (handlerDescriptor.prefix !== HELP_PREFIX) {
// Descriptor has multiple help entries
......@@ -161,7 +161,7 @@ export class HelpHandler extends QuickOpenHandler {
workbenchScoped.push(entry);
}
}
}
});
// Add separator for workbench scoped handlers
if (workbenchScoped.length > 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册