Sort legacy menu actions to end of list (#175822)

This commit is contained in:
Joyce Er 2023-03-01 17:04:02 -08:00 committed by GitHub
parent ce3221ef8e
commit 851635f9a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -408,6 +408,12 @@ export class RemoteStatusIndicator extends Disposable implements IWorkbenchContr
if (isCurrentRemote1 !== isCurrentRemote2) {
return isCurrentRemote1 ? -1 : 1;
}
// legacy indicator commands go last
if (g1[0] !== '' && g2[0] === '') {
return -1;
} else if (g1[0] === '' && g2[0] !== '') {
return 1;
}
return g1[0].localeCompare(g2[0]);
});
}