@codingame/monaco-vscode-scm-service-override 11.1.2 → 12.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/index.d.ts +2 -1
- package/index.js +22 -1
- package/package.json +24 -7
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.d.ts +42 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +34 -32
- package/vscode/src/vs/workbench/contrib/scm/browser/diff.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/diff.js +93 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/media/scm.css.js +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +31 -32
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +153 -187
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.d.ts +59 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.js +245 -217
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +31 -29
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoryRenderer.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoryRenderer.js +4 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.d.ts +185 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +365 -336
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +17 -16
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +13 -13
- package/vscode/src/vs/workbench/contrib/scm/browser/workingSet.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/workingSet.js +9 -6
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +4 -2
- package/vscode/src/vs/workbench/contrib/scm/common/scmService.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/scm/common/scmService.js +13 -11
- package/scm.js +0 -17
|
@@ -1,20 +1,23 @@
|
|
|
1
|
+
|
|
1
2
|
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
2
3
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
3
|
-
import { Extensions, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
4
|
+
import { Extensions, registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
4
5
|
import { DirtyDiffWorkbenchController } from 'vscode/vscode/vs/workbench/contrib/scm/browser/dirtydiffDecorator';
|
|
5
|
-
import { VIEWLET_ID, VIEW_PANE_ID, HISTORY_VIEW_PANE_ID, REPOSITORIES_VIEW_PANE_ID } from 'vscode/vscode/vs/workbench/contrib/scm/common/scm';
|
|
6
|
+
import { VIEWLET_ID, VIEW_PANE_ID, HISTORY_VIEW_PANE_ID, REPOSITORIES_VIEW_PANE_ID } from '@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common/vscode/vs/workbench/contrib/scm/common/scm';
|
|
6
7
|
import { ISCMService, ISCMViewService } from 'vscode/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
8
|
+
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
7
9
|
import { MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
8
10
|
import { SCMActiveRepositoryController, SCMActiveResourceContextKeyController } from './activity.js';
|
|
9
|
-
import {
|
|
11
|
+
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
12
|
+
import { Extensions as Extensions$2, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
10
13
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
11
14
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
12
15
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
13
16
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
14
|
-
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
15
|
-
import { registerSingleton } from 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
17
|
+
import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
18
|
+
import { registerSingleton, InstantiationType } from 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
16
19
|
import { SCMService } from '../common/scmService.js';
|
|
17
|
-
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/views';
|
|
20
|
+
import { Extensions as Extensions$1, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
18
21
|
import { SCMViewPaneContainer } from './scmViewPaneContainer.js';
|
|
19
22
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
20
23
|
import { ModesRegistry } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
@@ -24,7 +27,7 @@ import { ContextKeys, SCMViewPane } from './scmViewPane.js';
|
|
|
24
27
|
import { SCMViewService } from './scmViewService.js';
|
|
25
28
|
import { SCMRepositoriesViewPane } from './scmRepositoriesViewPane.js';
|
|
26
29
|
import { Context } from 'vscode/vscode/vs/editor/contrib/suggest/browser/suggest';
|
|
27
|
-
import { WorkspaceTrustContext, MANAGE_TRUST_COMMAND_ID } from 'vscode/vscode/vs/workbench/contrib/workspace/common/workspace';
|
|
30
|
+
import { WorkspaceTrustContext, MANAGE_TRUST_COMMAND_ID } from '@codingame/monaco-vscode-27663a0b-1249-58ba-9085-e52d706b50bc-common/vscode/vs/workbench/contrib/workspace/common/workspace';
|
|
28
31
|
import { IQuickDiffService } from 'vscode/vscode/vs/workbench/contrib/scm/common/quickDiff.service';
|
|
29
32
|
import { QuickDiffService } from '../common/quickDiffService.js';
|
|
30
33
|
import { getActiveElement, isActiveElement } from 'vscode/vscode/vs/base/browser/dom';
|
|
@@ -32,7 +35,7 @@ import { SCMWorkingSetController } from './workingSet.js';
|
|
|
32
35
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
33
36
|
import { WorkbenchList } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
34
37
|
import { IListService } from 'vscode/vscode/vs/platform/list/browser/listService.service';
|
|
35
|
-
import { isSCMRepository } from 'vscode/vscode/vs/workbench/contrib/scm/browser/util';
|
|
38
|
+
import { isSCMRepository } from '@codingame/monaco-vscode-be8ddbb5-094a-5657-b1cc-fe106c94c632-common/vscode/vs/workbench/contrib/scm/browser/util';
|
|
36
39
|
import { SCMHistoryViewPane } from './scmHistoryViewPane.js';
|
|
37
40
|
import { IsWebContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
38
41
|
import { RemoteNameContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
@@ -43,69 +46,58 @@ ModesRegistry.registerLanguage({
|
|
|
43
46
|
aliases: [],
|
|
44
47
|
mimetypes: ['text/x-scm-input']
|
|
45
48
|
});
|
|
46
|
-
(
|
|
47
|
-
.registerWorkbenchContribution(DirtyDiffWorkbenchController,
|
|
48
|
-
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(
|
|
49
|
-
const viewContainer = (
|
|
49
|
+
( Registry.as(Extensions.Workbench))
|
|
50
|
+
.registerWorkbenchContribution(DirtyDiffWorkbenchController, LifecyclePhase.Restored);
|
|
51
|
+
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(8435, 'View icon of the Source Control view.')));
|
|
52
|
+
const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).registerViewContainer({
|
|
50
53
|
id: VIEWLET_ID,
|
|
51
|
-
title: ( localize2(
|
|
52
|
-
ctorDescriptor: (
|
|
54
|
+
title: ( localize2(8436, 'Source Control')),
|
|
55
|
+
ctorDescriptor: ( new SyncDescriptor(SCMViewPaneContainer)),
|
|
53
56
|
storageId: 'workbench.scm.views.state',
|
|
54
57
|
icon: sourceControlViewIcon,
|
|
55
58
|
alwaysUseContainerInfo: true,
|
|
56
59
|
order: 2,
|
|
57
60
|
hideIfEmpty: true,
|
|
58
|
-
},
|
|
59
|
-
const viewsRegistry = (
|
|
61
|
+
}, ViewContainerLocation.Sidebar, { doNotRegisterOpenCommand: true });
|
|
62
|
+
const viewsRegistry = ( Registry.as(Extensions$1.ViewsRegistry));
|
|
60
63
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
61
|
-
content: ( localize(
|
|
64
|
+
content: ( localize(8437, "No source control providers registered.")),
|
|
62
65
|
when: 'default'
|
|
63
66
|
});
|
|
64
67
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
65
68
|
content: ( localize(
|
|
66
|
-
|
|
69
|
+
8438,
|
|
67
70
|
"None of the registered source control providers work in Restricted Mode."
|
|
68
71
|
)),
|
|
69
|
-
when: (
|
|
70
|
-
(ContextKeyExpr.equals('scm.providerCount', 0)),
|
|
71
|
-
WorkspaceTrustContext.IsEnabled,
|
|
72
|
-
(WorkspaceTrustContext.IsTrusted.toNegated())
|
|
73
|
-
)))
|
|
72
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scm.providerCount', 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
74
73
|
});
|
|
75
74
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
76
|
-
content: `[${( localize(
|
|
77
|
-
when: (
|
|
78
|
-
(ContextKeyExpr.equals('scm.providerCount', 0)),
|
|
79
|
-
WorkspaceTrustContext.IsEnabled,
|
|
80
|
-
(WorkspaceTrustContext.IsTrusted.toNegated())
|
|
81
|
-
)))
|
|
75
|
+
content: `[${( localize(8439, "Manage Workspace Trust"))}](command:${MANAGE_TRUST_COMMAND_ID})`,
|
|
76
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scm.providerCount', 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
82
77
|
});
|
|
83
78
|
viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
84
79
|
content: ( localize(
|
|
85
|
-
|
|
80
|
+
8440,
|
|
86
81
|
"The selected source control provider does not have any source control history items."
|
|
87
82
|
)),
|
|
88
|
-
when: (
|
|
83
|
+
when: ( ContextKeys.SCMHistoryItemCount.isEqualTo(0))
|
|
89
84
|
});
|
|
90
85
|
viewsRegistry.registerViews([{
|
|
91
86
|
id: REPOSITORIES_VIEW_PANE_ID,
|
|
92
|
-
name: ( localize2(
|
|
93
|
-
ctorDescriptor: (
|
|
87
|
+
name: ( localize2(8441, "Source Control Repositories")),
|
|
88
|
+
ctorDescriptor: ( new SyncDescriptor(SCMRepositoriesViewPane)),
|
|
94
89
|
canToggleVisibility: true,
|
|
95
90
|
hideByDefault: true,
|
|
96
91
|
canMoveView: true,
|
|
97
92
|
weight: 20,
|
|
98
93
|
order: 0,
|
|
99
|
-
when: (
|
|
100
|
-
(ContextKeyExpr.has('scm.providerCount')),
|
|
101
|
-
(ContextKeyExpr.notEquals('scm.providerCount', 0))
|
|
102
|
-
))),
|
|
94
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.has('scm.providerCount')), ( ContextKeyExpr.notEquals('scm.providerCount', 0)))),
|
|
103
95
|
containerIcon: sourceControlViewIcon
|
|
104
96
|
}], viewContainer);
|
|
105
97
|
viewsRegistry.registerViews([{
|
|
106
98
|
id: VIEW_PANE_ID,
|
|
107
|
-
name: ( localize2(
|
|
108
|
-
ctorDescriptor: (
|
|
99
|
+
name: ( localize2(8436, 'Source Control')),
|
|
100
|
+
ctorDescriptor: ( new SyncDescriptor(SCMViewPane)),
|
|
109
101
|
canToggleVisibility: true,
|
|
110
102
|
canMoveView: true,
|
|
111
103
|
weight: 40,
|
|
@@ -113,63 +105,60 @@ viewsRegistry.registerViews([{
|
|
|
113
105
|
containerIcon: sourceControlViewIcon,
|
|
114
106
|
openCommandActionDescriptor: {
|
|
115
107
|
id: viewContainer.id,
|
|
116
|
-
mnemonicTitle: ( localize(
|
|
108
|
+
mnemonicTitle: ( localize(8442, "Source &&Control")),
|
|
117
109
|
keybindings: {
|
|
118
110
|
primary: 0,
|
|
119
|
-
win: { primary:
|
|
120
|
-
linux: { primary:
|
|
121
|
-
mac: { primary:
|
|
111
|
+
win: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyG },
|
|
112
|
+
linux: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyG },
|
|
113
|
+
mac: { primary: KeyMod.WinCtrl | KeyMod.Shift | KeyCode.KeyG },
|
|
122
114
|
},
|
|
123
115
|
order: 2,
|
|
124
116
|
}
|
|
125
117
|
}], viewContainer);
|
|
126
118
|
viewsRegistry.registerViews([{
|
|
127
119
|
id: HISTORY_VIEW_PANE_ID,
|
|
128
|
-
name: ( localize2(
|
|
129
|
-
ctorDescriptor: (
|
|
120
|
+
name: ( localize2(8443, "Source Control Graph")),
|
|
121
|
+
ctorDescriptor: ( new SyncDescriptor(SCMHistoryViewPane)),
|
|
130
122
|
canToggleVisibility: true,
|
|
131
123
|
canMoveView: true,
|
|
132
124
|
weight: 40,
|
|
133
125
|
order: 2,
|
|
134
|
-
when: (
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
(ContextKeyExpr.notEquals('scm.providerCount', 0))
|
|
138
|
-
)),
|
|
139
|
-
( (ContextKeyExpr.and(IsWebContext, (RemoteNameContext.isEqualTo('')))))?.negate()))),
|
|
126
|
+
when: ( ContextKeyExpr.and((
|
|
127
|
+
ContextKeyExpr.and(( ContextKeyExpr.has('scm.providerCount')), ( ContextKeyExpr.notEquals('scm.providerCount', 0)))),
|
|
128
|
+
( ContextKeyExpr.and(IsWebContext, ( RemoteNameContext.isEqualTo(''))))?.negate())),
|
|
140
129
|
containerIcon: sourceControlViewIcon
|
|
141
130
|
}], viewContainer);
|
|
142
|
-
(
|
|
143
|
-
.registerWorkbenchContribution(SCMActiveRepositoryController,
|
|
144
|
-
(
|
|
145
|
-
.registerWorkbenchContribution(SCMActiveResourceContextKeyController,
|
|
146
|
-
registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetController,
|
|
147
|
-
(
|
|
131
|
+
( Registry.as(Extensions.Workbench))
|
|
132
|
+
.registerWorkbenchContribution(SCMActiveRepositoryController, LifecyclePhase.Restored);
|
|
133
|
+
( Registry.as(Extensions.Workbench))
|
|
134
|
+
.registerWorkbenchContribution(SCMActiveResourceContextKeyController, LifecyclePhase.Restored);
|
|
135
|
+
registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetController, WorkbenchPhase.AfterRestored);
|
|
136
|
+
( Registry.as(Extensions$2.Configuration)).registerConfiguration({
|
|
148
137
|
id: 'scm',
|
|
149
138
|
order: 5,
|
|
150
|
-
title: ( localize(
|
|
139
|
+
title: ( localize(8444, "Source Control")),
|
|
151
140
|
type: 'object',
|
|
152
|
-
scope:
|
|
141
|
+
scope: ConfigurationScope.RESOURCE,
|
|
153
142
|
properties: {
|
|
154
143
|
'scm.diffDecorations': {
|
|
155
144
|
type: 'string',
|
|
156
145
|
enum: ['all', 'gutter', 'overview', 'minimap', 'none'],
|
|
157
146
|
enumDescriptions: [
|
|
158
|
-
( localize(
|
|
159
|
-
( localize(
|
|
160
|
-
( localize(
|
|
161
|
-
( localize(
|
|
162
|
-
( localize(
|
|
147
|
+
( localize(8445, "Show the diff decorations in all available locations.")),
|
|
148
|
+
( localize(8446, "Show the diff decorations only in the editor gutter.")),
|
|
149
|
+
( localize(8447, "Show the diff decorations only in the overview ruler.")),
|
|
150
|
+
( localize(8448, "Show the diff decorations only in the minimap.")),
|
|
151
|
+
( localize(8449, "Do not show the diff decorations."))
|
|
163
152
|
],
|
|
164
153
|
default: 'all',
|
|
165
|
-
description: ( localize(
|
|
154
|
+
description: ( localize(8450, "Controls diff decorations in the editor."))
|
|
166
155
|
},
|
|
167
156
|
'scm.diffDecorationsGutterWidth': {
|
|
168
157
|
type: 'number',
|
|
169
158
|
enum: [1, 2, 3, 4, 5],
|
|
170
159
|
default: 3,
|
|
171
160
|
description: ( localize(
|
|
172
|
-
|
|
161
|
+
8451,
|
|
173
162
|
"Controls the width(px) of diff decorations in gutter (added & modified)."
|
|
174
163
|
))
|
|
175
164
|
},
|
|
@@ -177,11 +166,11 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
177
166
|
type: 'string',
|
|
178
167
|
enum: ['always', 'hover'],
|
|
179
168
|
enumDescriptions: [
|
|
180
|
-
( localize(
|
|
181
|
-
( localize(
|
|
169
|
+
( localize(8452, "Show the diff decorator in the gutter at all times.")),
|
|
170
|
+
( localize(8453, "Show the diff decorator in the gutter only on hover."))
|
|
182
171
|
],
|
|
183
172
|
description: ( localize(
|
|
184
|
-
|
|
173
|
+
8454,
|
|
185
174
|
"Controls the visibility of the Source Control diff decorator in the gutter."
|
|
186
175
|
)),
|
|
187
176
|
default: 'always'
|
|
@@ -190,27 +179,27 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
190
179
|
type: 'string',
|
|
191
180
|
enum: ['diff', 'none'],
|
|
192
181
|
enumDescriptions: [
|
|
193
|
-
( localize(
|
|
194
|
-
( localize(
|
|
182
|
+
( localize(8455, "Show the inline diff Peek view on click.")),
|
|
183
|
+
( localize(8456, "Do nothing."))
|
|
195
184
|
],
|
|
196
|
-
description: ( localize(
|
|
185
|
+
description: ( localize(8457, "Controls the behavior of Source Control diff gutter decorations.")),
|
|
197
186
|
default: 'diff'
|
|
198
187
|
},
|
|
199
188
|
'scm.diffDecorationsGutterPattern': {
|
|
200
189
|
type: 'object',
|
|
201
190
|
description: ( localize(
|
|
202
|
-
|
|
191
|
+
8458,
|
|
203
192
|
"Controls whether a pattern is used for the diff decorations in gutter."
|
|
204
193
|
)),
|
|
205
194
|
additionalProperties: false,
|
|
206
195
|
properties: {
|
|
207
196
|
'added': {
|
|
208
197
|
type: 'boolean',
|
|
209
|
-
description: ( localize(
|
|
198
|
+
description: ( localize(8459, "Use pattern for the diff decorations in gutter for added lines.")),
|
|
210
199
|
},
|
|
211
200
|
'modified': {
|
|
212
201
|
type: 'boolean',
|
|
213
|
-
description: ( localize(
|
|
202
|
+
description: ( localize(8460, "Use pattern for the diff decorations in gutter for modified lines.")),
|
|
214
203
|
},
|
|
215
204
|
},
|
|
216
205
|
default: {
|
|
@@ -222,12 +211,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
222
211
|
type: 'string',
|
|
223
212
|
enum: ['true', 'false', 'inherit'],
|
|
224
213
|
enumDescriptions: [
|
|
225
|
-
( localize(
|
|
226
|
-
( localize(
|
|
227
|
-
( localize(
|
|
214
|
+
( localize(8461, "Ignore leading and trailing whitespace.")),
|
|
215
|
+
( localize(8462, "Do not ignore leading and trailing whitespace.")),
|
|
216
|
+
( localize(8463, "Inherit from `diffEditor.ignoreTrimWhitespace`."))
|
|
228
217
|
],
|
|
229
218
|
description: ( localize(
|
|
230
|
-
|
|
219
|
+
8464,
|
|
231
220
|
"Controls whether leading and trailing whitespace is ignored in Source Control diff gutter decorations."
|
|
232
221
|
)),
|
|
233
222
|
default: 'false'
|
|
@@ -235,7 +224,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
235
224
|
'scm.alwaysShowActions': {
|
|
236
225
|
type: 'boolean',
|
|
237
226
|
description: ( localize(
|
|
238
|
-
|
|
227
|
+
8465,
|
|
239
228
|
"Controls whether inline actions are always visible in the Source Control view."
|
|
240
229
|
)),
|
|
241
230
|
default: false
|
|
@@ -244,12 +233,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
244
233
|
type: 'string',
|
|
245
234
|
enum: ['all', 'focused', 'off'],
|
|
246
235
|
enumDescriptions: [
|
|
247
|
-
( localize(
|
|
248
|
-
( localize(
|
|
249
|
-
( localize(
|
|
236
|
+
( localize(8466, "Show the sum of all Source Control Provider count badges.")),
|
|
237
|
+
( localize(8467, "Show the count badge of the focused Source Control Provider.")),
|
|
238
|
+
( localize(8468, "Disable the Source Control count badge."))
|
|
250
239
|
],
|
|
251
240
|
description: ( localize(
|
|
252
|
-
|
|
241
|
+
8469,
|
|
253
242
|
"Controls the count badge on the Source Control icon on the Activity Bar."
|
|
254
243
|
)),
|
|
255
244
|
default: 'all'
|
|
@@ -258,12 +247,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
258
247
|
type: 'string',
|
|
259
248
|
enum: ['hidden', 'auto', 'visible'],
|
|
260
249
|
enumDescriptions: [
|
|
261
|
-
( localize(
|
|
262
|
-
( localize(
|
|
263
|
-
( localize(
|
|
250
|
+
( localize(8470, "Hide Source Control Provider count badges.")),
|
|
251
|
+
( localize(8471, "Only show count badge for Source Control Provider when non-zero.")),
|
|
252
|
+
( localize(8472, "Show Source Control Provider count badges."))
|
|
264
253
|
],
|
|
265
254
|
markdownDescription: ( localize(
|
|
266
|
-
|
|
255
|
+
8473,
|
|
267
256
|
"Controls the count badges on Source Control Provider headers. These headers appear in the Source Control view when there is more than one provider or when the {0} setting is enabled, and in the Source Control Repositories view.",
|
|
268
257
|
'\`#scm.alwaysShowRepositories#\`'
|
|
269
258
|
)),
|
|
@@ -273,22 +262,22 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
273
262
|
type: 'string',
|
|
274
263
|
enum: ['tree', 'list'],
|
|
275
264
|
enumDescriptions: [
|
|
276
|
-
( localize(
|
|
277
|
-
( localize(
|
|
265
|
+
( localize(8474, "Show the repository changes as a tree.")),
|
|
266
|
+
( localize(8475, "Show the repository changes as a list."))
|
|
278
267
|
],
|
|
279
|
-
description: ( localize(
|
|
268
|
+
description: ( localize(8476, "Controls the default Source Control repository view mode.")),
|
|
280
269
|
default: 'list'
|
|
281
270
|
},
|
|
282
271
|
'scm.defaultViewSortKey': {
|
|
283
272
|
type: 'string',
|
|
284
273
|
enum: ['name', 'path', 'status'],
|
|
285
274
|
enumDescriptions: [
|
|
286
|
-
( localize(
|
|
287
|
-
( localize(
|
|
288
|
-
( localize(
|
|
275
|
+
( localize(8477, "Sort the repository changes by file name.")),
|
|
276
|
+
( localize(8478, "Sort the repository changes by path.")),
|
|
277
|
+
( localize(8479, "Sort the repository changes by Source Control status."))
|
|
289
278
|
],
|
|
290
279
|
description: ( localize(
|
|
291
|
-
|
|
280
|
+
8480,
|
|
292
281
|
"Controls the default Source Control repository changes sort order when viewed as a list."
|
|
293
282
|
)),
|
|
294
283
|
default: 'path'
|
|
@@ -296,7 +285,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
296
285
|
'scm.autoReveal': {
|
|
297
286
|
type: 'boolean',
|
|
298
287
|
description: ( localize(
|
|
299
|
-
|
|
288
|
+
8481,
|
|
300
289
|
"Controls whether the Source Control view should automatically reveal and select files when opening them."
|
|
301
290
|
)),
|
|
302
291
|
default: true
|
|
@@ -304,20 +293,20 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
304
293
|
'scm.inputFontFamily': {
|
|
305
294
|
type: 'string',
|
|
306
295
|
markdownDescription: ( localize(
|
|
307
|
-
|
|
296
|
+
8482,
|
|
308
297
|
"Controls the font for the input message. Use `default` for the workbench user interface font family, `editor` for the `#editor.fontFamily#`'s value, or a custom font family."
|
|
309
298
|
)),
|
|
310
299
|
default: 'default'
|
|
311
300
|
},
|
|
312
301
|
'scm.inputFontSize': {
|
|
313
302
|
type: 'number',
|
|
314
|
-
markdownDescription: ( localize(
|
|
303
|
+
markdownDescription: ( localize(8483, "Controls the font size for the input message in pixels.")),
|
|
315
304
|
default: 13
|
|
316
305
|
},
|
|
317
306
|
'scm.inputMaxLineCount': {
|
|
318
307
|
type: 'number',
|
|
319
308
|
markdownDescription: ( localize(
|
|
320
|
-
|
|
309
|
+
8484,
|
|
321
310
|
"Controls the maximum number of lines that the input will auto-grow to."
|
|
322
311
|
)),
|
|
323
312
|
minimum: 1,
|
|
@@ -327,7 +316,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
327
316
|
'scm.inputMinLineCount': {
|
|
328
317
|
type: 'number',
|
|
329
318
|
markdownDescription: ( localize(
|
|
330
|
-
|
|
319
|
+
8485,
|
|
331
320
|
"Controls the minimum number of lines that the input will auto-grow from."
|
|
332
321
|
)),
|
|
333
322
|
minimum: 1,
|
|
@@ -337,7 +326,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
337
326
|
'scm.alwaysShowRepositories': {
|
|
338
327
|
type: 'boolean',
|
|
339
328
|
markdownDescription: ( localize(
|
|
340
|
-
|
|
329
|
+
8486,
|
|
341
330
|
"Controls whether repositories should always be visible in the Source Control view."
|
|
342
331
|
)),
|
|
343
332
|
default: false
|
|
@@ -347,20 +336,20 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
347
336
|
enum: ['discovery time', 'name', 'path'],
|
|
348
337
|
enumDescriptions: [
|
|
349
338
|
( localize(
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
339
|
+
8487,
|
|
340
|
+
"Repositories in the Source Control Repositories view are sorted by discovery time. Repositories in the Source Control view are sorted in the order that they were selected."
|
|
341
|
+
)),
|
|
353
342
|
( localize(
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
343
|
+
8488,
|
|
344
|
+
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
|
|
345
|
+
)),
|
|
357
346
|
( localize(
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
347
|
+
8489,
|
|
348
|
+
"Repositories in the Source Control Repositories and Source Control views are sorted by repository path."
|
|
349
|
+
))
|
|
361
350
|
],
|
|
362
351
|
description: ( localize(
|
|
363
|
-
|
|
352
|
+
8490,
|
|
364
353
|
"Controls the sort order of the repositories in the source control repositories view."
|
|
365
354
|
)),
|
|
366
355
|
default: 'discovery time'
|
|
@@ -368,7 +357,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
368
357
|
'scm.repositories.visible': {
|
|
369
358
|
type: 'number',
|
|
370
359
|
description: ( localize(
|
|
371
|
-
|
|
360
|
+
8491,
|
|
372
361
|
"Controls how many repositories are visible in the Source Control Repositories section. Set to 0, to be able to manually resize the view."
|
|
373
362
|
)),
|
|
374
363
|
default: 10
|
|
@@ -376,7 +365,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
376
365
|
'scm.showActionButton': {
|
|
377
366
|
type: 'boolean',
|
|
378
367
|
markdownDescription: ( localize(
|
|
379
|
-
|
|
368
|
+
8492,
|
|
380
369
|
"Controls whether an action button can be shown in the Source Control view."
|
|
381
370
|
)),
|
|
382
371
|
default: true
|
|
@@ -384,7 +373,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
384
373
|
'scm.showInputActionButton': {
|
|
385
374
|
type: 'boolean',
|
|
386
375
|
markdownDescription: ( localize(
|
|
387
|
-
|
|
376
|
+
8493,
|
|
388
377
|
"Controls whether an action button can be shown in the Source Control input."
|
|
389
378
|
)),
|
|
390
379
|
default: true
|
|
@@ -392,7 +381,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
392
381
|
'scm.workingSets.enabled': {
|
|
393
382
|
type: 'boolean',
|
|
394
383
|
description: ( localize(
|
|
395
|
-
|
|
384
|
+
8494,
|
|
396
385
|
"Controls whether to store editor working sets when switching between source control history item groups."
|
|
397
386
|
)),
|
|
398
387
|
default: false
|
|
@@ -402,16 +391,16 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
402
391
|
enum: ['empty', 'current'],
|
|
403
392
|
enumDescriptions: [
|
|
404
393
|
( localize(
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
394
|
+
8495,
|
|
395
|
+
"Use an empty working set when switching to a source control history item group that does not have a working set."
|
|
396
|
+
)),
|
|
408
397
|
( localize(
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
398
|
+
8496,
|
|
399
|
+
"Use the current working set when switching to a source control history item group that does not have a working set."
|
|
400
|
+
))
|
|
412
401
|
],
|
|
413
402
|
description: ( localize(
|
|
414
|
-
|
|
403
|
+
8497,
|
|
415
404
|
"Controls the default working set to use when switching to a source control history item group that does not have a working set."
|
|
416
405
|
)),
|
|
417
406
|
default: 'current'
|
|
@@ -419,7 +408,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
419
408
|
'scm.compactFolders': {
|
|
420
409
|
type: 'boolean',
|
|
421
410
|
description: ( localize(
|
|
422
|
-
|
|
411
|
+
8498,
|
|
423
412
|
"Controls whether the Source Control view should render folders in a compact form. In such a form, single child folders will be compressed in a combined tree element."
|
|
424
413
|
)),
|
|
425
414
|
default: true
|
|
@@ -427,7 +416,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
427
416
|
'scm.graph.pageOnScroll': {
|
|
428
417
|
type: 'boolean',
|
|
429
418
|
description: ( localize(
|
|
430
|
-
|
|
419
|
+
8499,
|
|
431
420
|
"Controls whether the Source Control Graph view will load the next page of items when you scroll to the end of the list."
|
|
432
421
|
)),
|
|
433
422
|
default: true
|
|
@@ -435,7 +424,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
435
424
|
'scm.graph.pageSize': {
|
|
436
425
|
type: 'number',
|
|
437
426
|
description: ( localize(
|
|
438
|
-
|
|
427
|
+
8500,
|
|
439
428
|
"The number of items to show in the Source Control Graph view by default and when loading more items."
|
|
440
429
|
)),
|
|
441
430
|
minimum: 1,
|
|
@@ -447,16 +436,16 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
447
436
|
enum: ['all', 'filter'],
|
|
448
437
|
enumDescriptions: [
|
|
449
438
|
( localize(
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
439
|
+
8501,
|
|
440
|
+
"Show badges of all history item groups in the Source Control Graph view."
|
|
441
|
+
)),
|
|
453
442
|
( localize(
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
443
|
+
8502,
|
|
444
|
+
"Show only the badges of history item groups used as a filter in the Source Control Graph view."
|
|
445
|
+
))
|
|
457
446
|
],
|
|
458
447
|
description: ( localize(
|
|
459
|
-
|
|
448
|
+
8503,
|
|
460
449
|
"Controls which badges are shown in the Source Control Graph view. The badges are shown on the right side of the graph indicating the names of history item groups."
|
|
461
450
|
)),
|
|
462
451
|
default: 'filter'
|
|
@@ -465,10 +454,10 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
465
454
|
});
|
|
466
455
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
467
456
|
id: 'scm.acceptInput',
|
|
468
|
-
metadata: { description: ( localize(
|
|
469
|
-
weight:
|
|
470
|
-
when: (
|
|
471
|
-
primary:
|
|
457
|
+
metadata: { description: ( localize(8504, "Source Control: Accept Input")), args: [] },
|
|
458
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
459
|
+
when: ( ContextKeyExpr.has('scmRepository')),
|
|
460
|
+
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
472
461
|
handler: accessor => {
|
|
473
462
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
474
463
|
const context = contextKeyService.getContext(getActiveElement());
|
|
@@ -489,12 +478,9 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
489
478
|
});
|
|
490
479
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
491
480
|
id: 'scm.clearInput',
|
|
492
|
-
weight:
|
|
493
|
-
when: (
|
|
494
|
-
|
|
495
|
-
(Context.Visible.toNegated())
|
|
496
|
-
))),
|
|
497
|
-
primary: 9 ,
|
|
481
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
482
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.has('scmRepository')), ( Context.Visible.toNegated()))),
|
|
483
|
+
primary: KeyCode.Escape,
|
|
498
484
|
handler: async (accessor) => {
|
|
499
485
|
const scmService = accessor.get(ISCMService);
|
|
500
486
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -505,8 +491,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
505
491
|
}
|
|
506
492
|
});
|
|
507
493
|
const viewNextCommitCommand = {
|
|
508
|
-
description: { description: ( localize(
|
|
509
|
-
weight:
|
|
494
|
+
description: { description: ( localize(8505, "Source Control: View Next Commit")), args: [] },
|
|
495
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
510
496
|
handler: (accessor) => {
|
|
511
497
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
512
498
|
const scmService = accessor.get(ISCMService);
|
|
@@ -517,8 +503,8 @@ const viewNextCommitCommand = {
|
|
|
517
503
|
}
|
|
518
504
|
};
|
|
519
505
|
const viewPreviousCommitCommand = {
|
|
520
|
-
description: { description: ( localize(
|
|
521
|
-
weight:
|
|
506
|
+
description: { description: ( localize(8506, "Source Control: View Previous Commit")), args: [] },
|
|
507
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
522
508
|
handler: (accessor) => {
|
|
523
509
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
524
510
|
const scmService = accessor.get(ISCMService);
|
|
@@ -531,34 +517,26 @@ const viewPreviousCommitCommand = {
|
|
|
531
517
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
532
518
|
...viewNextCommitCommand,
|
|
533
519
|
id: 'scm.viewNextCommit',
|
|
534
|
-
when: (
|
|
535
|
-
|
|
536
|
-
(ContextKeyExpr.has('scmInputIsInLastPosition')),
|
|
537
|
-
(Context.Visible.toNegated())
|
|
538
|
-
))),
|
|
539
|
-
primary: 18
|
|
520
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.has('scmRepository')), ( ContextKeyExpr.has('scmInputIsInLastPosition')), ( Context.Visible.toNegated()))),
|
|
521
|
+
primary: KeyCode.DownArrow
|
|
540
522
|
});
|
|
541
523
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
542
524
|
...viewPreviousCommitCommand,
|
|
543
525
|
id: 'scm.viewPreviousCommit',
|
|
544
|
-
when: (
|
|
545
|
-
|
|
546
|
-
(ContextKeyExpr.has('scmInputIsInFirstPosition')),
|
|
547
|
-
(Context.Visible.toNegated())
|
|
548
|
-
))),
|
|
549
|
-
primary: 16
|
|
526
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.has('scmRepository')), ( ContextKeyExpr.has('scmInputIsInFirstPosition')), ( Context.Visible.toNegated()))),
|
|
527
|
+
primary: KeyCode.UpArrow
|
|
550
528
|
});
|
|
551
529
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
552
530
|
...viewNextCommitCommand,
|
|
553
531
|
id: 'scm.forceViewNextCommit',
|
|
554
|
-
when: (
|
|
555
|
-
primary:
|
|
532
|
+
when: ( ContextKeyExpr.has('scmRepository')),
|
|
533
|
+
primary: KeyMod.Alt | KeyCode.DownArrow
|
|
556
534
|
});
|
|
557
535
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
558
536
|
...viewPreviousCommitCommand,
|
|
559
537
|
id: 'scm.forceViewPreviousCommit',
|
|
560
|
-
when: (
|
|
561
|
-
primary:
|
|
538
|
+
when: ( ContextKeyExpr.has('scmRepository')),
|
|
539
|
+
primary: KeyMod.Alt | KeyCode.UpArrow
|
|
562
540
|
});
|
|
563
541
|
CommandsRegistry.registerCommand('scm.openInIntegratedTerminal', async (accessor, ...providers) => {
|
|
564
542
|
if (!providers || providers.length === 0) {
|
|
@@ -594,34 +572,22 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
594
572
|
group: '100_end',
|
|
595
573
|
command: {
|
|
596
574
|
id: 'scm.openInTerminal',
|
|
597
|
-
title: ( localize(
|
|
575
|
+
title: ( localize(8507, "Open in External Terminal"))
|
|
598
576
|
},
|
|
599
|
-
when: (
|
|
600
|
-
(ContextKeyExpr.equals('scmProviderHasRootUri', true)),
|
|
601
|
-
(ContextKeyExpr.or(
|
|
602
|
-
(ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'external')),
|
|
603
|
-
(ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))
|
|
604
|
-
))
|
|
605
|
-
)))
|
|
577
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scmProviderHasRootUri', true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'external')), ( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))))))
|
|
606
578
|
});
|
|
607
579
|
MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
608
580
|
group: '100_end',
|
|
609
581
|
command: {
|
|
610
582
|
id: 'scm.openInIntegratedTerminal',
|
|
611
|
-
title: ( localize(
|
|
583
|
+
title: ( localize(8508, "Open in Integrated Terminal"))
|
|
612
584
|
},
|
|
613
|
-
when: (
|
|
614
|
-
(ContextKeyExpr.equals('scmProviderHasRootUri', true)),
|
|
615
|
-
(ContextKeyExpr.or(
|
|
616
|
-
(ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'integrated')),
|
|
617
|
-
(ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))
|
|
618
|
-
))
|
|
619
|
-
)))
|
|
585
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scmProviderHasRootUri', true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'integrated')), ( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))))))
|
|
620
586
|
});
|
|
621
587
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
622
588
|
id: 'workbench.scm.action.focusPreviousInput',
|
|
623
|
-
weight:
|
|
624
|
-
when: (
|
|
589
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
590
|
+
when: ( ContextKeys.RepositoryVisibilityCount.notEqualsTo(0)),
|
|
625
591
|
handler: async (accessor) => {
|
|
626
592
|
const viewsService = accessor.get(IViewsService);
|
|
627
593
|
const scmView = await viewsService.openView(VIEW_PANE_ID);
|
|
@@ -632,8 +598,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
632
598
|
});
|
|
633
599
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
634
600
|
id: 'workbench.scm.action.focusNextInput',
|
|
635
|
-
weight:
|
|
636
|
-
when: (
|
|
601
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
602
|
+
when: ( ContextKeys.RepositoryVisibilityCount.notEqualsTo(0)),
|
|
637
603
|
handler: async (accessor) => {
|
|
638
604
|
const viewsService = accessor.get(IViewsService);
|
|
639
605
|
const scmView = await viewsService.openView(VIEW_PANE_ID);
|
|
@@ -644,7 +610,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
644
610
|
});
|
|
645
611
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
646
612
|
id: 'workbench.scm.action.focusPreviousResourceGroup',
|
|
647
|
-
weight:
|
|
613
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
648
614
|
handler: async (accessor) => {
|
|
649
615
|
const viewsService = accessor.get(IViewsService);
|
|
650
616
|
const scmView = await viewsService.openView(VIEW_PANE_ID);
|
|
@@ -655,7 +621,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
655
621
|
});
|
|
656
622
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
657
623
|
id: 'workbench.scm.action.focusNextResourceGroup',
|
|
658
|
-
weight:
|
|
624
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
659
625
|
handler: async (accessor) => {
|
|
660
626
|
const viewsService = accessor.get(IViewsService);
|
|
661
627
|
const scmView = await viewsService.openView(VIEW_PANE_ID);
|
|
@@ -664,6 +630,6 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
664
630
|
}
|
|
665
631
|
}
|
|
666
632
|
});
|
|
667
|
-
(
|
|
668
|
-
(
|
|
669
|
-
(
|
|
633
|
+
( registerSingleton(ISCMService, SCMService, InstantiationType.Delayed));
|
|
634
|
+
( registerSingleton(ISCMViewService, SCMViewService, InstantiationType.Delayed));
|
|
635
|
+
( registerSingleton(IQuickDiffService, QuickDiffService, InstantiationType.Delayed));
|