mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
Sort legacy menu actions to end of list (#175822)
This commit is contained in:
parent
ce3221ef8e
commit
851635f9a1
1 changed files with 6 additions and 0 deletions
|
@ -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]);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue