reorder entries (#173671)

This commit is contained in:
Sandeep Somavarapu 2023-02-07 13:38:35 +01:00 committed by GitHub
parent 6ee9724963
commit 860bc66d7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,12 +66,12 @@ export class SetLogLevelAction extends Action {
const entries: (LogLevelQuickPickItem | LogChannelQuickPickItem | IQuickPickSeparator)[] = [];
entries.push({ type: 'separator', label: nls.localize('all', "All") });
entries.push(...this.getLogLevelEntries(defaultLogLevels.default, this.loggerService.getLogLevel()));
if (extensionLogs.length) {
entries.push({ type: 'separator', label: nls.localize('extensionLogs', "Extension Logs") });
entries.push(...extensionLogs.sort((a, b) => a.label.localeCompare(b.label)));
}
entries.push({ type: 'separator', label: nls.localize('loggers', "Logs") });
entries.push(...logs.sort((a, b) => a.label.localeCompare(b.label)));
if (extensionLogs.length && logs.length) {
entries.push({ type: 'separator', label: nls.localize('extensionLogs', "Extension Logs") });
}
entries.push(...extensionLogs.sort((a, b) => a.label.localeCompare(b.label)));
return new Promise((resolve, reject) => {
const disposables = new DisposableStore();