@codingame/monaco-vscode-scm-service-override 9.0.2 → 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/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +24 -37
- package/vscode/src/vs/workbench/contrib/scm/browser/media/scm.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +2 -77
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +172 -123
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.js +914 -501
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +4 -5
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoryRenderer.js +4 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +106 -916
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +12 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +45 -17
- package/vscode/src/vs/workbench/contrib/scm/browser/workingSet.js +19 -16
- package/vscode/src/vs/workbench/contrib/scm/common/scmService.js +9 -10
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +0 -222
- package/vscode/src/vs/workbench/contrib/scm/browser/util.js +0 -133
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
3
|
-
import { Extensions, registerWorkbenchContribution2
|
|
3
|
+
import { Extensions, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
4
4
|
import { DirtyDiffWorkbenchController } from 'vscode/vscode/vs/workbench/contrib/scm/browser/dirtydiffDecorator';
|
|
5
|
-
import { VIEWLET_ID, VIEW_PANE_ID,
|
|
6
|
-
import { ISCMService } from 'vscode/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
7
|
-
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
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 { ISCMService, ISCMViewService } from 'vscode/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
8
7
|
import { MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
9
8
|
import { SCMActiveRepositoryController, SCMActiveResourceContextKeyController } from './activity.js';
|
|
10
|
-
import {
|
|
11
|
-
import { Extensions as Extensions$2, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
9
|
+
import { Extensions as Extensions$2 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
12
10
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
13
11
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
14
12
|
import { CommandsRegistry } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
15
13
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands.service';
|
|
16
|
-
import { KeybindingsRegistry
|
|
17
|
-
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
18
|
-
import '../common/scmService.js';
|
|
19
|
-
import { Extensions as Extensions$1
|
|
14
|
+
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
15
|
+
import { registerSingleton } from 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
16
|
+
import { SCMService } from '../common/scmService.js';
|
|
17
|
+
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/workbench/common/views';
|
|
20
18
|
import { SCMViewPaneContainer } from './scmViewPaneContainer.js';
|
|
21
19
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
22
20
|
import { ModesRegistry } from 'vscode/vscode/vs/editor/common/languages/modesRegistry';
|
|
23
21
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
24
22
|
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
25
|
-
import {
|
|
26
|
-
import './scmViewService.js';
|
|
23
|
+
import { ContextKeys, SCMViewPane } from './scmViewPane.js';
|
|
24
|
+
import { SCMViewService } from './scmViewService.js';
|
|
27
25
|
import { SCMRepositoriesViewPane } from './scmRepositoriesViewPane.js';
|
|
28
26
|
import { Context } from 'vscode/vscode/vs/editor/contrib/suggest/browser/suggest';
|
|
29
27
|
import { WorkspaceTrustContext, MANAGE_TRUST_COMMAND_ID } from 'vscode/vscode/vs/workbench/contrib/workspace/common/workspace';
|
|
30
|
-
import 'vscode/vscode/vs/
|
|
31
|
-
import '../common/quickDiffService.js';
|
|
28
|
+
import { IQuickDiffService } from 'vscode/vscode/vs/workbench/contrib/scm/common/quickDiff.service';
|
|
29
|
+
import { QuickDiffService } from '../common/quickDiffService.js';
|
|
32
30
|
import { getActiveElement, isActiveElement } from 'vscode/vscode/vs/base/browser/dom';
|
|
33
31
|
import { SCMWorkingSetController } from './workingSet.js';
|
|
34
32
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
35
33
|
import { WorkbenchList } from 'vscode/vscode/vs/platform/list/browser/listService';
|
|
36
34
|
import { IListService } from 'vscode/vscode/vs/platform/list/browser/listService.service';
|
|
37
|
-
import { isSCMRepository } from '
|
|
35
|
+
import { isSCMRepository } from 'vscode/vscode/vs/workbench/contrib/scm/browser/util';
|
|
38
36
|
import { SCMHistoryViewPane } from './scmHistoryViewPane.js';
|
|
37
|
+
import { IsWebContext } from 'vscode/vscode/vs/platform/contextkey/common/contextkeys';
|
|
38
|
+
import { RemoteNameContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
39
39
|
|
|
40
40
|
ModesRegistry.registerLanguage({
|
|
41
41
|
id: 'scminput',
|
|
@@ -44,26 +44,26 @@ ModesRegistry.registerLanguage({
|
|
|
44
44
|
mimetypes: ['text/x-scm-input']
|
|
45
45
|
});
|
|
46
46
|
( (Registry.as(Extensions.Workbench)))
|
|
47
|
-
.registerWorkbenchContribution(DirtyDiffWorkbenchController,
|
|
48
|
-
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(
|
|
47
|
+
.registerWorkbenchContribution(DirtyDiffWorkbenchController, 3 );
|
|
48
|
+
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(2894, 'View icon of the Source Control view.')));
|
|
49
49
|
const viewContainer = ( (Registry.as(Extensions$1.ViewContainersRegistry))).registerViewContainer({
|
|
50
50
|
id: VIEWLET_ID,
|
|
51
|
-
title: ( localize2(
|
|
51
|
+
title: ( localize2(2895, 'Source Control')),
|
|
52
52
|
ctorDescriptor: ( (new SyncDescriptor(SCMViewPaneContainer))),
|
|
53
53
|
storageId: 'workbench.scm.views.state',
|
|
54
54
|
icon: sourceControlViewIcon,
|
|
55
55
|
alwaysUseContainerInfo: true,
|
|
56
56
|
order: 2,
|
|
57
57
|
hideIfEmpty: true,
|
|
58
|
-
},
|
|
58
|
+
}, 0 , { doNotRegisterOpenCommand: true });
|
|
59
59
|
const viewsRegistry = ( (Registry.as(Extensions$1.ViewsRegistry)));
|
|
60
60
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
61
|
-
content: ( localize(
|
|
61
|
+
content: ( localize(2896, "No source control providers registered.")),
|
|
62
62
|
when: 'default'
|
|
63
63
|
});
|
|
64
64
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
65
65
|
content: ( localize(
|
|
66
|
-
|
|
66
|
+
2897,
|
|
67
67
|
"None of the registered source control providers work in Restricted Mode."
|
|
68
68
|
)),
|
|
69
69
|
when: ( (ContextKeyExpr.and(
|
|
@@ -73,94 +73,103 @@ viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
|
73
73
|
)))
|
|
74
74
|
});
|
|
75
75
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
76
|
-
content: `[${( localize(
|
|
76
|
+
content: `[${( localize(2898, "Manage Workspace Trust"))}](command:${MANAGE_TRUST_COMMAND_ID})`,
|
|
77
77
|
when: ( (ContextKeyExpr.and(
|
|
78
78
|
(ContextKeyExpr.equals('scm.providerCount', 0)),
|
|
79
79
|
WorkspaceTrustContext.IsEnabled,
|
|
80
80
|
(WorkspaceTrustContext.IsTrusted.toNegated())
|
|
81
81
|
)))
|
|
82
82
|
});
|
|
83
|
+
viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
84
|
+
content: ( localize(
|
|
85
|
+
2899,
|
|
86
|
+
"The selected source control provider does not have any source control history items."
|
|
87
|
+
)),
|
|
88
|
+
when: ( (ContextKeys.SCMHistoryItemCount.isEqualTo(0)))
|
|
89
|
+
});
|
|
90
|
+
viewsRegistry.registerViews([{
|
|
91
|
+
id: REPOSITORIES_VIEW_PANE_ID,
|
|
92
|
+
name: ( localize2(2900, "Source Control Repositories")),
|
|
93
|
+
ctorDescriptor: ( (new SyncDescriptor(SCMRepositoriesViewPane))),
|
|
94
|
+
canToggleVisibility: true,
|
|
95
|
+
hideByDefault: true,
|
|
96
|
+
canMoveView: true,
|
|
97
|
+
weight: 20,
|
|
98
|
+
order: 0,
|
|
99
|
+
when: ( (ContextKeyExpr.and(
|
|
100
|
+
(ContextKeyExpr.has('scm.providerCount')),
|
|
101
|
+
(ContextKeyExpr.notEquals('scm.providerCount', 0))
|
|
102
|
+
))),
|
|
103
|
+
containerIcon: sourceControlViewIcon
|
|
104
|
+
}], viewContainer);
|
|
83
105
|
viewsRegistry.registerViews([{
|
|
84
106
|
id: VIEW_PANE_ID,
|
|
85
|
-
name: ( localize2(
|
|
107
|
+
name: ( localize2(2895, 'Source Control')),
|
|
86
108
|
ctorDescriptor: ( (new SyncDescriptor(SCMViewPane))),
|
|
87
109
|
canToggleVisibility: true,
|
|
88
110
|
canMoveView: true,
|
|
89
111
|
weight: 40,
|
|
90
|
-
order:
|
|
112
|
+
order: 1,
|
|
91
113
|
containerIcon: sourceControlViewIcon,
|
|
92
114
|
openCommandActionDescriptor: {
|
|
93
115
|
id: viewContainer.id,
|
|
94
|
-
mnemonicTitle: ( localize(
|
|
116
|
+
mnemonicTitle: ( localize(2901, "Source &&Control")),
|
|
95
117
|
keybindings: {
|
|
96
118
|
primary: 0,
|
|
97
|
-
win: { primary:
|
|
98
|
-
linux: { primary:
|
|
99
|
-
mac: { primary:
|
|
119
|
+
win: { primary: 2048 | 1024 | 37 },
|
|
120
|
+
linux: { primary: 2048 | 1024 | 37 },
|
|
121
|
+
mac: { primary: 256 | 1024 | 37 },
|
|
100
122
|
},
|
|
101
123
|
order: 2,
|
|
102
124
|
}
|
|
103
125
|
}], viewContainer);
|
|
104
|
-
viewsRegistry.registerViews([{
|
|
105
|
-
id: REPOSITORIES_VIEW_PANE_ID,
|
|
106
|
-
name: ( localize2(2876, "Source Control Repositories")),
|
|
107
|
-
ctorDescriptor: ( (new SyncDescriptor(SCMRepositoriesViewPane))),
|
|
108
|
-
canToggleVisibility: true,
|
|
109
|
-
hideByDefault: true,
|
|
110
|
-
canMoveView: true,
|
|
111
|
-
weight: 20,
|
|
112
|
-
order: -1000,
|
|
113
|
-
when: ( (ContextKeyExpr.and(
|
|
114
|
-
(ContextKeyExpr.has('scm.providerCount')),
|
|
115
|
-
(ContextKeyExpr.notEquals('scm.providerCount', 0))
|
|
116
|
-
))),
|
|
117
|
-
containerIcon: sourceControlViewIcon
|
|
118
|
-
}], viewContainer);
|
|
119
126
|
viewsRegistry.registerViews([{
|
|
120
127
|
id: HISTORY_VIEW_PANE_ID,
|
|
121
|
-
name: ( localize2(
|
|
128
|
+
name: ( localize2(2902, "Source Control Graph")),
|
|
122
129
|
ctorDescriptor: ( (new SyncDescriptor(SCMHistoryViewPane))),
|
|
123
130
|
canToggleVisibility: true,
|
|
124
131
|
canMoveView: true,
|
|
125
132
|
weight: 40,
|
|
126
133
|
order: 2,
|
|
127
134
|
when: ( (ContextKeyExpr.and(
|
|
135
|
+
(ContextKeyExpr.and(
|
|
128
136
|
(ContextKeyExpr.has('scm.providerCount')),
|
|
129
137
|
(ContextKeyExpr.notEquals('scm.providerCount', 0))
|
|
130
|
-
))
|
|
138
|
+
)),
|
|
139
|
+
( (ContextKeyExpr.and(IsWebContext, (RemoteNameContext.isEqualTo('')))))?.negate()))),
|
|
131
140
|
containerIcon: sourceControlViewIcon
|
|
132
141
|
}], viewContainer);
|
|
133
142
|
( (Registry.as(Extensions.Workbench)))
|
|
134
|
-
.registerWorkbenchContribution(SCMActiveRepositoryController,
|
|
143
|
+
.registerWorkbenchContribution(SCMActiveRepositoryController, 3 );
|
|
135
144
|
( (Registry.as(Extensions.Workbench)))
|
|
136
|
-
.registerWorkbenchContribution(SCMActiveResourceContextKeyController,
|
|
137
|
-
registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetController,
|
|
145
|
+
.registerWorkbenchContribution(SCMActiveResourceContextKeyController, 3 );
|
|
146
|
+
registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetController, 3 );
|
|
138
147
|
( (Registry.as(Extensions$2.Configuration))).registerConfiguration({
|
|
139
148
|
id: 'scm',
|
|
140
149
|
order: 5,
|
|
141
|
-
title: ( localize(
|
|
150
|
+
title: ( localize(2903, "Source Control")),
|
|
142
151
|
type: 'object',
|
|
143
|
-
scope:
|
|
152
|
+
scope: 4 ,
|
|
144
153
|
properties: {
|
|
145
154
|
'scm.diffDecorations': {
|
|
146
155
|
type: 'string',
|
|
147
156
|
enum: ['all', 'gutter', 'overview', 'minimap', 'none'],
|
|
148
157
|
enumDescriptions: [
|
|
149
|
-
( localize(
|
|
150
|
-
( localize(
|
|
151
|
-
( localize(
|
|
152
|
-
( localize(
|
|
153
|
-
( localize(
|
|
158
|
+
( localize(2904, "Show the diff decorations in all available locations.")),
|
|
159
|
+
( localize(2905, "Show the diff decorations only in the editor gutter.")),
|
|
160
|
+
( localize(2906, "Show the diff decorations only in the overview ruler.")),
|
|
161
|
+
( localize(2907, "Show the diff decorations only in the minimap.")),
|
|
162
|
+
( localize(2908, "Do not show the diff decorations."))
|
|
154
163
|
],
|
|
155
164
|
default: 'all',
|
|
156
|
-
description: ( localize(
|
|
165
|
+
description: ( localize(2909, "Controls diff decorations in the editor."))
|
|
157
166
|
},
|
|
158
167
|
'scm.diffDecorationsGutterWidth': {
|
|
159
168
|
type: 'number',
|
|
160
169
|
enum: [1, 2, 3, 4, 5],
|
|
161
170
|
default: 3,
|
|
162
171
|
description: ( localize(
|
|
163
|
-
|
|
172
|
+
2910,
|
|
164
173
|
"Controls the width(px) of diff decorations in gutter (added & modified)."
|
|
165
174
|
))
|
|
166
175
|
},
|
|
@@ -168,11 +177,11 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
168
177
|
type: 'string',
|
|
169
178
|
enum: ['always', 'hover'],
|
|
170
179
|
enumDescriptions: [
|
|
171
|
-
( localize(
|
|
172
|
-
( localize(
|
|
180
|
+
( localize(2911, "Show the diff decorator in the gutter at all times.")),
|
|
181
|
+
( localize(2912, "Show the diff decorator in the gutter only on hover."))
|
|
173
182
|
],
|
|
174
183
|
description: ( localize(
|
|
175
|
-
|
|
184
|
+
2913,
|
|
176
185
|
"Controls the visibility of the Source Control diff decorator in the gutter."
|
|
177
186
|
)),
|
|
178
187
|
default: 'always'
|
|
@@ -181,27 +190,27 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
181
190
|
type: 'string',
|
|
182
191
|
enum: ['diff', 'none'],
|
|
183
192
|
enumDescriptions: [
|
|
184
|
-
( localize(
|
|
185
|
-
( localize(
|
|
193
|
+
( localize(2914, "Show the inline diff Peek view on click.")),
|
|
194
|
+
( localize(2915, "Do nothing."))
|
|
186
195
|
],
|
|
187
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(2916, "Controls the behavior of Source Control diff gutter decorations.")),
|
|
188
197
|
default: 'diff'
|
|
189
198
|
},
|
|
190
199
|
'scm.diffDecorationsGutterPattern': {
|
|
191
200
|
type: 'object',
|
|
192
201
|
description: ( localize(
|
|
193
|
-
|
|
202
|
+
2917,
|
|
194
203
|
"Controls whether a pattern is used for the diff decorations in gutter."
|
|
195
204
|
)),
|
|
196
205
|
additionalProperties: false,
|
|
197
206
|
properties: {
|
|
198
207
|
'added': {
|
|
199
208
|
type: 'boolean',
|
|
200
|
-
description: ( localize(
|
|
209
|
+
description: ( localize(2918, "Use pattern for the diff decorations in gutter for added lines.")),
|
|
201
210
|
},
|
|
202
211
|
'modified': {
|
|
203
212
|
type: 'boolean',
|
|
204
|
-
description: ( localize(
|
|
213
|
+
description: ( localize(2919, "Use pattern for the diff decorations in gutter for modified lines.")),
|
|
205
214
|
},
|
|
206
215
|
},
|
|
207
216
|
default: {
|
|
@@ -213,12 +222,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
213
222
|
type: 'string',
|
|
214
223
|
enum: ['true', 'false', 'inherit'],
|
|
215
224
|
enumDescriptions: [
|
|
216
|
-
( localize(
|
|
217
|
-
( localize(
|
|
218
|
-
( localize(
|
|
225
|
+
( localize(2920, "Ignore leading and trailing whitespace.")),
|
|
226
|
+
( localize(2921, "Do not ignore leading and trailing whitespace.")),
|
|
227
|
+
( localize(2922, "Inherit from `diffEditor.ignoreTrimWhitespace`."))
|
|
219
228
|
],
|
|
220
229
|
description: ( localize(
|
|
221
|
-
|
|
230
|
+
2923,
|
|
222
231
|
"Controls whether leading and trailing whitespace is ignored in Source Control diff gutter decorations."
|
|
223
232
|
)),
|
|
224
233
|
default: 'false'
|
|
@@ -226,7 +235,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
226
235
|
'scm.alwaysShowActions': {
|
|
227
236
|
type: 'boolean',
|
|
228
237
|
description: ( localize(
|
|
229
|
-
|
|
238
|
+
2924,
|
|
230
239
|
"Controls whether inline actions are always visible in the Source Control view."
|
|
231
240
|
)),
|
|
232
241
|
default: false
|
|
@@ -235,12 +244,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
235
244
|
type: 'string',
|
|
236
245
|
enum: ['all', 'focused', 'off'],
|
|
237
246
|
enumDescriptions: [
|
|
238
|
-
( localize(
|
|
239
|
-
( localize(
|
|
240
|
-
( localize(
|
|
247
|
+
( localize(2925, "Show the sum of all Source Control Provider count badges.")),
|
|
248
|
+
( localize(2926, "Show the count badge of the focused Source Control Provider.")),
|
|
249
|
+
( localize(2927, "Disable the Source Control count badge."))
|
|
241
250
|
],
|
|
242
251
|
description: ( localize(
|
|
243
|
-
|
|
252
|
+
2928,
|
|
244
253
|
"Controls the count badge on the Source Control icon on the Activity Bar."
|
|
245
254
|
)),
|
|
246
255
|
default: 'all'
|
|
@@ -249,12 +258,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
249
258
|
type: 'string',
|
|
250
259
|
enum: ['hidden', 'auto', 'visible'],
|
|
251
260
|
enumDescriptions: [
|
|
252
|
-
( localize(
|
|
253
|
-
( localize(
|
|
254
|
-
( localize(
|
|
261
|
+
( localize(2929, "Hide Source Control Provider count badges.")),
|
|
262
|
+
( localize(2930, "Only show count badge for Source Control Provider when non-zero.")),
|
|
263
|
+
( localize(2931, "Show Source Control Provider count badges."))
|
|
255
264
|
],
|
|
256
265
|
markdownDescription: ( localize(
|
|
257
|
-
|
|
266
|
+
2932,
|
|
258
267
|
"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.",
|
|
259
268
|
'\`#scm.alwaysShowRepositories#\`'
|
|
260
269
|
)),
|
|
@@ -264,22 +273,22 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
264
273
|
type: 'string',
|
|
265
274
|
enum: ['tree', 'list'],
|
|
266
275
|
enumDescriptions: [
|
|
267
|
-
( localize(
|
|
268
|
-
( localize(
|
|
276
|
+
( localize(2933, "Show the repository changes as a tree.")),
|
|
277
|
+
( localize(2934, "Show the repository changes as a list."))
|
|
269
278
|
],
|
|
270
|
-
description: ( localize(
|
|
279
|
+
description: ( localize(2935, "Controls the default Source Control repository view mode.")),
|
|
271
280
|
default: 'list'
|
|
272
281
|
},
|
|
273
282
|
'scm.defaultViewSortKey': {
|
|
274
283
|
type: 'string',
|
|
275
284
|
enum: ['name', 'path', 'status'],
|
|
276
285
|
enumDescriptions: [
|
|
277
|
-
( localize(
|
|
278
|
-
( localize(
|
|
279
|
-
( localize(
|
|
286
|
+
( localize(2936, "Sort the repository changes by file name.")),
|
|
287
|
+
( localize(2937, "Sort the repository changes by path.")),
|
|
288
|
+
( localize(2938, "Sort the repository changes by Source Control status."))
|
|
280
289
|
],
|
|
281
290
|
description: ( localize(
|
|
282
|
-
|
|
291
|
+
2939,
|
|
283
292
|
"Controls the default Source Control repository changes sort order when viewed as a list."
|
|
284
293
|
)),
|
|
285
294
|
default: 'path'
|
|
@@ -287,7 +296,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
287
296
|
'scm.autoReveal': {
|
|
288
297
|
type: 'boolean',
|
|
289
298
|
description: ( localize(
|
|
290
|
-
|
|
299
|
+
2940,
|
|
291
300
|
"Controls whether the Source Control view should automatically reveal and select files when opening them."
|
|
292
301
|
)),
|
|
293
302
|
default: true
|
|
@@ -295,20 +304,20 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
295
304
|
'scm.inputFontFamily': {
|
|
296
305
|
type: 'string',
|
|
297
306
|
markdownDescription: ( localize(
|
|
298
|
-
|
|
307
|
+
2941,
|
|
299
308
|
"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."
|
|
300
309
|
)),
|
|
301
310
|
default: 'default'
|
|
302
311
|
},
|
|
303
312
|
'scm.inputFontSize': {
|
|
304
313
|
type: 'number',
|
|
305
|
-
markdownDescription: ( localize(
|
|
314
|
+
markdownDescription: ( localize(2942, "Controls the font size for the input message in pixels.")),
|
|
306
315
|
default: 13
|
|
307
316
|
},
|
|
308
317
|
'scm.inputMaxLineCount': {
|
|
309
318
|
type: 'number',
|
|
310
319
|
markdownDescription: ( localize(
|
|
311
|
-
|
|
320
|
+
2943,
|
|
312
321
|
"Controls the maximum number of lines that the input will auto-grow to."
|
|
313
322
|
)),
|
|
314
323
|
minimum: 1,
|
|
@@ -318,7 +327,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
318
327
|
'scm.inputMinLineCount': {
|
|
319
328
|
type: 'number',
|
|
320
329
|
markdownDescription: ( localize(
|
|
321
|
-
|
|
330
|
+
2944,
|
|
322
331
|
"Controls the minimum number of lines that the input will auto-grow from."
|
|
323
332
|
)),
|
|
324
333
|
minimum: 1,
|
|
@@ -328,7 +337,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
328
337
|
'scm.alwaysShowRepositories': {
|
|
329
338
|
type: 'boolean',
|
|
330
339
|
markdownDescription: ( localize(
|
|
331
|
-
|
|
340
|
+
2945,
|
|
332
341
|
"Controls whether repositories should always be visible in the Source Control view."
|
|
333
342
|
)),
|
|
334
343
|
default: false
|
|
@@ -338,20 +347,20 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
338
347
|
enum: ['discovery time', 'name', 'path'],
|
|
339
348
|
enumDescriptions: [
|
|
340
349
|
( localize(
|
|
341
|
-
|
|
350
|
+
2946,
|
|
342
351
|
"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."
|
|
343
352
|
)),
|
|
344
353
|
( localize(
|
|
345
|
-
|
|
354
|
+
2947,
|
|
346
355
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
|
|
347
356
|
)),
|
|
348
357
|
( localize(
|
|
349
|
-
|
|
358
|
+
2948,
|
|
350
359
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository path."
|
|
351
360
|
))
|
|
352
361
|
],
|
|
353
362
|
description: ( localize(
|
|
354
|
-
|
|
363
|
+
2949,
|
|
355
364
|
"Controls the sort order of the repositories in the source control repositories view."
|
|
356
365
|
)),
|
|
357
366
|
default: 'discovery time'
|
|
@@ -359,7 +368,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
359
368
|
'scm.repositories.visible': {
|
|
360
369
|
type: 'number',
|
|
361
370
|
description: ( localize(
|
|
362
|
-
|
|
371
|
+
2950,
|
|
363
372
|
"Controls how many repositories are visible in the Source Control Repositories section. Set to 0, to be able to manually resize the view."
|
|
364
373
|
)),
|
|
365
374
|
default: 10
|
|
@@ -367,7 +376,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
367
376
|
'scm.showActionButton': {
|
|
368
377
|
type: 'boolean',
|
|
369
378
|
markdownDescription: ( localize(
|
|
370
|
-
|
|
379
|
+
2951,
|
|
371
380
|
"Controls whether an action button can be shown in the Source Control view."
|
|
372
381
|
)),
|
|
373
382
|
default: true
|
|
@@ -375,7 +384,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
375
384
|
'scm.showInputActionButton': {
|
|
376
385
|
type: 'boolean',
|
|
377
386
|
markdownDescription: ( localize(
|
|
378
|
-
|
|
387
|
+
2952,
|
|
379
388
|
"Controls whether an action button can be shown in the Source Control input."
|
|
380
389
|
)),
|
|
381
390
|
default: true
|
|
@@ -383,7 +392,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
383
392
|
'scm.workingSets.enabled': {
|
|
384
393
|
type: 'boolean',
|
|
385
394
|
description: ( localize(
|
|
386
|
-
|
|
395
|
+
2953,
|
|
387
396
|
"Controls whether to store editor working sets when switching between source control history item groups."
|
|
388
397
|
)),
|
|
389
398
|
default: false
|
|
@@ -393,16 +402,16 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
393
402
|
enum: ['empty', 'current'],
|
|
394
403
|
enumDescriptions: [
|
|
395
404
|
( localize(
|
|
396
|
-
|
|
405
|
+
2954,
|
|
397
406
|
"Use an empty working set when switching to a source control history item group that does not have a working set."
|
|
398
407
|
)),
|
|
399
408
|
( localize(
|
|
400
|
-
|
|
409
|
+
2955,
|
|
401
410
|
"Use the current working set when switching to a source control history item group that does not have a working set."
|
|
402
411
|
))
|
|
403
412
|
],
|
|
404
413
|
description: ( localize(
|
|
405
|
-
|
|
414
|
+
2956,
|
|
406
415
|
"Controls the default working set to use when switching to a source control history item group that does not have a working set."
|
|
407
416
|
)),
|
|
408
417
|
default: 'current'
|
|
@@ -410,19 +419,56 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
410
419
|
'scm.compactFolders': {
|
|
411
420
|
type: 'boolean',
|
|
412
421
|
description: ( localize(
|
|
413
|
-
|
|
422
|
+
2957,
|
|
414
423
|
"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."
|
|
415
424
|
)),
|
|
416
425
|
default: true
|
|
426
|
+
},
|
|
427
|
+
'scm.graph.pageOnScroll': {
|
|
428
|
+
type: 'boolean',
|
|
429
|
+
description: ( localize(
|
|
430
|
+
2958,
|
|
431
|
+
"Controls whether the Source Control Graph view will load the next page of items when you scroll to the end of the list."
|
|
432
|
+
)),
|
|
433
|
+
default: true
|
|
434
|
+
},
|
|
435
|
+
'scm.graph.pageSize': {
|
|
436
|
+
type: 'number',
|
|
437
|
+
description: ( localize(
|
|
438
|
+
2959,
|
|
439
|
+
"The number of items to show in the Source Control Graph view by default and when loading more items."
|
|
440
|
+
)),
|
|
441
|
+
minimum: 1,
|
|
442
|
+
maximum: 1000,
|
|
443
|
+
default: 50
|
|
444
|
+
},
|
|
445
|
+
'scm.graph.badges': {
|
|
446
|
+
type: 'string',
|
|
447
|
+
enum: ['all', 'filter'],
|
|
448
|
+
enumDescriptions: [
|
|
449
|
+
( localize(
|
|
450
|
+
2960,
|
|
451
|
+
"Show badges of all history item groups in the Source Control Graph view."
|
|
452
|
+
)),
|
|
453
|
+
( localize(
|
|
454
|
+
2961,
|
|
455
|
+
"Show only the badges of history item groups used as a filter in the Source Control Graph view."
|
|
456
|
+
))
|
|
457
|
+
],
|
|
458
|
+
description: ( localize(
|
|
459
|
+
2962,
|
|
460
|
+
"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
|
+
)),
|
|
462
|
+
default: 'filter'
|
|
417
463
|
}
|
|
418
464
|
}
|
|
419
465
|
});
|
|
420
466
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
421
467
|
id: 'scm.acceptInput',
|
|
422
|
-
metadata: { description: ( localize(
|
|
423
|
-
weight:
|
|
468
|
+
metadata: { description: ( localize(2963, "Source Control: Accept Input")), args: [] },
|
|
469
|
+
weight: 200 ,
|
|
424
470
|
when: ( (ContextKeyExpr.has('scmRepository'))),
|
|
425
|
-
primary:
|
|
471
|
+
primary: 2048 | 3 ,
|
|
426
472
|
handler: accessor => {
|
|
427
473
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
428
474
|
const context = contextKeyService.getContext(getActiveElement());
|
|
@@ -443,12 +489,12 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
443
489
|
});
|
|
444
490
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
445
491
|
id: 'scm.clearInput',
|
|
446
|
-
weight:
|
|
492
|
+
weight: 200 ,
|
|
447
493
|
when: ( (ContextKeyExpr.and(
|
|
448
494
|
(ContextKeyExpr.has('scmRepository')),
|
|
449
495
|
(Context.Visible.toNegated())
|
|
450
496
|
))),
|
|
451
|
-
primary:
|
|
497
|
+
primary: 9 ,
|
|
452
498
|
handler: async (accessor) => {
|
|
453
499
|
const scmService = accessor.get(ISCMService);
|
|
454
500
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -459,8 +505,8 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
459
505
|
}
|
|
460
506
|
});
|
|
461
507
|
const viewNextCommitCommand = {
|
|
462
|
-
description: { description: ( localize(
|
|
463
|
-
weight:
|
|
508
|
+
description: { description: ( localize(2964, "Source Control: View Next Commit")), args: [] },
|
|
509
|
+
weight: 200 ,
|
|
464
510
|
handler: (accessor) => {
|
|
465
511
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
466
512
|
const scmService = accessor.get(ISCMService);
|
|
@@ -471,8 +517,8 @@ const viewNextCommitCommand = {
|
|
|
471
517
|
}
|
|
472
518
|
};
|
|
473
519
|
const viewPreviousCommitCommand = {
|
|
474
|
-
description: { description: ( localize(
|
|
475
|
-
weight:
|
|
520
|
+
description: { description: ( localize(2965, "Source Control: View Previous Commit")), args: [] },
|
|
521
|
+
weight: 200 ,
|
|
476
522
|
handler: (accessor) => {
|
|
477
523
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
478
524
|
const scmService = accessor.get(ISCMService);
|
|
@@ -490,7 +536,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
490
536
|
(ContextKeyExpr.has('scmInputIsInLastPosition')),
|
|
491
537
|
(Context.Visible.toNegated())
|
|
492
538
|
))),
|
|
493
|
-
primary:
|
|
539
|
+
primary: 18
|
|
494
540
|
});
|
|
495
541
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
496
542
|
...viewPreviousCommitCommand,
|
|
@@ -500,19 +546,19 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
500
546
|
(ContextKeyExpr.has('scmInputIsInFirstPosition')),
|
|
501
547
|
(Context.Visible.toNegated())
|
|
502
548
|
))),
|
|
503
|
-
primary:
|
|
549
|
+
primary: 16
|
|
504
550
|
});
|
|
505
551
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
506
552
|
...viewNextCommitCommand,
|
|
507
553
|
id: 'scm.forceViewNextCommit',
|
|
508
554
|
when: ( (ContextKeyExpr.has('scmRepository'))),
|
|
509
|
-
primary:
|
|
555
|
+
primary: 512 | 18
|
|
510
556
|
});
|
|
511
557
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
512
558
|
...viewPreviousCommitCommand,
|
|
513
559
|
id: 'scm.forceViewPreviousCommit',
|
|
514
560
|
when: ( (ContextKeyExpr.has('scmRepository'))),
|
|
515
|
-
primary:
|
|
561
|
+
primary: 512 | 16
|
|
516
562
|
});
|
|
517
563
|
CommandsRegistry.registerCommand('scm.openInIntegratedTerminal', async (accessor, ...providers) => {
|
|
518
564
|
if (!providers || providers.length === 0) {
|
|
@@ -548,7 +594,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
548
594
|
group: '100_end',
|
|
549
595
|
command: {
|
|
550
596
|
id: 'scm.openInTerminal',
|
|
551
|
-
title: ( localize(
|
|
597
|
+
title: ( localize(2966, "Open in External Terminal"))
|
|
552
598
|
},
|
|
553
599
|
when: ( (ContextKeyExpr.and(
|
|
554
600
|
(ContextKeyExpr.equals('scmProviderHasRootUri', true)),
|
|
@@ -562,7 +608,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
562
608
|
group: '100_end',
|
|
563
609
|
command: {
|
|
564
610
|
id: 'scm.openInIntegratedTerminal',
|
|
565
|
-
title: ( localize(
|
|
611
|
+
title: ( localize(2967, "Open in Integrated Terminal"))
|
|
566
612
|
},
|
|
567
613
|
when: ( (ContextKeyExpr.and(
|
|
568
614
|
(ContextKeyExpr.equals('scmProviderHasRootUri', true)),
|
|
@@ -574,7 +620,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
574
620
|
});
|
|
575
621
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
576
622
|
id: 'workbench.scm.action.focusPreviousInput',
|
|
577
|
-
weight:
|
|
623
|
+
weight: 200 ,
|
|
578
624
|
when: ( (ContextKeys.RepositoryVisibilityCount.notEqualsTo(0))),
|
|
579
625
|
handler: async (accessor) => {
|
|
580
626
|
const viewsService = accessor.get(IViewsService);
|
|
@@ -586,7 +632,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
586
632
|
});
|
|
587
633
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
588
634
|
id: 'workbench.scm.action.focusNextInput',
|
|
589
|
-
weight:
|
|
635
|
+
weight: 200 ,
|
|
590
636
|
when: ( (ContextKeys.RepositoryVisibilityCount.notEqualsTo(0))),
|
|
591
637
|
handler: async (accessor) => {
|
|
592
638
|
const viewsService = accessor.get(IViewsService);
|
|
@@ -598,7 +644,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
598
644
|
});
|
|
599
645
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
600
646
|
id: 'workbench.scm.action.focusPreviousResourceGroup',
|
|
601
|
-
weight:
|
|
647
|
+
weight: 200 ,
|
|
602
648
|
handler: async (accessor) => {
|
|
603
649
|
const viewsService = accessor.get(IViewsService);
|
|
604
650
|
const scmView = await viewsService.openView(VIEW_PANE_ID);
|
|
@@ -609,7 +655,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
609
655
|
});
|
|
610
656
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
611
657
|
id: 'workbench.scm.action.focusNextResourceGroup',
|
|
612
|
-
weight:
|
|
658
|
+
weight: 200 ,
|
|
613
659
|
handler: async (accessor) => {
|
|
614
660
|
const viewsService = accessor.get(IViewsService);
|
|
615
661
|
const scmView = await viewsService.openView(VIEW_PANE_ID);
|
|
@@ -618,3 +664,6 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
618
664
|
}
|
|
619
665
|
}
|
|
620
666
|
});
|
|
667
|
+
( (registerSingleton(ISCMService, SCMService, 1 )));
|
|
668
|
+
( (registerSingleton(ISCMViewService, SCMViewService, 1 )));
|
|
669
|
+
( (registerSingleton(IQuickDiffService, QuickDiffService, 1 )));
|