Skip to content

Commit bf3af9a

Browse files
authored
Sort colour settings, fixes microsoft#166695 (microsoft#167011)
1 parent 859f16a commit bf3af9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/vs/workbench/services/themes/common/themeConfiguration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ configurationRegistry.registerConfiguration(tokenColorCustomizationConfiguration
223223

224224
export function updateColorThemeConfigurationSchemas(themes: IWorkbenchColorTheme[]) {
225225
// updates enum for the 'workbench.colorTheme` setting
226+
themes.sort((a, b) => a.label.localeCompare(b.label));
226227
colorThemeSettingEnum.splice(0, colorThemeSettingEnum.length, ...themes.map(t => t.settingsId));
227228
colorThemeSettingEnumDescriptions.splice(0, colorThemeSettingEnumDescriptions.length, ...themes.map(t => t.description || ''));
228229
colorThemeSettingEnumItemLabels.splice(0, colorThemeSettingEnumItemLabels.length, ...themes.map(t => t.label || ''));

0 commit comments

Comments
 (0)