mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-04 10:22:17 +01:00
grid - some cleanup
This commit is contained in:
@@ -346,7 +346,7 @@ export class ListView<T> implements ISpliceable<T>, IDisposable {
|
||||
@memoize get onMouseMove(): Event<IListMouseEvent<T>> { return filterEvent(mapEvent(domEvent(this.domNode, 'mousemove'), e => this.toMouseEvent(e)), e => e.index >= 0); }
|
||||
@memoize get onMouseOut(): Event<IListMouseEvent<T>> { return filterEvent(mapEvent(domEvent(this.domNode, 'mouseout'), e => this.toMouseEvent(e)), e => e.index >= 0); }
|
||||
@memoize get onContextMenu(): Event<IListMouseEvent<T>> { return filterEvent(mapEvent(domEvent(this.domNode, 'contextmenu'), e => this.toMouseEvent(e)), e => e.index >= 0); }
|
||||
@memoize get onTouchStart(): Event<IListTouchEvent<T>> { return filterEvent(mapEvent(domEvent(this.domNode, 'touchstart'), e => this.toTouchEvent(e as any)), e => e.index >= 0); }
|
||||
@memoize get onTouchStart(): Event<IListTouchEvent<T>> { return filterEvent(mapEvent(domEvent(this.domNode, 'touchstart'), e => this.toTouchEvent(e)), e => e.index >= 0); }
|
||||
@memoize get onTap(): Event<IListGestureEvent<T>> { return filterEvent(mapEvent(domEvent(this.rowsContainer, TouchEventType.Tap), e => this.toGestureEvent(e)), e => e.index >= 0); }
|
||||
|
||||
private toMouseEvent(browserEvent: MouseEvent): IListMouseEvent<T> {
|
||||
|
||||
@@ -440,7 +440,7 @@ export class ResourceMap<T> {
|
||||
public clone(): ResourceMap<T> {
|
||||
const resourceMap = new ResourceMap<T>();
|
||||
|
||||
resourceMap.map.forEach((value, key) => resourceMap.map.set(key, value));
|
||||
this.map.forEach((value, key) => resourceMap.map.set(key, value));
|
||||
|
||||
return resourceMap;
|
||||
}
|
||||
|
||||
@@ -664,10 +664,10 @@ export class CodeMenu {
|
||||
|
||||
const editorLayoutMenu = new Menu();
|
||||
|
||||
const splitEditorUp = this.createMenuItem(nls.localize({ key: 'miSplitEditorUp', comment: ['&& denotes a mnemonic'] }, "Split &&Up"), 'splitEditor.up');
|
||||
const splitEditorDown = this.createMenuItem(nls.localize({ key: 'miSplitEditorDown', comment: ['&& denotes a mnemonic'] }, "Split &&Down"), 'splitEditor.down');
|
||||
const splitEditorLeft = this.createMenuItem(nls.localize({ key: 'miSplitEditorLeft', comment: ['&& denotes a mnemonic'] }, "Split &&Left"), 'splitEditor.left');
|
||||
const splitEditorRight = this.createMenuItem(nls.localize({ key: 'miSplitEditorRight', comment: ['&& denotes a mnemonic'] }, "Split &&Right"), 'splitEditor.right');
|
||||
const splitEditorUp = this.createMenuItem(nls.localize({ key: 'miSplitEditorUp', comment: ['&& denotes a mnemonic'] }, "Split &&Up"), 'workbench.action.splitEditorUp');
|
||||
const splitEditorDown = this.createMenuItem(nls.localize({ key: 'miSplitEditorDown', comment: ['&& denotes a mnemonic'] }, "Split &&Down"), 'workbench.action.splitEditorDown');
|
||||
const splitEditorLeft = this.createMenuItem(nls.localize({ key: 'miSplitEditorLeft', comment: ['&& denotes a mnemonic'] }, "Split &&Left"), 'workbench.action.splitEditorLeft');
|
||||
const splitEditorRight = this.createMenuItem(nls.localize({ key: 'miSplitEditorRight', comment: ['&& denotes a mnemonic'] }, "Split &&Right"), 'workbench.action.splitEditorRight');
|
||||
|
||||
const singleColumnEditorLayout = this.createMenuItem(nls.localize({ key: 'miSingleColumnEditorLayout', comment: ['&& denotes a mnemonic'] }, "&&Single"), 'workbench.action.editorLayoutSingle');
|
||||
const centeredEditorLayout = this.createMenuItem(nls.localize({ key: 'miCenteredEditorLayout', comment: ['&& denotes a mnemonic'] }, "&&Centered"), 'workbench.action.editorLayoutCentered');
|
||||
|
||||
@@ -37,10 +37,10 @@ export const KEEP_EDITOR_COMMAND_ID = 'workbench.action.keepEditor';
|
||||
export const SHOW_EDITORS_IN_GROUP = 'workbench.action.showEditorsInGroup';
|
||||
export const TOGGLE_DIFF_INLINE_MODE = 'toggle.diff.editorMode';
|
||||
|
||||
export const SPLIT_EDITOR_UP = 'splitEditor.up';
|
||||
export const SPLIT_EDITOR_DOWN = 'splitEditor.down';
|
||||
export const SPLIT_EDITOR_LEFT = 'splitEditor.left';
|
||||
export const SPLIT_EDITOR_RIGHT = 'splitEditor.right';
|
||||
export const SPLIT_EDITOR_UP = 'workbench.action.splitEditorUp';
|
||||
export const SPLIT_EDITOR_DOWN = 'workbench.action.splitEditorDown';
|
||||
export const SPLIT_EDITOR_LEFT = 'workbench.action.splitEditorLeft';
|
||||
export const SPLIT_EDITOR_RIGHT = 'workbench.action.splitEditorRight';
|
||||
|
||||
export const NAVIGATE_ALL_EDITORS_GROUP_PREFIX = 'edt ';
|
||||
export const NAVIGATE_IN_ACTIVE_GROUP_PREFIX = 'edt active ';
|
||||
|
||||
@@ -217,7 +217,6 @@ configurationRegistry.registerConfiguration({
|
||||
},
|
||||
'default': [
|
||||
ToggleTabFocusModeAction.ID,
|
||||
FocusActiveGroupAction.ID,
|
||||
QUICKOPEN_ACTION_ID,
|
||||
QUICKOPEN_FOCUS_SECONDARY_ACTION_ID,
|
||||
ShowAllCommandsAction.ID,
|
||||
@@ -274,6 +273,7 @@ configurationRegistry.registerConfiguration({
|
||||
debugActions.StepOverAction.ID,
|
||||
OpenNextRecentlyUsedEditorInGroupAction.ID,
|
||||
OpenPreviousRecentlyUsedEditorInGroupAction.ID,
|
||||
FocusActiveGroupAction.ID,
|
||||
FocusFirstGroupAction.ID,
|
||||
FocusLastGroupAction.ID,
|
||||
OpenFirstEditorInGroup.ID,
|
||||
|
||||
Reference in New Issue
Block a user