mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-26 10:16:01 +01:00
panels: introduce order
This commit is contained in:
@@ -18,8 +18,8 @@ export abstract class Panel extends Composite implements IPanel { }
|
||||
* A panel descriptor is a leightweight descriptor of a panel in the workbench.
|
||||
*/
|
||||
export class PanelDescriptor extends CompositeDescriptor<Panel> {
|
||||
constructor(moduleId: string, ctorName: string, id: string, name: string, cssClass?: string) {
|
||||
super(moduleId, ctorName, id, name, cssClass);
|
||||
constructor(moduleId: string, ctorName: string, id: string, name: string, cssClass?: string, order?: number) {
|
||||
super(moduleId, ctorName, id, name, cssClass, order);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -90,7 +90,8 @@ const openPanelKb: IKeybindings = {
|
||||
'Repl',
|
||||
debug.REPL_ID,
|
||||
nls.localize({ comment: ['Debug is a noun in this context, not a verb.'], key: 'debugPanel' }, 'Debug Console'),
|
||||
'repl'
|
||||
'repl',
|
||||
30
|
||||
));
|
||||
(<panel.PanelRegistry>platform.Registry.as(panel.Extensions.Panels)).setDefaultPanelId(debug.REPL_ID);
|
||||
|
||||
|
||||
@@ -75,7 +75,9 @@ export function registerContributions(): void {
|
||||
'MarkersPanel',
|
||||
Constants.MARKERS_PANEL_ID,
|
||||
Messages.MARKERS_PANEL_TITLE_NO_PROBLEMS,
|
||||
'markersPanel'
|
||||
'markersPanel',
|
||||
10
|
||||
|
||||
));
|
||||
|
||||
let registry = <IWorkbenchActionRegistry>platform.Registry.as(ActionExtensions.WorkbenchActions);
|
||||
|
||||
@@ -38,7 +38,8 @@ ModesRegistry.registerLanguage({
|
||||
'OutputPanel',
|
||||
OUTPUT_PANEL_ID,
|
||||
nls.localize('output', "Output"),
|
||||
'output'
|
||||
'output',
|
||||
20
|
||||
));
|
||||
|
||||
// register toggle output action globally
|
||||
|
||||
@@ -125,7 +125,8 @@ registerSingleton(ITerminalService, TerminalService);
|
||||
'TerminalPanel',
|
||||
TERMINAL_PANEL_ID,
|
||||
nls.localize('terminal', "Terminal"),
|
||||
'terminal'
|
||||
'terminal',
|
||||
40
|
||||
));
|
||||
|
||||
// On mac cmd+` is reserved to cycle between windows, that's why the keybindings use WinCtrl
|
||||
|
||||
Reference in New Issue
Block a user