@codingame/monaco-vscode-scm-service-override 9.0.0 → 9.0.2
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 +4 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +69 -69
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +7 -7
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.js +12 -12
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +35 -35
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-scm-service-override",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -113,7 +113,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
113
113
|
if (count === 0) {
|
|
114
114
|
return;
|
|
115
115
|
}
|
|
116
|
-
const badge = ( (new NumberBadge(count, num => ( localize(
|
|
116
|
+
const badge = ( (new NumberBadge(count, num => ( localize(6430, '{0} pending changes', num)))));
|
|
117
117
|
store.add(this.activityService.showViewActivity(VIEW_PANE_ID, { badge }));
|
|
118
118
|
}
|
|
119
119
|
_updateStatusBar(repository, commands, store) {
|
|
@@ -139,7 +139,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
139
139
|
repoAgnosticActionName = '';
|
|
140
140
|
}
|
|
141
141
|
const statusbarEntry = {
|
|
142
|
-
name: ( localize(
|
|
142
|
+
name: ( localize(6431, "Source Control")) + (repoAgnosticActionName ? ` ${repoAgnosticActionName}` : ''),
|
|
143
143
|
text: command.title,
|
|
144
144
|
ariaLabel: tooltip,
|
|
145
145
|
tooltip,
|
|
@@ -172,8 +172,8 @@ let SCMActiveResourceContextKeyController = class SCMActiveResourceContextKeyCon
|
|
|
172
172
|
this.uriIdentityService = uriIdentityService;
|
|
173
173
|
this._repositories = observableFromEvent(this, Event.any(this.scmService.onDidAddRepository, this.scmService.onDidRemoveRepository), () => this.scmService.repositories);
|
|
174
174
|
this._onDidRepositoryChange = ( (new Emitter()));
|
|
175
|
-
const activeResourceHasChangesContextKey = ( (new RawContextKey('scmActiveResourceHasChanges', false, ( localize(
|
|
176
|
-
const activeResourceRepositoryContextKey = ( (new RawContextKey('scmActiveResourceRepository', undefined, ( localize(
|
|
175
|
+
const activeResourceHasChangesContextKey = ( (new RawContextKey('scmActiveResourceHasChanges', false, ( localize(6432, "Whether the active resource has changes")))));
|
|
176
|
+
const activeResourceRepositoryContextKey = ( (new RawContextKey('scmActiveResourceRepository', undefined, ( localize(6433, "The active resource's repository")))));
|
|
177
177
|
this._store.add(autorunWithStore((reader, store) => {
|
|
178
178
|
for (const repository of this._repositories.read(reader)) {
|
|
179
179
|
store.add(Event.runAndSubscribe(repository.provider.onDidChangeResources, () => {
|
|
@@ -284,7 +284,7 @@ SCMMenus = ( (__decorate([
|
|
|
284
284
|
( (__param(1, IInstantiationService)))
|
|
285
285
|
], SCMMenus)));
|
|
286
286
|
MenuRegistry.appendMenuItem(MenuId.SCMResourceContext, {
|
|
287
|
-
title: ( localize(
|
|
287
|
+
title: ( localize(6307, "Share")),
|
|
288
288
|
submenu: MenuId.SCMResourceContextShare,
|
|
289
289
|
group: '45_share',
|
|
290
290
|
order: 3,
|
|
@@ -45,10 +45,10 @@ ModesRegistry.registerLanguage({
|
|
|
45
45
|
});
|
|
46
46
|
( (Registry.as(Extensions.Workbench)))
|
|
47
47
|
.registerWorkbenchContribution(DirtyDiffWorkbenchController, LifecyclePhase.Restored);
|
|
48
|
-
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(
|
|
48
|
+
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(2870, '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(2871, 'Source Control')),
|
|
52
52
|
ctorDescriptor: ( (new SyncDescriptor(SCMViewPaneContainer))),
|
|
53
53
|
storageId: 'workbench.scm.views.state',
|
|
54
54
|
icon: sourceControlViewIcon,
|
|
@@ -58,12 +58,12 @@ const viewContainer = ( (Registry.as(Extensions$1.ViewContainersRegistry))).regi
|
|
|
58
58
|
}, ViewContainerLocation.Sidebar, { doNotRegisterOpenCommand: true });
|
|
59
59
|
const viewsRegistry = ( (Registry.as(Extensions$1.ViewsRegistry)));
|
|
60
60
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
61
|
-
content: ( localize(
|
|
61
|
+
content: ( localize(2872, "No source control providers registered.")),
|
|
62
62
|
when: 'default'
|
|
63
63
|
});
|
|
64
64
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
65
65
|
content: ( localize(
|
|
66
|
-
|
|
66
|
+
2873,
|
|
67
67
|
"None of the registered source control providers work in Restricted Mode."
|
|
68
68
|
)),
|
|
69
69
|
when: ( (ContextKeyExpr.and(
|
|
@@ -73,7 +73,7 @@ viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
|
73
73
|
)))
|
|
74
74
|
});
|
|
75
75
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
76
|
-
content: `[${( localize(
|
|
76
|
+
content: `[${( localize(2874, "Manage Workspace Trust"))}](command:${MANAGE_TRUST_COMMAND_ID})`,
|
|
77
77
|
when: ( (ContextKeyExpr.and(
|
|
78
78
|
(ContextKeyExpr.equals('scm.providerCount', 0)),
|
|
79
79
|
WorkspaceTrustContext.IsEnabled,
|
|
@@ -82,7 +82,7 @@ viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
|
82
82
|
});
|
|
83
83
|
viewsRegistry.registerViews([{
|
|
84
84
|
id: VIEW_PANE_ID,
|
|
85
|
-
name: ( localize2(
|
|
85
|
+
name: ( localize2(2871, 'Source Control')),
|
|
86
86
|
ctorDescriptor: ( (new SyncDescriptor(SCMViewPane))),
|
|
87
87
|
canToggleVisibility: true,
|
|
88
88
|
canMoveView: true,
|
|
@@ -91,7 +91,7 @@ viewsRegistry.registerViews([{
|
|
|
91
91
|
containerIcon: sourceControlViewIcon,
|
|
92
92
|
openCommandActionDescriptor: {
|
|
93
93
|
id: viewContainer.id,
|
|
94
|
-
mnemonicTitle: ( localize(
|
|
94
|
+
mnemonicTitle: ( localize(2875, "Source &&Control")),
|
|
95
95
|
keybindings: {
|
|
96
96
|
primary: 0,
|
|
97
97
|
win: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyG },
|
|
@@ -103,7 +103,7 @@ viewsRegistry.registerViews([{
|
|
|
103
103
|
}], viewContainer);
|
|
104
104
|
viewsRegistry.registerViews([{
|
|
105
105
|
id: REPOSITORIES_VIEW_PANE_ID,
|
|
106
|
-
name: ( localize2(
|
|
106
|
+
name: ( localize2(2876, "Source Control Repositories")),
|
|
107
107
|
ctorDescriptor: ( (new SyncDescriptor(SCMRepositoriesViewPane))),
|
|
108
108
|
canToggleVisibility: true,
|
|
109
109
|
hideByDefault: true,
|
|
@@ -118,7 +118,7 @@ viewsRegistry.registerViews([{
|
|
|
118
118
|
}], viewContainer);
|
|
119
119
|
viewsRegistry.registerViews([{
|
|
120
120
|
id: HISTORY_VIEW_PANE_ID,
|
|
121
|
-
name: ( localize2(
|
|
121
|
+
name: ( localize2(2877, "Source Control Graph")),
|
|
122
122
|
ctorDescriptor: ( (new SyncDescriptor(SCMHistoryViewPane))),
|
|
123
123
|
canToggleVisibility: true,
|
|
124
124
|
canMoveView: true,
|
|
@@ -138,7 +138,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
138
138
|
( (Registry.as(Extensions$2.Configuration))).registerConfiguration({
|
|
139
139
|
id: 'scm',
|
|
140
140
|
order: 5,
|
|
141
|
-
title: ( localize(
|
|
141
|
+
title: ( localize(2878, "Source Control")),
|
|
142
142
|
type: 'object',
|
|
143
143
|
scope: ConfigurationScope.RESOURCE,
|
|
144
144
|
properties: {
|
|
@@ -146,21 +146,21 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
146
146
|
type: 'string',
|
|
147
147
|
enum: ['all', 'gutter', 'overview', 'minimap', 'none'],
|
|
148
148
|
enumDescriptions: [
|
|
149
|
-
( localize(
|
|
150
|
-
( localize(
|
|
151
|
-
( localize(
|
|
152
|
-
( localize(
|
|
153
|
-
( localize(
|
|
149
|
+
( localize(2879, "Show the diff decorations in all available locations.")),
|
|
150
|
+
( localize(2880, "Show the diff decorations only in the editor gutter.")),
|
|
151
|
+
( localize(2881, "Show the diff decorations only in the overview ruler.")),
|
|
152
|
+
( localize(2882, "Show the diff decorations only in the minimap.")),
|
|
153
|
+
( localize(2883, "Do not show the diff decorations."))
|
|
154
154
|
],
|
|
155
155
|
default: 'all',
|
|
156
|
-
description: ( localize(
|
|
156
|
+
description: ( localize(2884, "Controls diff decorations in the editor."))
|
|
157
157
|
},
|
|
158
158
|
'scm.diffDecorationsGutterWidth': {
|
|
159
159
|
type: 'number',
|
|
160
160
|
enum: [1, 2, 3, 4, 5],
|
|
161
161
|
default: 3,
|
|
162
162
|
description: ( localize(
|
|
163
|
-
|
|
163
|
+
2885,
|
|
164
164
|
"Controls the width(px) of diff decorations in gutter (added & modified)."
|
|
165
165
|
))
|
|
166
166
|
},
|
|
@@ -168,11 +168,11 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
168
168
|
type: 'string',
|
|
169
169
|
enum: ['always', 'hover'],
|
|
170
170
|
enumDescriptions: [
|
|
171
|
-
( localize(
|
|
172
|
-
( localize(
|
|
171
|
+
( localize(2886, "Show the diff decorator in the gutter at all times.")),
|
|
172
|
+
( localize(2887, "Show the diff decorator in the gutter only on hover."))
|
|
173
173
|
],
|
|
174
174
|
description: ( localize(
|
|
175
|
-
|
|
175
|
+
2888,
|
|
176
176
|
"Controls the visibility of the Source Control diff decorator in the gutter."
|
|
177
177
|
)),
|
|
178
178
|
default: 'always'
|
|
@@ -181,27 +181,27 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
181
181
|
type: 'string',
|
|
182
182
|
enum: ['diff', 'none'],
|
|
183
183
|
enumDescriptions: [
|
|
184
|
-
( localize(
|
|
185
|
-
( localize(
|
|
184
|
+
( localize(2889, "Show the inline diff Peek view on click.")),
|
|
185
|
+
( localize(2890, "Do nothing."))
|
|
186
186
|
],
|
|
187
|
-
description: ( localize(
|
|
187
|
+
description: ( localize(2891, "Controls the behavior of Source Control diff gutter decorations.")),
|
|
188
188
|
default: 'diff'
|
|
189
189
|
},
|
|
190
190
|
'scm.diffDecorationsGutterPattern': {
|
|
191
191
|
type: 'object',
|
|
192
192
|
description: ( localize(
|
|
193
|
-
|
|
193
|
+
2892,
|
|
194
194
|
"Controls whether a pattern is used for the diff decorations in gutter."
|
|
195
195
|
)),
|
|
196
196
|
additionalProperties: false,
|
|
197
197
|
properties: {
|
|
198
198
|
'added': {
|
|
199
199
|
type: 'boolean',
|
|
200
|
-
description: ( localize(
|
|
200
|
+
description: ( localize(2893, "Use pattern for the diff decorations in gutter for added lines.")),
|
|
201
201
|
},
|
|
202
202
|
'modified': {
|
|
203
203
|
type: 'boolean',
|
|
204
|
-
description: ( localize(
|
|
204
|
+
description: ( localize(2894, "Use pattern for the diff decorations in gutter for modified lines.")),
|
|
205
205
|
},
|
|
206
206
|
},
|
|
207
207
|
default: {
|
|
@@ -213,12 +213,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
213
213
|
type: 'string',
|
|
214
214
|
enum: ['true', 'false', 'inherit'],
|
|
215
215
|
enumDescriptions: [
|
|
216
|
-
( localize(
|
|
217
|
-
( localize(
|
|
218
|
-
( localize(
|
|
216
|
+
( localize(2895, "Ignore leading and trailing whitespace.")),
|
|
217
|
+
( localize(2896, "Do not ignore leading and trailing whitespace.")),
|
|
218
|
+
( localize(2897, "Inherit from `diffEditor.ignoreTrimWhitespace`."))
|
|
219
219
|
],
|
|
220
220
|
description: ( localize(
|
|
221
|
-
|
|
221
|
+
2898,
|
|
222
222
|
"Controls whether leading and trailing whitespace is ignored in Source Control diff gutter decorations."
|
|
223
223
|
)),
|
|
224
224
|
default: 'false'
|
|
@@ -226,7 +226,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
226
226
|
'scm.alwaysShowActions': {
|
|
227
227
|
type: 'boolean',
|
|
228
228
|
description: ( localize(
|
|
229
|
-
|
|
229
|
+
2899,
|
|
230
230
|
"Controls whether inline actions are always visible in the Source Control view."
|
|
231
231
|
)),
|
|
232
232
|
default: false
|
|
@@ -235,12 +235,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
235
235
|
type: 'string',
|
|
236
236
|
enum: ['all', 'focused', 'off'],
|
|
237
237
|
enumDescriptions: [
|
|
238
|
-
( localize(
|
|
239
|
-
( localize(
|
|
240
|
-
( localize(
|
|
238
|
+
( localize(2900, "Show the sum of all Source Control Provider count badges.")),
|
|
239
|
+
( localize(2901, "Show the count badge of the focused Source Control Provider.")),
|
|
240
|
+
( localize(2902, "Disable the Source Control count badge."))
|
|
241
241
|
],
|
|
242
242
|
description: ( localize(
|
|
243
|
-
|
|
243
|
+
2903,
|
|
244
244
|
"Controls the count badge on the Source Control icon on the Activity Bar."
|
|
245
245
|
)),
|
|
246
246
|
default: 'all'
|
|
@@ -249,12 +249,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
249
249
|
type: 'string',
|
|
250
250
|
enum: ['hidden', 'auto', 'visible'],
|
|
251
251
|
enumDescriptions: [
|
|
252
|
-
( localize(
|
|
253
|
-
( localize(
|
|
254
|
-
( localize(
|
|
252
|
+
( localize(2904, "Hide Source Control Provider count badges.")),
|
|
253
|
+
( localize(2905, "Only show count badge for Source Control Provider when non-zero.")),
|
|
254
|
+
( localize(2906, "Show Source Control Provider count badges."))
|
|
255
255
|
],
|
|
256
256
|
markdownDescription: ( localize(
|
|
257
|
-
|
|
257
|
+
2907,
|
|
258
258
|
"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
259
|
'\`#scm.alwaysShowRepositories#\`'
|
|
260
260
|
)),
|
|
@@ -264,22 +264,22 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
264
264
|
type: 'string',
|
|
265
265
|
enum: ['tree', 'list'],
|
|
266
266
|
enumDescriptions: [
|
|
267
|
-
( localize(
|
|
268
|
-
( localize(
|
|
267
|
+
( localize(2908, "Show the repository changes as a tree.")),
|
|
268
|
+
( localize(2909, "Show the repository changes as a list."))
|
|
269
269
|
],
|
|
270
|
-
description: ( localize(
|
|
270
|
+
description: ( localize(2910, "Controls the default Source Control repository view mode.")),
|
|
271
271
|
default: 'list'
|
|
272
272
|
},
|
|
273
273
|
'scm.defaultViewSortKey': {
|
|
274
274
|
type: 'string',
|
|
275
275
|
enum: ['name', 'path', 'status'],
|
|
276
276
|
enumDescriptions: [
|
|
277
|
-
( localize(
|
|
278
|
-
( localize(
|
|
279
|
-
( localize(
|
|
277
|
+
( localize(2911, "Sort the repository changes by file name.")),
|
|
278
|
+
( localize(2912, "Sort the repository changes by path.")),
|
|
279
|
+
( localize(2913, "Sort the repository changes by Source Control status."))
|
|
280
280
|
],
|
|
281
281
|
description: ( localize(
|
|
282
|
-
|
|
282
|
+
2914,
|
|
283
283
|
"Controls the default Source Control repository changes sort order when viewed as a list."
|
|
284
284
|
)),
|
|
285
285
|
default: 'path'
|
|
@@ -287,7 +287,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
287
287
|
'scm.autoReveal': {
|
|
288
288
|
type: 'boolean',
|
|
289
289
|
description: ( localize(
|
|
290
|
-
|
|
290
|
+
2915,
|
|
291
291
|
"Controls whether the Source Control view should automatically reveal and select files when opening them."
|
|
292
292
|
)),
|
|
293
293
|
default: true
|
|
@@ -295,20 +295,20 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
295
295
|
'scm.inputFontFamily': {
|
|
296
296
|
type: 'string',
|
|
297
297
|
markdownDescription: ( localize(
|
|
298
|
-
|
|
298
|
+
2916,
|
|
299
299
|
"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
300
|
)),
|
|
301
301
|
default: 'default'
|
|
302
302
|
},
|
|
303
303
|
'scm.inputFontSize': {
|
|
304
304
|
type: 'number',
|
|
305
|
-
markdownDescription: ( localize(
|
|
305
|
+
markdownDescription: ( localize(2917, "Controls the font size for the input message in pixels.")),
|
|
306
306
|
default: 13
|
|
307
307
|
},
|
|
308
308
|
'scm.inputMaxLineCount': {
|
|
309
309
|
type: 'number',
|
|
310
310
|
markdownDescription: ( localize(
|
|
311
|
-
|
|
311
|
+
2918,
|
|
312
312
|
"Controls the maximum number of lines that the input will auto-grow to."
|
|
313
313
|
)),
|
|
314
314
|
minimum: 1,
|
|
@@ -318,7 +318,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
318
318
|
'scm.inputMinLineCount': {
|
|
319
319
|
type: 'number',
|
|
320
320
|
markdownDescription: ( localize(
|
|
321
|
-
|
|
321
|
+
2919,
|
|
322
322
|
"Controls the minimum number of lines that the input will auto-grow from."
|
|
323
323
|
)),
|
|
324
324
|
minimum: 1,
|
|
@@ -328,7 +328,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
328
328
|
'scm.alwaysShowRepositories': {
|
|
329
329
|
type: 'boolean',
|
|
330
330
|
markdownDescription: ( localize(
|
|
331
|
-
|
|
331
|
+
2920,
|
|
332
332
|
"Controls whether repositories should always be visible in the Source Control view."
|
|
333
333
|
)),
|
|
334
334
|
default: false
|
|
@@ -338,20 +338,20 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
338
338
|
enum: ['discovery time', 'name', 'path'],
|
|
339
339
|
enumDescriptions: [
|
|
340
340
|
( localize(
|
|
341
|
-
|
|
341
|
+
2921,
|
|
342
342
|
"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
343
|
)),
|
|
344
344
|
( localize(
|
|
345
|
-
|
|
345
|
+
2922,
|
|
346
346
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
|
|
347
347
|
)),
|
|
348
348
|
( localize(
|
|
349
|
-
|
|
349
|
+
2923,
|
|
350
350
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository path."
|
|
351
351
|
))
|
|
352
352
|
],
|
|
353
353
|
description: ( localize(
|
|
354
|
-
|
|
354
|
+
2924,
|
|
355
355
|
"Controls the sort order of the repositories in the source control repositories view."
|
|
356
356
|
)),
|
|
357
357
|
default: 'discovery time'
|
|
@@ -359,7 +359,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
359
359
|
'scm.repositories.visible': {
|
|
360
360
|
type: 'number',
|
|
361
361
|
description: ( localize(
|
|
362
|
-
|
|
362
|
+
2925,
|
|
363
363
|
"Controls how many repositories are visible in the Source Control Repositories section. Set to 0, to be able to manually resize the view."
|
|
364
364
|
)),
|
|
365
365
|
default: 10
|
|
@@ -367,7 +367,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
367
367
|
'scm.showActionButton': {
|
|
368
368
|
type: 'boolean',
|
|
369
369
|
markdownDescription: ( localize(
|
|
370
|
-
|
|
370
|
+
2926,
|
|
371
371
|
"Controls whether an action button can be shown in the Source Control view."
|
|
372
372
|
)),
|
|
373
373
|
default: true
|
|
@@ -375,7 +375,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
375
375
|
'scm.showInputActionButton': {
|
|
376
376
|
type: 'boolean',
|
|
377
377
|
markdownDescription: ( localize(
|
|
378
|
-
|
|
378
|
+
2927,
|
|
379
379
|
"Controls whether an action button can be shown in the Source Control input."
|
|
380
380
|
)),
|
|
381
381
|
default: true
|
|
@@ -383,7 +383,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
383
383
|
'scm.workingSets.enabled': {
|
|
384
384
|
type: 'boolean',
|
|
385
385
|
description: ( localize(
|
|
386
|
-
|
|
386
|
+
2928,
|
|
387
387
|
"Controls whether to store editor working sets when switching between source control history item groups."
|
|
388
388
|
)),
|
|
389
389
|
default: false
|
|
@@ -393,16 +393,16 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
393
393
|
enum: ['empty', 'current'],
|
|
394
394
|
enumDescriptions: [
|
|
395
395
|
( localize(
|
|
396
|
-
|
|
396
|
+
2929,
|
|
397
397
|
"Use an empty working set when switching to a source control history item group that does not have a working set."
|
|
398
398
|
)),
|
|
399
399
|
( localize(
|
|
400
|
-
|
|
400
|
+
2930,
|
|
401
401
|
"Use the current working set when switching to a source control history item group that does not have a working set."
|
|
402
402
|
))
|
|
403
403
|
],
|
|
404
404
|
description: ( localize(
|
|
405
|
-
|
|
405
|
+
2931,
|
|
406
406
|
"Controls the default working set to use when switching to a source control history item group that does not have a working set."
|
|
407
407
|
)),
|
|
408
408
|
default: 'current'
|
|
@@ -410,7 +410,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
410
410
|
'scm.compactFolders': {
|
|
411
411
|
type: 'boolean',
|
|
412
412
|
description: ( localize(
|
|
413
|
-
|
|
413
|
+
2932,
|
|
414
414
|
"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
415
|
)),
|
|
416
416
|
default: true
|
|
@@ -419,7 +419,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
419
419
|
});
|
|
420
420
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
421
421
|
id: 'scm.acceptInput',
|
|
422
|
-
metadata: { description: ( localize(
|
|
422
|
+
metadata: { description: ( localize(2933, "Source Control: Accept Input")), args: [] },
|
|
423
423
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
424
424
|
when: ( (ContextKeyExpr.has('scmRepository'))),
|
|
425
425
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
@@ -459,7 +459,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
459
459
|
}
|
|
460
460
|
});
|
|
461
461
|
const viewNextCommitCommand = {
|
|
462
|
-
description: { description: ( localize(
|
|
462
|
+
description: { description: ( localize(2934, "Source Control: View Next Commit")), args: [] },
|
|
463
463
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
464
464
|
handler: (accessor) => {
|
|
465
465
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -471,7 +471,7 @@ const viewNextCommitCommand = {
|
|
|
471
471
|
}
|
|
472
472
|
};
|
|
473
473
|
const viewPreviousCommitCommand = {
|
|
474
|
-
description: { description: ( localize(
|
|
474
|
+
description: { description: ( localize(2935, "Source Control: View Previous Commit")), args: [] },
|
|
475
475
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
476
476
|
handler: (accessor) => {
|
|
477
477
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -548,7 +548,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
548
548
|
group: '100_end',
|
|
549
549
|
command: {
|
|
550
550
|
id: 'scm.openInTerminal',
|
|
551
|
-
title: ( localize(
|
|
551
|
+
title: ( localize(2936, "Open in External Terminal"))
|
|
552
552
|
},
|
|
553
553
|
when: ( (ContextKeyExpr.and(
|
|
554
554
|
(ContextKeyExpr.equals('scmProviderHasRootUri', true)),
|
|
@@ -562,7 +562,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
562
562
|
group: '100_end',
|
|
563
563
|
command: {
|
|
564
564
|
id: 'scm.openInIntegratedTerminal',
|
|
565
|
-
title: ( localize(
|
|
565
|
+
title: ( localize(2937, "Open in Integrated Terminal"))
|
|
566
566
|
},
|
|
567
567
|
when: ( (ContextKeyExpr.and(
|
|
568
568
|
(ContextKeyExpr.equals('scmProviderHasRootUri', true)),
|
|
@@ -20,14 +20,14 @@ const SWIMLANE_HEIGHT = 22;
|
|
|
20
20
|
const SWIMLANE_WIDTH = 11;
|
|
21
21
|
const CIRCLE_RADIUS = 4;
|
|
22
22
|
const SWIMLANE_CURVE_RADIUS = 5;
|
|
23
|
-
const historyItemGroupLocal = registerColor('scmGraph.historyItemGroupLocal', chartsBlue, ( localize(
|
|
24
|
-
const historyItemGroupRemote = registerColor('scmGraph.historyItemGroupRemote', chartsPurple, ( localize(
|
|
25
|
-
const historyItemGroupBase = registerColor('scmGraph.historyItemGroupBase', chartsOrange, ( localize(
|
|
26
|
-
const historyItemGroupHoverLabelForeground = registerColor('scmGraph.historyItemHoverLabelForeground', buttonForeground, ( localize(
|
|
23
|
+
const historyItemGroupLocal = registerColor('scmGraph.historyItemGroupLocal', chartsBlue, ( localize(10520, "Local history item group color.")));
|
|
24
|
+
const historyItemGroupRemote = registerColor('scmGraph.historyItemGroupRemote', chartsPurple, ( localize(10521, "Remote history item group color.")));
|
|
25
|
+
const historyItemGroupBase = registerColor('scmGraph.historyItemGroupBase', chartsOrange, ( localize(10522, "Base history item group color.")));
|
|
26
|
+
const historyItemGroupHoverLabelForeground = registerColor('scmGraph.historyItemHoverLabelForeground', buttonForeground, ( localize(10523, "History item hover label foreground color.")));
|
|
27
27
|
const colorRegistry = [
|
|
28
|
-
registerColor('scmGraph.foreground1', chartsGreen, ( localize(
|
|
29
|
-
registerColor('scmGraph.foreground2', chartsRed, ( localize(
|
|
30
|
-
registerColor('scmGraph.foreground3', chartsYellow, ( localize(
|
|
28
|
+
registerColor('scmGraph.foreground1', chartsGreen, ( localize(10524, "Source control graph foreground color (1)."))),
|
|
29
|
+
registerColor('scmGraph.foreground2', chartsRed, ( localize(10525, "Source control graph foreground color (2)."))),
|
|
30
|
+
registerColor('scmGraph.foreground3', chartsYellow, ( localize(10526, "Source control graph foreground color (3)."))),
|
|
31
31
|
];
|
|
32
32
|
function getLabelColorIdentifier(historyItem, colorMap) {
|
|
33
33
|
for (const label of historyItem.labels ?? []) {
|
|
@@ -66,13 +66,13 @@ import { WorkbenchToolBar } from 'vscode/vscode/vs/platform/actions/browser/tool
|
|
|
66
66
|
import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
|
|
67
67
|
|
|
68
68
|
var RepositoryRenderer_1, HistoryItemRenderer_1, HistoryItemLoadMoreRenderer_1;
|
|
69
|
-
const historyItemAdditionsForeground = registerColor('scmGraph.historyItemHoverAdditionsForeground', 'gitDecoration.addedResourceForeground', ( localize(
|
|
70
|
-
const historyItemDeletionsForeground = registerColor('scmGraph.historyItemHoverDeletionsForeground', 'gitDecoration.deletedResourceForeground', ( localize(
|
|
69
|
+
const historyItemAdditionsForeground = registerColor('scmGraph.historyItemHoverAdditionsForeground', 'gitDecoration.addedResourceForeground', ( localize(6467, "History item hover additions foreground color.")));
|
|
70
|
+
const historyItemDeletionsForeground = registerColor('scmGraph.historyItemHoverDeletionsForeground', 'gitDecoration.deletedResourceForeground', ( localize(6468, "History item hover deletions foreground color.")));
|
|
71
71
|
registerAction2(class extends ViewAction {
|
|
72
72
|
constructor() {
|
|
73
73
|
super({
|
|
74
74
|
id: 'workbench.scm.action.refreshGraph',
|
|
75
|
-
title: ( localize(
|
|
75
|
+
title: ( localize(6469, "Refresh")),
|
|
76
76
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
77
77
|
f1: false,
|
|
78
78
|
icon: Codicon.refresh,
|
|
@@ -265,19 +265,19 @@ let HistoryItemRenderer = class HistoryItemRenderer {
|
|
|
265
265
|
if (historyItem.statistics) {
|
|
266
266
|
markdown.appendMarkdown(`---\n\n`);
|
|
267
267
|
markdown.appendMarkdown(`<span>${historyItem.statistics.files === 1 ?
|
|
268
|
-
( localize(
|
|
269
|
-
( localize(
|
|
268
|
+
( localize(6470, "{0} file changed", historyItem.statistics.files)) :
|
|
269
|
+
( localize(6471, "{0} files changed", historyItem.statistics.files))}</span>`);
|
|
270
270
|
if (historyItem.statistics.insertions) {
|
|
271
271
|
const historyItemAdditionsForegroundColor = colorTheme.getColor(historyItemAdditionsForeground);
|
|
272
272
|
markdown.appendMarkdown(`, <span style="color:${historyItemAdditionsForegroundColor};">${historyItem.statistics.insertions === 1 ?
|
|
273
|
-
( localize(
|
|
274
|
-
( localize(
|
|
273
|
+
( localize(6472, "{0} insertion{1}", historyItem.statistics.insertions, '(+)')) :
|
|
274
|
+
( localize(6473, "{0} insertions{1}", historyItem.statistics.insertions, '(+)'))}</span>`);
|
|
275
275
|
}
|
|
276
276
|
if (historyItem.statistics.deletions) {
|
|
277
277
|
const historyItemDeletionsForegroundColor = colorTheme.getColor(historyItemDeletionsForeground);
|
|
278
278
|
markdown.appendMarkdown(`, <span style="color:${historyItemDeletionsForegroundColor};">${historyItem.statistics.deletions === 1 ?
|
|
279
|
-
( localize(
|
|
280
|
-
( localize(
|
|
279
|
+
( localize(6474, "{0} deletion{1}", historyItem.statistics.deletions, '(-)')) :
|
|
280
|
+
( localize(6475, "{0} deletions{1}", historyItem.statistics.deletions, '(-)'))}</span>`);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
const labels = this.getLabels(element.repository);
|
|
@@ -349,7 +349,7 @@ let HistoryItemLoadMoreRenderer = class HistoryItemLoadMoreRenderer {
|
|
|
349
349
|
templateData.elementDisposables.add(autorun(reader => {
|
|
350
350
|
const loadingMore = this._loadingMore(element.element.repository).read(reader);
|
|
351
351
|
const icon = `$(${loadingMore ? 'loading~spin' : 'fold-down'})`;
|
|
352
|
-
templateData.historyItemPlaceholderLabel.setLabel(( localize(
|
|
352
|
+
templateData.historyItemPlaceholderLabel.setLabel(( localize(6476, "{0} Load More...", icon)));
|
|
353
353
|
}));
|
|
354
354
|
}
|
|
355
355
|
else {
|
|
@@ -443,7 +443,7 @@ SCMHistoryViewPaneActionRunner = ( (__decorate([
|
|
|
443
443
|
], SCMHistoryViewPaneActionRunner)));
|
|
444
444
|
class SCMHistoryTreeAccessibilityProvider {
|
|
445
445
|
getWidgetAriaLabel() {
|
|
446
|
-
return ( localize(
|
|
446
|
+
return ( localize(6477, "Source Control History"));
|
|
447
447
|
}
|
|
448
448
|
getAriaLabel(element) {
|
|
449
449
|
if (isSCMRepository(element)) {
|
|
@@ -779,7 +779,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
779
779
|
this.refresh(repository);
|
|
780
780
|
return;
|
|
781
781
|
}
|
|
782
|
-
const description = ( localize(
|
|
782
|
+
const description = ( localize(6478, "OUTDATED"));
|
|
783
783
|
this._setRepositoryDescription(this._isRepositoryNodeVisible() ? repository : undefined, description);
|
|
784
784
|
}));
|
|
785
785
|
this._repositories.set(repository, repositoryDisposables);
|
|
@@ -59,7 +59,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
|
|
|
59
59
|
return r.provider.label;
|
|
60
60
|
},
|
|
61
61
|
getWidgetAriaLabel() {
|
|
62
|
-
return ( localize(
|
|
62
|
+
return ( localize(6464, "Source Control Repositories"));
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
});
|
|
@@ -120,10 +120,10 @@ import { fromNow } from 'vscode/vscode/vs/base/common/date';
|
|
|
120
120
|
import { observableConfigValue } from 'vscode/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
121
121
|
|
|
122
122
|
var ActionButtonRenderer_1, InputRenderer_1, ResourceGroupRenderer_1, ResourceRenderer_1, HistoryItemGroupRenderer_1, HistoryItemRenderer_1, HistoryItem2Renderer_1, HistoryItemChangeRenderer_1, SeparatorRenderer_1, SCMInputWidget_1;
|
|
123
|
-
const historyItemAdditionsForeground = registerColor('scm.historyItemAdditionsForeground', 'gitDecoration.addedResourceForeground', ( localize(
|
|
124
|
-
const historyItemDeletionsForeground = registerColor('scm.historyItemDeletionsForeground', 'gitDecoration.deletedResourceForeground', ( localize(
|
|
125
|
-
registerColor('scm.historyItemStatisticsBorder', ( (transparent(foreground, 0.2))), ( localize(
|
|
126
|
-
registerColor('scm.historyItemSelectedStatisticsBorder', ( (transparent(listActiveSelectionForeground, 0.2))), ( localize(
|
|
123
|
+
const historyItemAdditionsForeground = registerColor('scm.historyItemAdditionsForeground', 'gitDecoration.addedResourceForeground', ( localize(6435, "History item additions foreground color.")));
|
|
124
|
+
const historyItemDeletionsForeground = registerColor('scm.historyItemDeletionsForeground', 'gitDecoration.deletedResourceForeground', ( localize(6436, "History item deletions foreground color.")));
|
|
125
|
+
registerColor('scm.historyItemStatisticsBorder', ( (transparent(foreground, 0.2))), ( localize(6437, "History item statistics border color.")));
|
|
126
|
+
registerColor('scm.historyItemSelectedStatisticsBorder', ( (transparent(listActiveSelectionForeground, 0.2))), ( localize(6438, "History item selected statistics border color.")));
|
|
127
127
|
function processResourceFilterData(uri, filterData) {
|
|
128
128
|
if (!filterData) {
|
|
129
129
|
return [undefined, undefined];
|
|
@@ -810,12 +810,12 @@ let HistoryItemRenderer = class HistoryItemRenderer {
|
|
|
810
810
|
if (historyItem.statistics) {
|
|
811
811
|
const statsAriaLabel = [
|
|
812
812
|
historyItem.statistics.files === 1 ?
|
|
813
|
-
( localize(
|
|
814
|
-
( localize(
|
|
815
|
-
historyItem.statistics.insertions === 1 ? ( localize(
|
|
816
|
-
historyItem.statistics.insertions > 1 ? ( localize(
|
|
817
|
-
historyItem.statistics.deletions === 1 ? ( localize(
|
|
818
|
-
historyItem.statistics.deletions > 1 ? ( localize(
|
|
813
|
+
( localize(6439, "{0} file changed", historyItem.statistics.files)) :
|
|
814
|
+
( localize(6440, "{0} files changed", historyItem.statistics.files)),
|
|
815
|
+
historyItem.statistics.insertions === 1 ? ( localize(6441, "{0} insertion{1}", historyItem.statistics.insertions, '(+)')) :
|
|
816
|
+
historyItem.statistics.insertions > 1 ? ( localize(6442, "{0} insertions{1}", historyItem.statistics.insertions, '(+)')) : '',
|
|
817
|
+
historyItem.statistics.deletions === 1 ? ( localize(6443, "{0} deletion{1}", historyItem.statistics.deletions, '(-)')) :
|
|
818
|
+
historyItem.statistics.deletions > 1 ? ( localize(6444, "{0} deletions{1}", historyItem.statistics.deletions, '(-)')) : ''
|
|
819
819
|
];
|
|
820
820
|
const statsTitle = statsAriaLabel.filter(l => l !== '').join(', ');
|
|
821
821
|
templateData.statsContainer.setAttribute('aria-label', statsTitle);
|
|
@@ -903,19 +903,19 @@ let HistoryItem2Renderer = class HistoryItem2Renderer {
|
|
|
903
903
|
if (historyItem.statistics) {
|
|
904
904
|
markdown.appendMarkdown(`---\n\n`);
|
|
905
905
|
markdown.appendMarkdown(`<span>${historyItem.statistics.files === 1 ?
|
|
906
|
-
( localize(
|
|
907
|
-
( localize(
|
|
906
|
+
( localize(6439, "{0} file changed", historyItem.statistics.files)) :
|
|
907
|
+
( localize(6440, "{0} files changed", historyItem.statistics.files))}</span>`);
|
|
908
908
|
if (historyItem.statistics.insertions) {
|
|
909
909
|
const historyItemAdditionsForegroundColor = colorTheme.getColor(historyItemAdditionsForeground);
|
|
910
910
|
markdown.appendMarkdown(`, <span style="color:${historyItemAdditionsForegroundColor};">${historyItem.statistics.insertions === 1 ?
|
|
911
|
-
( localize(
|
|
912
|
-
( localize(
|
|
911
|
+
( localize(6441, "{0} insertion{1}", historyItem.statistics.insertions, '(+)')) :
|
|
912
|
+
( localize(6442, "{0} insertions{1}", historyItem.statistics.insertions, '(+)'))}</span>`);
|
|
913
913
|
}
|
|
914
914
|
if (historyItem.statistics.deletions) {
|
|
915
915
|
const historyItemDeletionsForegroundColor = colorTheme.getColor(historyItemDeletionsForeground);
|
|
916
916
|
markdown.appendMarkdown(`, <span style="color:${historyItemDeletionsForegroundColor};">${historyItem.statistics.deletions === 1 ?
|
|
917
|
-
( localize(
|
|
918
|
-
( localize(
|
|
917
|
+
( localize(6443, "{0} deletion{1}", historyItem.statistics.deletions, '(-)')) :
|
|
918
|
+
( localize(6444, "{0} deletions{1}", historyItem.statistics.deletions, '(-)'))}</span>`);
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
921
|
if (historyItem.labels) {
|
|
@@ -1342,7 +1342,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
1342
1342
|
this.labelService = labelService;
|
|
1343
1343
|
}
|
|
1344
1344
|
getWidgetAriaLabel() {
|
|
1345
|
-
return ( localize(
|
|
1345
|
+
return ( localize(6445, "Source Control Management"));
|
|
1346
1346
|
}
|
|
1347
1347
|
getAriaLabel(element) {
|
|
1348
1348
|
if (ResourceTree.isResourceNode(element)) {
|
|
@@ -1352,7 +1352,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
1352
1352
|
return `${element.provider.name} ${element.provider.label}`;
|
|
1353
1353
|
}
|
|
1354
1354
|
else if (isSCMInput(element)) {
|
|
1355
|
-
return ( localize(
|
|
1355
|
+
return ( localize(6446, "Source Control Input"));
|
|
1356
1356
|
}
|
|
1357
1357
|
else if (isSCMActionButton(element)) {
|
|
1358
1358
|
return element.button?.command.title ?? '';
|
|
@@ -1431,7 +1431,7 @@ const ContextKeys = {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
};
|
|
1433
1433
|
MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
1434
|
-
title: ( localize(
|
|
1434
|
+
title: ( localize(6447, "View & Sort")),
|
|
1435
1435
|
submenu: Menus.ViewSort,
|
|
1436
1436
|
when: ( (ContextKeyExpr.and(
|
|
1437
1437
|
(ContextKeyExpr.equals('view', VIEW_PANE_ID)),
|
|
@@ -1441,7 +1441,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
|
1441
1441
|
order: 1
|
|
1442
1442
|
});
|
|
1443
1443
|
MenuRegistry.appendMenuItem(Menus.ViewSort, {
|
|
1444
|
-
title: ( localize(
|
|
1444
|
+
title: ( localize(6448, "Repositories")),
|
|
1445
1445
|
submenu: Menus.Repositories,
|
|
1446
1446
|
when: ContextKeyExpr.greater(ContextKeys.RepositoryCount.key, 1),
|
|
1447
1447
|
group: '0_repositories'
|
|
@@ -1450,7 +1450,7 @@ registerAction2(class extends Action2 {
|
|
|
1450
1450
|
constructor() {
|
|
1451
1451
|
super({
|
|
1452
1452
|
id: 'workbench.scm.action.scm.viewChanges',
|
|
1453
|
-
title: ( localize(
|
|
1453
|
+
title: ( localize(6449, "View Changes")),
|
|
1454
1454
|
f1: false,
|
|
1455
1455
|
menu: [
|
|
1456
1456
|
{
|
|
@@ -1483,7 +1483,7 @@ registerAction2(class extends Action2 {
|
|
|
1483
1483
|
const title = historyItems.length === 1 ?
|
|
1484
1484
|
`${historyItems[0].id.substring(0, 8)} - ${historyItems[0].message}` :
|
|
1485
1485
|
( localize(
|
|
1486
|
-
|
|
1486
|
+
6450,
|
|
1487
1487
|
"All Changes ({0} ↔ {1})",
|
|
1488
1488
|
historyItemLast.id.substring(0, 8),
|
|
1489
1489
|
historyItem.id.substring(0, 8)
|
|
@@ -1585,7 +1585,7 @@ class SetListViewModeAction extends ViewAction {
|
|
|
1585
1585
|
constructor(id = 'workbench.scm.action.setListViewMode', menu = {}) {
|
|
1586
1586
|
super({
|
|
1587
1587
|
id,
|
|
1588
|
-
title: ( localize(
|
|
1588
|
+
title: ( localize(6451, "View as List")),
|
|
1589
1589
|
viewId: VIEW_PANE_ID,
|
|
1590
1590
|
f1: false,
|
|
1591
1591
|
icon: Codicon.listTree,
|
|
@@ -1615,7 +1615,7 @@ class SetTreeViewModeAction extends ViewAction {
|
|
|
1615
1615
|
constructor(id = 'workbench.scm.action.setTreeViewMode', menu = {}) {
|
|
1616
1616
|
super({
|
|
1617
1617
|
id,
|
|
1618
|
-
title: ( localize(
|
|
1618
|
+
title: ( localize(6452, "View as Tree")),
|
|
1619
1619
|
viewId: VIEW_PANE_ID,
|
|
1620
1620
|
f1: false,
|
|
1621
1621
|
icon: Codicon.listFlat,
|
|
@@ -1672,17 +1672,17 @@ class RepositorySortAction extends ViewAction {
|
|
|
1672
1672
|
}
|
|
1673
1673
|
class RepositorySortByDiscoveryTimeAction extends RepositorySortAction {
|
|
1674
1674
|
constructor() {
|
|
1675
|
-
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(
|
|
1675
|
+
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(6453, "Sort by Discovery Time")));
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
class RepositorySortByNameAction extends RepositorySortAction {
|
|
1679
1679
|
constructor() {
|
|
1680
|
-
super(ISCMRepositorySortKey.Name, ( localize(
|
|
1680
|
+
super(ISCMRepositorySortKey.Name, ( localize(6454, "Sort by Name")));
|
|
1681
1681
|
}
|
|
1682
1682
|
}
|
|
1683
1683
|
class RepositorySortByPathAction extends RepositorySortAction {
|
|
1684
1684
|
constructor() {
|
|
1685
|
-
super(ISCMRepositorySortKey.Path, ( localize(
|
|
1685
|
+
super(ISCMRepositorySortKey.Path, ( localize(6455, "Sort by Path")));
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
registerAction2(RepositorySortByDiscoveryTimeAction);
|
|
@@ -1707,17 +1707,17 @@ class SetSortKeyAction extends ViewAction {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
class SetSortByNameAction extends SetSortKeyAction {
|
|
1709
1709
|
constructor() {
|
|
1710
|
-
super(ViewSortKey.Name, ( localize(
|
|
1710
|
+
super(ViewSortKey.Name, ( localize(6456, "Sort Changes by Name")));
|
|
1711
1711
|
}
|
|
1712
1712
|
}
|
|
1713
1713
|
class SetSortByPathAction extends SetSortKeyAction {
|
|
1714
1714
|
constructor() {
|
|
1715
|
-
super(ViewSortKey.Path, ( localize(
|
|
1715
|
+
super(ViewSortKey.Path, ( localize(6457, "Sort Changes by Path")));
|
|
1716
1716
|
}
|
|
1717
1717
|
}
|
|
1718
1718
|
class SetSortByStatusAction extends SetSortKeyAction {
|
|
1719
1719
|
constructor() {
|
|
1720
|
-
super(ViewSortKey.Status, ( localize(
|
|
1720
|
+
super(ViewSortKey.Status, ( localize(6458, "Sort Changes by Status")));
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
1723
|
registerAction2(SetSortByNameAction);
|
|
@@ -1727,7 +1727,7 @@ class CollapseAllRepositoriesAction extends ViewAction {
|
|
|
1727
1727
|
constructor() {
|
|
1728
1728
|
super({
|
|
1729
1729
|
id: `workbench.scm.action.collapseAllRepositories`,
|
|
1730
|
-
title: ( localize(
|
|
1730
|
+
title: ( localize(6459, "Collapse All Repositories")),
|
|
1731
1731
|
viewId: VIEW_PANE_ID,
|
|
1732
1732
|
f1: false,
|
|
1733
1733
|
icon: Codicon.collapseAll,
|
|
@@ -1750,7 +1750,7 @@ class ExpandAllRepositoriesAction extends ViewAction {
|
|
|
1750
1750
|
constructor() {
|
|
1751
1751
|
super({
|
|
1752
1752
|
id: `workbench.scm.action.expandAllRepositories`,
|
|
1753
|
-
title: ( localize(
|
|
1753
|
+
title: ( localize(6460, "Expand All Repositories")),
|
|
1754
1754
|
viewId: VIEW_PANE_ID,
|
|
1755
1755
|
f1: false,
|
|
1756
1756
|
icon: Codicon.expandAll,
|
|
@@ -1829,10 +1829,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
1829
1829
|
this._onDidChange = ( (new Emitter()));
|
|
1830
1830
|
this.onDidChange = this._onDidChange.event;
|
|
1831
1831
|
this._disposables = this._register(( (new MutableDisposable())));
|
|
1832
|
-
this._dropdownAction = ( (new Action('scmInputMoreActions', ( localize(
|
|
1832
|
+
this._dropdownAction = ( (new Action('scmInputMoreActions', ( localize(6461, "More Actions...")), 'codicon-chevron-down')));
|
|
1833
1833
|
this._cancelAction = ( (new MenuItemAction({
|
|
1834
1834
|
id: SCMInputWidgetCommandId.CancelAction,
|
|
1835
|
-
title: ( localize(
|
|
1835
|
+
title: ( localize(6462, "Cancel")),
|
|
1836
1836
|
icon: Codicon.debugStop,
|
|
1837
1837
|
}, undefined, undefined, undefined, undefined, contextKeyService, commandService)));
|
|
1838
1838
|
}
|
|
@@ -2283,7 +2283,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
2283
2283
|
}
|
|
2284
2284
|
const actionsContainer = append(validationContainer, $('.scm-editor-validation-actions'));
|
|
2285
2285
|
const actionbar = ( (new ActionBar(actionsContainer)));
|
|
2286
|
-
const action = ( (new Action('scmInputWidget.validationMessage.close', ( localize(
|
|
2286
|
+
const action = ( (new Action('scmInputWidget.validationMessage.close', ( localize(6463, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
2287
2287
|
this.contextViewService.hideContextView();
|
|
2288
2288
|
this.element.style.borderBottomLeftRadius = '2px';
|
|
2289
2289
|
this.element.style.borderBottomRightRadius = '2px';
|
|
@@ -26,7 +26,7 @@ let SCMViewPaneContainer = class SCMViewPaneContainer extends ViewPaneContainer
|
|
|
26
26
|
return 400;
|
|
27
27
|
}
|
|
28
28
|
getTitle() {
|
|
29
|
-
return ( localize(
|
|
29
|
+
return ( localize(6434, "Source Control"));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
SCMViewPaneContainer = ( (__decorate([
|