@codingame/monaco-vscode-view-common-service-override 9.0.3 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +1 -1
- package/package.json +3 -3
- package/viewCommon.js +4 -1
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +1 -2
- package/vscode/src/vs/base/browser/ui/grid/grid.js +24 -34
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +34 -35
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +38 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +65 -65
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +85 -85
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +74 -80
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +73 -69
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +21 -24
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +77 -59
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +9 -11
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +172 -173
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +16 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +55 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +19 -22
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +76 -65
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +37 -18
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +4 -5
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +20 -15
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +6 -10
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +31 -45
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +37 -40
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +18 -28
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +8 -8
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +2 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -2
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +3 -4
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +2 -8
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +14 -15
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -1
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +21 -21
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +28 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +6 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +4 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +9 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +19 -19
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +10 -9
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +9 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +26 -26
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +16 -17
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +3 -4
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +33 -36
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +18 -28
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +8 -8
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +7 -8
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +13 -15
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +3 -4
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -4
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +0 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +28 -30
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +71 -74
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +22 -26
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +0 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +16 -18
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +9 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KeybindingsRegistry
|
|
1
|
+
import { KeyChord } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
2
|
+
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
3
3
|
import { List } from 'vscode/vscode/vs/base/browser/ui/list/listWidget';
|
|
4
4
|
import { WorkbenchListSelectionNavigation, WorkbenchListFocusContextKey, WorkbenchListSupportsMultiSelectContextKey, WorkbenchTreeElementCanCollapse, WorkbenchTreeElementHasParent, WorkbenchTreeStickyScrollFocused, getSelectionKeyboardEvent, WorkbenchTreeElementCanExpand, WorkbenchTreeElementHasChild, WorkbenchListHasSelectionOrFocus, RawWorkbenchListFocusContextKey, WorkbenchListSupportsFind, WorkbenchTreeFindOpen, WorkbenchListScrollAtTopContextKey, WorkbenchListScrollAtBottomContextKey } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
5
5
|
import { IListService } from 'vscode/vscode/vs/platform/list/browser/listService.service';
|
|
@@ -52,12 +52,12 @@ async function navigate(widget, updateFocusFn) {
|
|
|
52
52
|
}
|
|
53
53
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
54
54
|
id: 'list.focusDown',
|
|
55
|
-
weight:
|
|
55
|
+
weight: 200 ,
|
|
56
56
|
when: WorkbenchListFocusContextKey,
|
|
57
|
-
primary:
|
|
57
|
+
primary: 18 ,
|
|
58
58
|
mac: {
|
|
59
|
-
primary:
|
|
60
|
-
secondary: [
|
|
59
|
+
primary: 18 ,
|
|
60
|
+
secondary: [256 | 44 ]
|
|
61
61
|
},
|
|
62
62
|
handler: (accessor, arg2) => {
|
|
63
63
|
navigate(accessor.get(IListService).lastFocusedList, async (widget) => {
|
|
@@ -68,12 +68,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
68
68
|
});
|
|
69
69
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
70
70
|
id: 'list.focusUp',
|
|
71
|
-
weight:
|
|
71
|
+
weight: 200 ,
|
|
72
72
|
when: WorkbenchListFocusContextKey,
|
|
73
|
-
primary:
|
|
73
|
+
primary: 16 ,
|
|
74
74
|
mac: {
|
|
75
|
-
primary:
|
|
76
|
-
secondary: [
|
|
75
|
+
primary: 16 ,
|
|
76
|
+
secondary: [256 | 46 ]
|
|
77
77
|
},
|
|
78
78
|
handler: (accessor, arg2) => {
|
|
79
79
|
navigate(accessor.get(IListService).lastFocusedList, async (widget) => {
|
|
@@ -84,12 +84,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
84
84
|
});
|
|
85
85
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
86
86
|
id: 'list.focusAnyDown',
|
|
87
|
-
weight:
|
|
87
|
+
weight: 200 ,
|
|
88
88
|
when: WorkbenchListFocusContextKey,
|
|
89
|
-
primary:
|
|
89
|
+
primary: 512 | 18 ,
|
|
90
90
|
mac: {
|
|
91
|
-
primary:
|
|
92
|
-
secondary: [
|
|
91
|
+
primary: 512 | 18 ,
|
|
92
|
+
secondary: [256 | 512 | 44 ]
|
|
93
93
|
},
|
|
94
94
|
handler: (accessor, arg2) => {
|
|
95
95
|
navigate(accessor.get(IListService).lastFocusedList, async (widget) => {
|
|
@@ -100,12 +100,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
100
100
|
});
|
|
101
101
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
102
102
|
id: 'list.focusAnyUp',
|
|
103
|
-
weight:
|
|
103
|
+
weight: 200 ,
|
|
104
104
|
when: WorkbenchListFocusContextKey,
|
|
105
|
-
primary:
|
|
105
|
+
primary: 512 | 16 ,
|
|
106
106
|
mac: {
|
|
107
|
-
primary:
|
|
108
|
-
secondary: [
|
|
107
|
+
primary: 512 | 16 ,
|
|
108
|
+
secondary: [256 | 512 | 46 ]
|
|
109
109
|
},
|
|
110
110
|
handler: (accessor, arg2) => {
|
|
111
111
|
navigate(accessor.get(IListService).lastFocusedList, async (widget) => {
|
|
@@ -116,9 +116,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
116
116
|
});
|
|
117
117
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
118
118
|
id: 'list.focusPageDown',
|
|
119
|
-
weight:
|
|
119
|
+
weight: 200 ,
|
|
120
120
|
when: WorkbenchListFocusContextKey,
|
|
121
|
-
primary:
|
|
121
|
+
primary: 12 ,
|
|
122
122
|
handler: (accessor) => {
|
|
123
123
|
navigate(accessor.get(IListService).lastFocusedList, async (widget) => {
|
|
124
124
|
const fakeKeyboardEvent = ( (new KeyboardEvent('keydown')));
|
|
@@ -128,9 +128,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
128
128
|
});
|
|
129
129
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
130
130
|
id: 'list.focusPageUp',
|
|
131
|
-
weight:
|
|
131
|
+
weight: 200 ,
|
|
132
132
|
when: WorkbenchListFocusContextKey,
|
|
133
|
-
primary:
|
|
133
|
+
primary: 11 ,
|
|
134
134
|
handler: (accessor) => {
|
|
135
135
|
navigate(accessor.get(IListService).lastFocusedList, async (widget) => {
|
|
136
136
|
const fakeKeyboardEvent = ( (new KeyboardEvent('keydown')));
|
|
@@ -140,9 +140,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
140
140
|
});
|
|
141
141
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
142
142
|
id: 'list.focusFirst',
|
|
143
|
-
weight:
|
|
143
|
+
weight: 200 ,
|
|
144
144
|
when: WorkbenchListFocusContextKey,
|
|
145
|
-
primary:
|
|
145
|
+
primary: 14 ,
|
|
146
146
|
handler: (accessor) => {
|
|
147
147
|
navigate(accessor.get(IListService).lastFocusedList, async (widget) => {
|
|
148
148
|
const fakeKeyboardEvent = ( (new KeyboardEvent('keydown')));
|
|
@@ -152,9 +152,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
152
152
|
});
|
|
153
153
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
154
154
|
id: 'list.focusLast',
|
|
155
|
-
weight:
|
|
155
|
+
weight: 200 ,
|
|
156
156
|
when: WorkbenchListFocusContextKey,
|
|
157
|
-
primary:
|
|
157
|
+
primary: 13 ,
|
|
158
158
|
handler: (accessor) => {
|
|
159
159
|
navigate(accessor.get(IListService).lastFocusedList, async (widget) => {
|
|
160
160
|
const fakeKeyboardEvent = ( (new KeyboardEvent('keydown')));
|
|
@@ -164,9 +164,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
164
164
|
});
|
|
165
165
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
166
166
|
id: 'list.focusAnyFirst',
|
|
167
|
-
weight:
|
|
167
|
+
weight: 200 ,
|
|
168
168
|
when: WorkbenchListFocusContextKey,
|
|
169
|
-
primary:
|
|
169
|
+
primary: 512 | 14 ,
|
|
170
170
|
handler: (accessor) => {
|
|
171
171
|
navigate(accessor.get(IListService).lastFocusedList, async (widget) => {
|
|
172
172
|
const fakeKeyboardEvent = ( (new KeyboardEvent('keydown', { altKey: true })));
|
|
@@ -176,9 +176,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
176
176
|
});
|
|
177
177
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
178
178
|
id: 'list.focusAnyLast',
|
|
179
|
-
weight:
|
|
179
|
+
weight: 200 ,
|
|
180
180
|
when: WorkbenchListFocusContextKey,
|
|
181
|
-
primary:
|
|
181
|
+
primary: 512 | 13 ,
|
|
182
182
|
handler: (accessor) => {
|
|
183
183
|
navigate(accessor.get(IListService).lastFocusedList, async (widget) => {
|
|
184
184
|
const fakeKeyboardEvent = ( (new KeyboardEvent('keydown', { altKey: true })));
|
|
@@ -231,9 +231,9 @@ function revealFocusedStickyScroll(tree, postRevealAction) {
|
|
|
231
231
|
}
|
|
232
232
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
233
233
|
id: 'list.expandSelectionDown',
|
|
234
|
-
weight:
|
|
234
|
+
weight: 200 ,
|
|
235
235
|
when: ( (ContextKeyExpr.and(WorkbenchListFocusContextKey, WorkbenchListSupportsMultiSelectContextKey))),
|
|
236
|
-
primary:
|
|
236
|
+
primary: 1024 | 18 ,
|
|
237
237
|
handler: (accessor, arg2) => {
|
|
238
238
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
239
239
|
if (!widget) {
|
|
@@ -252,9 +252,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
252
252
|
});
|
|
253
253
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
254
254
|
id: 'list.expandSelectionUp',
|
|
255
|
-
weight:
|
|
255
|
+
weight: 200 ,
|
|
256
256
|
when: ( (ContextKeyExpr.and(WorkbenchListFocusContextKey, WorkbenchListSupportsMultiSelectContextKey))),
|
|
257
|
-
primary:
|
|
257
|
+
primary: 1024 | 16 ,
|
|
258
258
|
handler: (accessor, arg2) => {
|
|
259
259
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
260
260
|
if (!widget) {
|
|
@@ -273,15 +273,15 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
273
273
|
});
|
|
274
274
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
275
275
|
id: 'list.collapse',
|
|
276
|
-
weight:
|
|
276
|
+
weight: 200 ,
|
|
277
277
|
when: ( (ContextKeyExpr.and(
|
|
278
278
|
WorkbenchListFocusContextKey,
|
|
279
279
|
(ContextKeyExpr.or(WorkbenchTreeElementCanCollapse, WorkbenchTreeElementHasParent))
|
|
280
280
|
))),
|
|
281
|
-
primary:
|
|
281
|
+
primary: 15 ,
|
|
282
282
|
mac: {
|
|
283
|
-
primary:
|
|
284
|
-
secondary: [
|
|
283
|
+
primary: 15 ,
|
|
284
|
+
secondary: [2048 | 16 ]
|
|
285
285
|
},
|
|
286
286
|
handler: (accessor) => {
|
|
287
287
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
@@ -307,12 +307,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
307
307
|
});
|
|
308
308
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
309
309
|
id: 'list.stickyScroll.collapse',
|
|
310
|
-
weight:
|
|
310
|
+
weight: 200 + 50,
|
|
311
311
|
when: WorkbenchTreeStickyScrollFocused,
|
|
312
|
-
primary:
|
|
312
|
+
primary: 15 ,
|
|
313
313
|
mac: {
|
|
314
|
-
primary:
|
|
315
|
-
secondary: [
|
|
314
|
+
primary: 15 ,
|
|
315
|
+
secondary: [2048 | 16 ]
|
|
316
316
|
},
|
|
317
317
|
handler: (accessor) => {
|
|
318
318
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
@@ -324,12 +324,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
324
324
|
});
|
|
325
325
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
326
326
|
id: 'list.collapseAll',
|
|
327
|
-
weight:
|
|
327
|
+
weight: 200 ,
|
|
328
328
|
when: WorkbenchListFocusContextKey,
|
|
329
|
-
primary:
|
|
329
|
+
primary: 2048 | 15 ,
|
|
330
330
|
mac: {
|
|
331
|
-
primary:
|
|
332
|
-
secondary: [
|
|
331
|
+
primary: 2048 | 15 ,
|
|
332
|
+
secondary: [2048 | 1024 | 16 ]
|
|
333
333
|
},
|
|
334
334
|
handler: (accessor) => {
|
|
335
335
|
const focused = accessor.get(IListService).lastFocusedList;
|
|
@@ -340,7 +340,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
340
340
|
});
|
|
341
341
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
342
342
|
id: 'list.collapseAllToFocus',
|
|
343
|
-
weight:
|
|
343
|
+
weight: 200 ,
|
|
344
344
|
when: WorkbenchListFocusContextKey,
|
|
345
345
|
handler: accessor => {
|
|
346
346
|
const focused = accessor.get(IListService).lastFocusedList;
|
|
@@ -358,7 +358,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
358
358
|
});
|
|
359
359
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
360
360
|
id: 'list.focusParent',
|
|
361
|
-
weight:
|
|
361
|
+
weight: 200 ,
|
|
362
362
|
when: WorkbenchListFocusContextKey,
|
|
363
363
|
handler: (accessor) => {
|
|
364
364
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
@@ -382,12 +382,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
382
382
|
});
|
|
383
383
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
384
384
|
id: 'list.expand',
|
|
385
|
-
weight:
|
|
385
|
+
weight: 200 ,
|
|
386
386
|
when: ( (ContextKeyExpr.and(
|
|
387
387
|
WorkbenchListFocusContextKey,
|
|
388
388
|
(ContextKeyExpr.or(WorkbenchTreeElementCanExpand, WorkbenchTreeElementHasChild))
|
|
389
389
|
))),
|
|
390
|
-
primary:
|
|
390
|
+
primary: 17 ,
|
|
391
391
|
handler: (accessor) => {
|
|
392
392
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
393
393
|
if (!widget) {
|
|
@@ -464,12 +464,12 @@ function selectElement(accessor, retainCurrentFocus) {
|
|
|
464
464
|
}
|
|
465
465
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
466
466
|
id: 'list.select',
|
|
467
|
-
weight:
|
|
467
|
+
weight: 200 ,
|
|
468
468
|
when: WorkbenchListFocusContextKey,
|
|
469
|
-
primary:
|
|
469
|
+
primary: 3 ,
|
|
470
470
|
mac: {
|
|
471
|
-
primary:
|
|
472
|
-
secondary: [
|
|
471
|
+
primary: 3 ,
|
|
472
|
+
secondary: [2048 | 18 ]
|
|
473
473
|
},
|
|
474
474
|
handler: (accessor) => {
|
|
475
475
|
selectElement(accessor, false);
|
|
@@ -477,12 +477,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
477
477
|
});
|
|
478
478
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
479
479
|
id: 'list.stickyScrollselect',
|
|
480
|
-
weight:
|
|
480
|
+
weight: 200 + 50,
|
|
481
481
|
when: WorkbenchTreeStickyScrollFocused,
|
|
482
|
-
primary:
|
|
482
|
+
primary: 3 ,
|
|
483
483
|
mac: {
|
|
484
|
-
primary:
|
|
485
|
-
secondary: [
|
|
484
|
+
primary: 3 ,
|
|
485
|
+
secondary: [2048 | 18 ]
|
|
486
486
|
},
|
|
487
487
|
handler: (accessor) => {
|
|
488
488
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
@@ -494,7 +494,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
494
494
|
});
|
|
495
495
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
496
496
|
id: 'list.selectAndPreserveFocus',
|
|
497
|
-
weight:
|
|
497
|
+
weight: 200 ,
|
|
498
498
|
when: WorkbenchListFocusContextKey,
|
|
499
499
|
handler: accessor => {
|
|
500
500
|
selectElement(accessor, true);
|
|
@@ -502,9 +502,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
502
502
|
});
|
|
503
503
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
504
504
|
id: 'list.selectAll',
|
|
505
|
-
weight:
|
|
505
|
+
weight: 200 ,
|
|
506
506
|
when: ( (ContextKeyExpr.and(WorkbenchListFocusContextKey, WorkbenchListSupportsMultiSelectContextKey))),
|
|
507
|
-
primary:
|
|
507
|
+
primary: 2048 | 31 ,
|
|
508
508
|
handler: (accessor) => {
|
|
509
509
|
const focused = accessor.get(IListService).lastFocusedList;
|
|
510
510
|
if (focused instanceof List || focused instanceof PagedList || focused instanceof Table) {
|
|
@@ -552,9 +552,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
552
552
|
});
|
|
553
553
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
554
554
|
id: 'list.toggleSelection',
|
|
555
|
-
weight:
|
|
555
|
+
weight: 200 ,
|
|
556
556
|
when: WorkbenchListFocusContextKey,
|
|
557
|
-
primary:
|
|
557
|
+
primary: 2048 | 1024 | 3 ,
|
|
558
558
|
handler: (accessor) => {
|
|
559
559
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
560
560
|
if (!widget) {
|
|
@@ -576,8 +576,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
576
576
|
});
|
|
577
577
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
578
578
|
id: 'list.showHover',
|
|
579
|
-
weight:
|
|
580
|
-
primary: KeyChord(
|
|
579
|
+
weight: 200 ,
|
|
580
|
+
primary: KeyChord(2048 | 41 , 2048 | 39 ),
|
|
581
581
|
when: WorkbenchListFocusContextKey,
|
|
582
582
|
handler: async (accessor, ...args) => {
|
|
583
583
|
const listService = accessor.get(IListService);
|
|
@@ -614,9 +614,9 @@ function getCustomHoverForElement(element) {
|
|
|
614
614
|
}
|
|
615
615
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
616
616
|
id: 'list.toggleExpand',
|
|
617
|
-
weight:
|
|
617
|
+
weight: 200 ,
|
|
618
618
|
when: WorkbenchListFocusContextKey,
|
|
619
|
-
primary:
|
|
619
|
+
primary: 10 ,
|
|
620
620
|
handler: (accessor) => {
|
|
621
621
|
const focused = accessor.get(IListService).lastFocusedList;
|
|
622
622
|
if (focused instanceof ObjectTree || focused instanceof DataTree || focused instanceof AsyncDataTree) {
|
|
@@ -632,9 +632,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
632
632
|
});
|
|
633
633
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
634
634
|
id: 'list.stickyScrolltoggleExpand',
|
|
635
|
-
weight:
|
|
635
|
+
weight: 200 + 50,
|
|
636
636
|
when: WorkbenchTreeStickyScrollFocused,
|
|
637
|
-
primary:
|
|
637
|
+
primary: 10 ,
|
|
638
638
|
handler: (accessor) => {
|
|
639
639
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
640
640
|
if (!widget || !(widget instanceof ObjectTree || widget instanceof DataTree || widget instanceof AsyncDataTree)) {
|
|
@@ -645,9 +645,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
645
645
|
});
|
|
646
646
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
647
647
|
id: 'list.clear',
|
|
648
|
-
weight:
|
|
648
|
+
weight: 200 ,
|
|
649
649
|
when: ( (ContextKeyExpr.and(WorkbenchListFocusContextKey, WorkbenchListHasSelectionOrFocus))),
|
|
650
|
-
primary:
|
|
650
|
+
primary: 9 ,
|
|
651
651
|
handler: (accessor) => {
|
|
652
652
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
653
653
|
if (!widget) {
|
|
@@ -703,10 +703,10 @@ CommandsRegistry.registerCommandAlias('list.toggleKeyboardNavigation', 'list.tri
|
|
|
703
703
|
CommandsRegistry.registerCommandAlias('list.toggleFilterOnType', 'list.toggleFindMode');
|
|
704
704
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
705
705
|
id: 'list.find',
|
|
706
|
-
weight:
|
|
706
|
+
weight: 200 ,
|
|
707
707
|
when: ( (ContextKeyExpr.and(RawWorkbenchListFocusContextKey, WorkbenchListSupportsFind))),
|
|
708
|
-
primary:
|
|
709
|
-
secondary: [
|
|
708
|
+
primary: 2048 | 512 | 36 ,
|
|
709
|
+
secondary: [61 ],
|
|
710
710
|
handler: (accessor) => {
|
|
711
711
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
712
712
|
if (widget instanceof List || widget instanceof PagedList || widget instanceof Table) ;
|
|
@@ -718,9 +718,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
718
718
|
});
|
|
719
719
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
720
720
|
id: 'list.closeFind',
|
|
721
|
-
weight:
|
|
721
|
+
weight: 200 ,
|
|
722
722
|
when: ( (ContextKeyExpr.and(RawWorkbenchListFocusContextKey, WorkbenchTreeFindOpen))),
|
|
723
|
-
primary:
|
|
723
|
+
primary: 9 ,
|
|
724
724
|
handler: (accessor) => {
|
|
725
725
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
726
726
|
if (widget instanceof AbstractTree || widget instanceof AsyncDataTree) {
|
|
@@ -731,9 +731,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
731
731
|
});
|
|
732
732
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
733
733
|
id: 'list.scrollUp',
|
|
734
|
-
weight:
|
|
734
|
+
weight: 200 ,
|
|
735
735
|
when: ( (ContextKeyExpr.and(WorkbenchListFocusContextKey, WorkbenchListScrollAtTopContextKey?.negate()))),
|
|
736
|
-
primary:
|
|
736
|
+
primary: 2048 | 16 ,
|
|
737
737
|
handler: accessor => {
|
|
738
738
|
const focused = accessor.get(IListService).lastFocusedList;
|
|
739
739
|
if (!focused) {
|
|
@@ -744,12 +744,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
744
744
|
});
|
|
745
745
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
746
746
|
id: 'list.scrollDown',
|
|
747
|
-
weight:
|
|
747
|
+
weight: 200 ,
|
|
748
748
|
when: ( (ContextKeyExpr.and(
|
|
749
749
|
WorkbenchListFocusContextKey,
|
|
750
750
|
WorkbenchListScrollAtBottomContextKey?.negate()
|
|
751
751
|
))),
|
|
752
|
-
primary:
|
|
752
|
+
primary: 2048 | 18 ,
|
|
753
753
|
handler: accessor => {
|
|
754
754
|
const focused = accessor.get(IListService).lastFocusedList;
|
|
755
755
|
if (!focused) {
|
|
@@ -760,7 +760,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
760
760
|
});
|
|
761
761
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
762
762
|
id: 'list.scrollLeft',
|
|
763
|
-
weight:
|
|
763
|
+
weight: 200 ,
|
|
764
764
|
when: WorkbenchListFocusContextKey,
|
|
765
765
|
handler: accessor => {
|
|
766
766
|
const focused = accessor.get(IListService).lastFocusedList;
|
|
@@ -772,7 +772,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
772
772
|
});
|
|
773
773
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
774
774
|
id: 'list.scrollRight',
|
|
775
|
-
weight:
|
|
775
|
+
weight: 200 ,
|
|
776
776
|
when: WorkbenchListFocusContextKey,
|
|
777
777
|
handler: accessor => {
|
|
778
778
|
const focused = accessor.get(IListService).lastFocusedList;
|
|
@@ -787,12 +787,12 @@ registerAction2(class ToggleStickyScroll extends Action2 {
|
|
|
787
787
|
super({
|
|
788
788
|
id: 'tree.toggleStickyScroll',
|
|
789
789
|
title: {
|
|
790
|
-
...( localize2(
|
|
791
|
-
mnemonicTitle: ( localize(
|
|
790
|
+
...( localize2(4248, "Toggle Tree Sticky Scroll")),
|
|
791
|
+
mnemonicTitle: ( localize(4249, "&&Toggle Tree Sticky Scroll")),
|
|
792
792
|
},
|
|
793
793
|
category: 'View',
|
|
794
794
|
metadata: { description: ( localize(
|
|
795
|
-
|
|
795
|
+
4250,
|
|
796
796
|
"Toggles Sticky Scroll widget at the top of tree structures such as the File Explorer and Debug variables View."
|
|
797
797
|
)) },
|
|
798
798
|
f1: true
|