@codingame/monaco-vscode-scm-service-override 11.1.1 → 11.1.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 +75 -75
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.js +29 -29
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +17 -17
- 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": "11.1.
|
|
3
|
+
"version": "11.1.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@11.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@11.1.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -101,7 +101,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
101
101
|
if (count === 0) {
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
|
-
const badge = ( (new NumberBadge(count, num => ( localize(
|
|
104
|
+
const badge = ( (new NumberBadge(count, num => ( localize(6584, '{0} pending changes', num)))));
|
|
105
105
|
store.add(this.activityService.showViewActivity(VIEW_PANE_ID, { badge }));
|
|
106
106
|
}
|
|
107
107
|
_updateStatusBar(repository, commands, store) {
|
|
@@ -127,7 +127,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
127
127
|
repoAgnosticActionName = '';
|
|
128
128
|
}
|
|
129
129
|
const statusbarEntry = {
|
|
130
|
-
name: ( localize(
|
|
130
|
+
name: ( localize(6585, "Source Control")) + (repoAgnosticActionName ? ` ${repoAgnosticActionName}` : ''),
|
|
131
131
|
text: command.title,
|
|
132
132
|
ariaLabel: tooltip,
|
|
133
133
|
tooltip,
|
|
@@ -159,8 +159,8 @@ let SCMActiveResourceContextKeyController = class SCMActiveResourceContextKeyCon
|
|
|
159
159
|
this.uriIdentityService = uriIdentityService;
|
|
160
160
|
this._repositories = observableFromEvent(this, Event.any(this.scmService.onDidAddRepository, this.scmService.onDidRemoveRepository), () => this.scmService.repositories);
|
|
161
161
|
this._onDidRepositoryChange = ( (new Emitter()));
|
|
162
|
-
const activeResourceHasChangesContextKey = ( (new RawContextKey('scmActiveResourceHasChanges', false, ( localize(
|
|
163
|
-
const activeResourceRepositoryContextKey = ( (new RawContextKey('scmActiveResourceRepository', undefined, ( localize(
|
|
162
|
+
const activeResourceHasChangesContextKey = ( (new RawContextKey('scmActiveResourceHasChanges', false, ( localize(6586, "Whether the active resource has changes")))));
|
|
163
|
+
const activeResourceRepositoryContextKey = ( (new RawContextKey('scmActiveResourceRepository', undefined, ( localize(6587, "The active resource's repository")))));
|
|
164
164
|
this._store.add(autorunWithStore((reader, store) => {
|
|
165
165
|
for (const repository of this._repositories.read(reader)) {
|
|
166
166
|
store.add(Event.runAndSubscribe(repository.provider.onDidChangeResources, () => {
|
|
@@ -209,7 +209,7 @@ SCMMenus = ( (__decorate([
|
|
|
209
209
|
( (__param(1, IInstantiationService)))
|
|
210
210
|
], SCMMenus)));
|
|
211
211
|
MenuRegistry.appendMenuItem(MenuId.SCMResourceContext, {
|
|
212
|
-
title: ( localize(
|
|
212
|
+
title: ( localize(6559, "Share")),
|
|
213
213
|
submenu: MenuId.SCMResourceContextShare,
|
|
214
214
|
group: '45_share',
|
|
215
215
|
order: 3,
|
|
@@ -45,10 +45,10 @@ ModesRegistry.registerLanguage({
|
|
|
45
45
|
});
|
|
46
46
|
( (Registry.as(Extensions.Workbench)))
|
|
47
47
|
.registerWorkbenchContribution(DirtyDiffWorkbenchController, 3 );
|
|
48
|
-
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(
|
|
48
|
+
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(2896, '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(2897, '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
|
}, 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(2898, "No source control providers registered.")),
|
|
62
62
|
when: 'default'
|
|
63
63
|
});
|
|
64
64
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
65
65
|
content: ( localize(
|
|
66
|
-
|
|
66
|
+
2899,
|
|
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(2900, "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,14 +82,14 @@ viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
|
82
82
|
});
|
|
83
83
|
viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
84
84
|
content: ( localize(
|
|
85
|
-
|
|
85
|
+
2901,
|
|
86
86
|
"The selected source control provider does not have any source control history items."
|
|
87
87
|
)),
|
|
88
88
|
when: ( (ContextKeys.SCMHistoryItemCount.isEqualTo(0)))
|
|
89
89
|
});
|
|
90
90
|
viewsRegistry.registerViews([{
|
|
91
91
|
id: REPOSITORIES_VIEW_PANE_ID,
|
|
92
|
-
name: ( localize2(
|
|
92
|
+
name: ( localize2(2902, "Source Control Repositories")),
|
|
93
93
|
ctorDescriptor: ( (new SyncDescriptor(SCMRepositoriesViewPane))),
|
|
94
94
|
canToggleVisibility: true,
|
|
95
95
|
hideByDefault: true,
|
|
@@ -104,7 +104,7 @@ viewsRegistry.registerViews([{
|
|
|
104
104
|
}], viewContainer);
|
|
105
105
|
viewsRegistry.registerViews([{
|
|
106
106
|
id: VIEW_PANE_ID,
|
|
107
|
-
name: ( localize2(
|
|
107
|
+
name: ( localize2(2897, 'Source Control')),
|
|
108
108
|
ctorDescriptor: ( (new SyncDescriptor(SCMViewPane))),
|
|
109
109
|
canToggleVisibility: true,
|
|
110
110
|
canMoveView: true,
|
|
@@ -113,7 +113,7 @@ viewsRegistry.registerViews([{
|
|
|
113
113
|
containerIcon: sourceControlViewIcon,
|
|
114
114
|
openCommandActionDescriptor: {
|
|
115
115
|
id: viewContainer.id,
|
|
116
|
-
mnemonicTitle: ( localize(
|
|
116
|
+
mnemonicTitle: ( localize(2903, "Source &&Control")),
|
|
117
117
|
keybindings: {
|
|
118
118
|
primary: 0,
|
|
119
119
|
win: { primary: 2048 | 1024 | 37 },
|
|
@@ -125,7 +125,7 @@ viewsRegistry.registerViews([{
|
|
|
125
125
|
}], viewContainer);
|
|
126
126
|
viewsRegistry.registerViews([{
|
|
127
127
|
id: HISTORY_VIEW_PANE_ID,
|
|
128
|
-
name: ( localize2(
|
|
128
|
+
name: ( localize2(2904, "Source Control Graph")),
|
|
129
129
|
ctorDescriptor: ( (new SyncDescriptor(SCMHistoryViewPane))),
|
|
130
130
|
canToggleVisibility: true,
|
|
131
131
|
canMoveView: true,
|
|
@@ -147,7 +147,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
147
147
|
( (Registry.as(Extensions$2.Configuration))).registerConfiguration({
|
|
148
148
|
id: 'scm',
|
|
149
149
|
order: 5,
|
|
150
|
-
title: ( localize(
|
|
150
|
+
title: ( localize(2905, "Source Control")),
|
|
151
151
|
type: 'object',
|
|
152
152
|
scope: 4 ,
|
|
153
153
|
properties: {
|
|
@@ -155,21 +155,21 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
155
155
|
type: 'string',
|
|
156
156
|
enum: ['all', 'gutter', 'overview', 'minimap', 'none'],
|
|
157
157
|
enumDescriptions: [
|
|
158
|
-
( localize(
|
|
159
|
-
( localize(
|
|
160
|
-
( localize(
|
|
161
|
-
( localize(
|
|
162
|
-
( localize(
|
|
158
|
+
( localize(2906, "Show the diff decorations in all available locations.")),
|
|
159
|
+
( localize(2907, "Show the diff decorations only in the editor gutter.")),
|
|
160
|
+
( localize(2908, "Show the diff decorations only in the overview ruler.")),
|
|
161
|
+
( localize(2909, "Show the diff decorations only in the minimap.")),
|
|
162
|
+
( localize(2910, "Do not show the diff decorations."))
|
|
163
163
|
],
|
|
164
164
|
default: 'all',
|
|
165
|
-
description: ( localize(
|
|
165
|
+
description: ( localize(2911, "Controls diff decorations in the editor."))
|
|
166
166
|
},
|
|
167
167
|
'scm.diffDecorationsGutterWidth': {
|
|
168
168
|
type: 'number',
|
|
169
169
|
enum: [1, 2, 3, 4, 5],
|
|
170
170
|
default: 3,
|
|
171
171
|
description: ( localize(
|
|
172
|
-
|
|
172
|
+
2912,
|
|
173
173
|
"Controls the width(px) of diff decorations in gutter (added & modified)."
|
|
174
174
|
))
|
|
175
175
|
},
|
|
@@ -177,11 +177,11 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
177
177
|
type: 'string',
|
|
178
178
|
enum: ['always', 'hover'],
|
|
179
179
|
enumDescriptions: [
|
|
180
|
-
( localize(
|
|
181
|
-
( localize(
|
|
180
|
+
( localize(2913, "Show the diff decorator in the gutter at all times.")),
|
|
181
|
+
( localize(2914, "Show the diff decorator in the gutter only on hover."))
|
|
182
182
|
],
|
|
183
183
|
description: ( localize(
|
|
184
|
-
|
|
184
|
+
2915,
|
|
185
185
|
"Controls the visibility of the Source Control diff decorator in the gutter."
|
|
186
186
|
)),
|
|
187
187
|
default: 'always'
|
|
@@ -190,27 +190,27 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
190
190
|
type: 'string',
|
|
191
191
|
enum: ['diff', 'none'],
|
|
192
192
|
enumDescriptions: [
|
|
193
|
-
( localize(
|
|
194
|
-
( localize(
|
|
193
|
+
( localize(2916, "Show the inline diff Peek view on click.")),
|
|
194
|
+
( localize(2917, "Do nothing."))
|
|
195
195
|
],
|
|
196
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(2918, "Controls the behavior of Source Control diff gutter decorations.")),
|
|
197
197
|
default: 'diff'
|
|
198
198
|
},
|
|
199
199
|
'scm.diffDecorationsGutterPattern': {
|
|
200
200
|
type: 'object',
|
|
201
201
|
description: ( localize(
|
|
202
|
-
|
|
202
|
+
2919,
|
|
203
203
|
"Controls whether a pattern is used for the diff decorations in gutter."
|
|
204
204
|
)),
|
|
205
205
|
additionalProperties: false,
|
|
206
206
|
properties: {
|
|
207
207
|
'added': {
|
|
208
208
|
type: 'boolean',
|
|
209
|
-
description: ( localize(
|
|
209
|
+
description: ( localize(2920, "Use pattern for the diff decorations in gutter for added lines.")),
|
|
210
210
|
},
|
|
211
211
|
'modified': {
|
|
212
212
|
type: 'boolean',
|
|
213
|
-
description: ( localize(
|
|
213
|
+
description: ( localize(2921, "Use pattern for the diff decorations in gutter for modified lines.")),
|
|
214
214
|
},
|
|
215
215
|
},
|
|
216
216
|
default: {
|
|
@@ -222,12 +222,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
222
222
|
type: 'string',
|
|
223
223
|
enum: ['true', 'false', 'inherit'],
|
|
224
224
|
enumDescriptions: [
|
|
225
|
-
( localize(
|
|
226
|
-
( localize(
|
|
227
|
-
( localize(
|
|
225
|
+
( localize(2922, "Ignore leading and trailing whitespace.")),
|
|
226
|
+
( localize(2923, "Do not ignore leading and trailing whitespace.")),
|
|
227
|
+
( localize(2924, "Inherit from `diffEditor.ignoreTrimWhitespace`."))
|
|
228
228
|
],
|
|
229
229
|
description: ( localize(
|
|
230
|
-
|
|
230
|
+
2925,
|
|
231
231
|
"Controls whether leading and trailing whitespace is ignored in Source Control diff gutter decorations."
|
|
232
232
|
)),
|
|
233
233
|
default: 'false'
|
|
@@ -235,7 +235,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
235
235
|
'scm.alwaysShowActions': {
|
|
236
236
|
type: 'boolean',
|
|
237
237
|
description: ( localize(
|
|
238
|
-
|
|
238
|
+
2926,
|
|
239
239
|
"Controls whether inline actions are always visible in the Source Control view."
|
|
240
240
|
)),
|
|
241
241
|
default: false
|
|
@@ -244,12 +244,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
244
244
|
type: 'string',
|
|
245
245
|
enum: ['all', 'focused', 'off'],
|
|
246
246
|
enumDescriptions: [
|
|
247
|
-
( localize(
|
|
248
|
-
( localize(
|
|
249
|
-
( localize(
|
|
247
|
+
( localize(2927, "Show the sum of all Source Control Provider count badges.")),
|
|
248
|
+
( localize(2928, "Show the count badge of the focused Source Control Provider.")),
|
|
249
|
+
( localize(2929, "Disable the Source Control count badge."))
|
|
250
250
|
],
|
|
251
251
|
description: ( localize(
|
|
252
|
-
|
|
252
|
+
2930,
|
|
253
253
|
"Controls the count badge on the Source Control icon on the Activity Bar."
|
|
254
254
|
)),
|
|
255
255
|
default: 'all'
|
|
@@ -258,12 +258,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
258
258
|
type: 'string',
|
|
259
259
|
enum: ['hidden', 'auto', 'visible'],
|
|
260
260
|
enumDescriptions: [
|
|
261
|
-
( localize(
|
|
262
|
-
( localize(
|
|
263
|
-
( localize(
|
|
261
|
+
( localize(2931, "Hide Source Control Provider count badges.")),
|
|
262
|
+
( localize(2932, "Only show count badge for Source Control Provider when non-zero.")),
|
|
263
|
+
( localize(2933, "Show Source Control Provider count badges."))
|
|
264
264
|
],
|
|
265
265
|
markdownDescription: ( localize(
|
|
266
|
-
|
|
266
|
+
2934,
|
|
267
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.",
|
|
268
268
|
'\`#scm.alwaysShowRepositories#\`'
|
|
269
269
|
)),
|
|
@@ -273,22 +273,22 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
273
273
|
type: 'string',
|
|
274
274
|
enum: ['tree', 'list'],
|
|
275
275
|
enumDescriptions: [
|
|
276
|
-
( localize(
|
|
277
|
-
( localize(
|
|
276
|
+
( localize(2935, "Show the repository changes as a tree.")),
|
|
277
|
+
( localize(2936, "Show the repository changes as a list."))
|
|
278
278
|
],
|
|
279
|
-
description: ( localize(
|
|
279
|
+
description: ( localize(2937, "Controls the default Source Control repository view mode.")),
|
|
280
280
|
default: 'list'
|
|
281
281
|
},
|
|
282
282
|
'scm.defaultViewSortKey': {
|
|
283
283
|
type: 'string',
|
|
284
284
|
enum: ['name', 'path', 'status'],
|
|
285
285
|
enumDescriptions: [
|
|
286
|
-
( localize(
|
|
287
|
-
( localize(
|
|
288
|
-
( localize(
|
|
286
|
+
( localize(2938, "Sort the repository changes by file name.")),
|
|
287
|
+
( localize(2939, "Sort the repository changes by path.")),
|
|
288
|
+
( localize(2940, "Sort the repository changes by Source Control status."))
|
|
289
289
|
],
|
|
290
290
|
description: ( localize(
|
|
291
|
-
|
|
291
|
+
2941,
|
|
292
292
|
"Controls the default Source Control repository changes sort order when viewed as a list."
|
|
293
293
|
)),
|
|
294
294
|
default: 'path'
|
|
@@ -296,7 +296,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
296
296
|
'scm.autoReveal': {
|
|
297
297
|
type: 'boolean',
|
|
298
298
|
description: ( localize(
|
|
299
|
-
|
|
299
|
+
2942,
|
|
300
300
|
"Controls whether the Source Control view should automatically reveal and select files when opening them."
|
|
301
301
|
)),
|
|
302
302
|
default: true
|
|
@@ -304,20 +304,20 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
304
304
|
'scm.inputFontFamily': {
|
|
305
305
|
type: 'string',
|
|
306
306
|
markdownDescription: ( localize(
|
|
307
|
-
|
|
307
|
+
2943,
|
|
308
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."
|
|
309
309
|
)),
|
|
310
310
|
default: 'default'
|
|
311
311
|
},
|
|
312
312
|
'scm.inputFontSize': {
|
|
313
313
|
type: 'number',
|
|
314
|
-
markdownDescription: ( localize(
|
|
314
|
+
markdownDescription: ( localize(2944, "Controls the font size for the input message in pixels.")),
|
|
315
315
|
default: 13
|
|
316
316
|
},
|
|
317
317
|
'scm.inputMaxLineCount': {
|
|
318
318
|
type: 'number',
|
|
319
319
|
markdownDescription: ( localize(
|
|
320
|
-
|
|
320
|
+
2945,
|
|
321
321
|
"Controls the maximum number of lines that the input will auto-grow to."
|
|
322
322
|
)),
|
|
323
323
|
minimum: 1,
|
|
@@ -327,7 +327,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
327
327
|
'scm.inputMinLineCount': {
|
|
328
328
|
type: 'number',
|
|
329
329
|
markdownDescription: ( localize(
|
|
330
|
-
|
|
330
|
+
2946,
|
|
331
331
|
"Controls the minimum number of lines that the input will auto-grow from."
|
|
332
332
|
)),
|
|
333
333
|
minimum: 1,
|
|
@@ -337,7 +337,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
337
337
|
'scm.alwaysShowRepositories': {
|
|
338
338
|
type: 'boolean',
|
|
339
339
|
markdownDescription: ( localize(
|
|
340
|
-
|
|
340
|
+
2947,
|
|
341
341
|
"Controls whether repositories should always be visible in the Source Control view."
|
|
342
342
|
)),
|
|
343
343
|
default: false
|
|
@@ -347,20 +347,20 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
347
347
|
enum: ['discovery time', 'name', 'path'],
|
|
348
348
|
enumDescriptions: [
|
|
349
349
|
( localize(
|
|
350
|
-
|
|
350
|
+
2948,
|
|
351
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."
|
|
352
352
|
)),
|
|
353
353
|
( localize(
|
|
354
|
-
|
|
354
|
+
2949,
|
|
355
355
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
|
|
356
356
|
)),
|
|
357
357
|
( localize(
|
|
358
|
-
|
|
358
|
+
2950,
|
|
359
359
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository path."
|
|
360
360
|
))
|
|
361
361
|
],
|
|
362
362
|
description: ( localize(
|
|
363
|
-
|
|
363
|
+
2951,
|
|
364
364
|
"Controls the sort order of the repositories in the source control repositories view."
|
|
365
365
|
)),
|
|
366
366
|
default: 'discovery time'
|
|
@@ -368,7 +368,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
368
368
|
'scm.repositories.visible': {
|
|
369
369
|
type: 'number',
|
|
370
370
|
description: ( localize(
|
|
371
|
-
|
|
371
|
+
2952,
|
|
372
372
|
"Controls how many repositories are visible in the Source Control Repositories section. Set to 0, to be able to manually resize the view."
|
|
373
373
|
)),
|
|
374
374
|
default: 10
|
|
@@ -376,7 +376,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
376
376
|
'scm.showActionButton': {
|
|
377
377
|
type: 'boolean',
|
|
378
378
|
markdownDescription: ( localize(
|
|
379
|
-
|
|
379
|
+
2953,
|
|
380
380
|
"Controls whether an action button can be shown in the Source Control view."
|
|
381
381
|
)),
|
|
382
382
|
default: true
|
|
@@ -384,7 +384,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
384
384
|
'scm.showInputActionButton': {
|
|
385
385
|
type: 'boolean',
|
|
386
386
|
markdownDescription: ( localize(
|
|
387
|
-
|
|
387
|
+
2954,
|
|
388
388
|
"Controls whether an action button can be shown in the Source Control input."
|
|
389
389
|
)),
|
|
390
390
|
default: true
|
|
@@ -392,7 +392,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
392
392
|
'scm.workingSets.enabled': {
|
|
393
393
|
type: 'boolean',
|
|
394
394
|
description: ( localize(
|
|
395
|
-
|
|
395
|
+
2955,
|
|
396
396
|
"Controls whether to store editor working sets when switching between source control history item groups."
|
|
397
397
|
)),
|
|
398
398
|
default: false
|
|
@@ -402,16 +402,16 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
402
402
|
enum: ['empty', 'current'],
|
|
403
403
|
enumDescriptions: [
|
|
404
404
|
( localize(
|
|
405
|
-
|
|
405
|
+
2956,
|
|
406
406
|
"Use an empty working set when switching to a source control history item group that does not have a working set."
|
|
407
407
|
)),
|
|
408
408
|
( localize(
|
|
409
|
-
|
|
409
|
+
2957,
|
|
410
410
|
"Use the current working set when switching to a source control history item group that does not have a working set."
|
|
411
411
|
))
|
|
412
412
|
],
|
|
413
413
|
description: ( localize(
|
|
414
|
-
|
|
414
|
+
2958,
|
|
415
415
|
"Controls the default working set to use when switching to a source control history item group that does not have a working set."
|
|
416
416
|
)),
|
|
417
417
|
default: 'current'
|
|
@@ -419,7 +419,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
419
419
|
'scm.compactFolders': {
|
|
420
420
|
type: 'boolean',
|
|
421
421
|
description: ( localize(
|
|
422
|
-
|
|
422
|
+
2959,
|
|
423
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."
|
|
424
424
|
)),
|
|
425
425
|
default: true
|
|
@@ -427,7 +427,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
427
427
|
'scm.graph.pageOnScroll': {
|
|
428
428
|
type: 'boolean',
|
|
429
429
|
description: ( localize(
|
|
430
|
-
|
|
430
|
+
2960,
|
|
431
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
432
|
)),
|
|
433
433
|
default: true
|
|
@@ -435,7 +435,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
435
435
|
'scm.graph.pageSize': {
|
|
436
436
|
type: 'number',
|
|
437
437
|
description: ( localize(
|
|
438
|
-
|
|
438
|
+
2961,
|
|
439
439
|
"The number of items to show in the Source Control Graph view by default and when loading more items."
|
|
440
440
|
)),
|
|
441
441
|
minimum: 1,
|
|
@@ -447,16 +447,16 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
447
447
|
enum: ['all', 'filter'],
|
|
448
448
|
enumDescriptions: [
|
|
449
449
|
( localize(
|
|
450
|
-
|
|
450
|
+
2962,
|
|
451
451
|
"Show badges of all history item groups in the Source Control Graph view."
|
|
452
452
|
)),
|
|
453
453
|
( localize(
|
|
454
|
-
|
|
454
|
+
2963,
|
|
455
455
|
"Show only the badges of history item groups used as a filter in the Source Control Graph view."
|
|
456
456
|
))
|
|
457
457
|
],
|
|
458
458
|
description: ( localize(
|
|
459
|
-
|
|
459
|
+
2964,
|
|
460
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
461
|
)),
|
|
462
462
|
default: 'filter'
|
|
@@ -465,7 +465,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
465
465
|
});
|
|
466
466
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
467
467
|
id: 'scm.acceptInput',
|
|
468
|
-
metadata: { description: ( localize(
|
|
468
|
+
metadata: { description: ( localize(2965, "Source Control: Accept Input")), args: [] },
|
|
469
469
|
weight: 200 ,
|
|
470
470
|
when: ( (ContextKeyExpr.has('scmRepository'))),
|
|
471
471
|
primary: 2048 | 3 ,
|
|
@@ -505,7 +505,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
507
|
const viewNextCommitCommand = {
|
|
508
|
-
description: { description: ( localize(
|
|
508
|
+
description: { description: ( localize(2966, "Source Control: View Next Commit")), args: [] },
|
|
509
509
|
weight: 200 ,
|
|
510
510
|
handler: (accessor) => {
|
|
511
511
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -517,7 +517,7 @@ const viewNextCommitCommand = {
|
|
|
517
517
|
}
|
|
518
518
|
};
|
|
519
519
|
const viewPreviousCommitCommand = {
|
|
520
|
-
description: { description: ( localize(
|
|
520
|
+
description: { description: ( localize(2967, "Source Control: View Previous Commit")), args: [] },
|
|
521
521
|
weight: 200 ,
|
|
522
522
|
handler: (accessor) => {
|
|
523
523
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -594,7 +594,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
594
594
|
group: '100_end',
|
|
595
595
|
command: {
|
|
596
596
|
id: 'scm.openInTerminal',
|
|
597
|
-
title: ( localize(
|
|
597
|
+
title: ( localize(2968, "Open in External Terminal"))
|
|
598
598
|
},
|
|
599
599
|
when: ( (ContextKeyExpr.and(
|
|
600
600
|
(ContextKeyExpr.equals('scmProviderHasRootUri', true)),
|
|
@@ -608,7 +608,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
608
608
|
group: '100_end',
|
|
609
609
|
command: {
|
|
610
610
|
id: 'scm.openInIntegratedTerminal',
|
|
611
|
-
title: ( localize(
|
|
611
|
+
title: ( localize(2969, "Open in Integrated Terminal"))
|
|
612
612
|
},
|
|
613
613
|
when: ( (ContextKeyExpr.and(
|
|
614
614
|
(ContextKeyExpr.equals('scmProviderHasRootUri', true)),
|
|
@@ -103,23 +103,23 @@ class SCMHistoryItemRefsActionViewItem extends ActionViewItem {
|
|
|
103
103
|
icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.gitBranch));
|
|
104
104
|
const name = $('.name');
|
|
105
105
|
if (this._historyItemsFilter === 'all') {
|
|
106
|
-
name.textContent = ( localize(
|
|
106
|
+
name.textContent = ( localize(6608, "All"));
|
|
107
107
|
}
|
|
108
108
|
else if (this._historyItemsFilter === 'auto') {
|
|
109
|
-
name.textContent = ( localize(
|
|
109
|
+
name.textContent = ( localize(6609, "Auto"));
|
|
110
110
|
}
|
|
111
111
|
else if (this._historyItemsFilter.length === 1) {
|
|
112
112
|
name.textContent = this._historyItemsFilter[0].name;
|
|
113
113
|
}
|
|
114
114
|
else {
|
|
115
|
-
name.textContent = ( localize(
|
|
115
|
+
name.textContent = ( localize(6610, "{0} Items", this._historyItemsFilter.length));
|
|
116
116
|
}
|
|
117
117
|
reset(this.label, icon, name);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
getTooltip() {
|
|
121
121
|
if (this._historyItemsFilter === 'all') {
|
|
122
|
-
return ( localize(
|
|
122
|
+
return ( localize(6611, "All history item references"));
|
|
123
123
|
}
|
|
124
124
|
else if (this._historyItemsFilter === 'auto') {
|
|
125
125
|
const historyProvider = this._repository.provider.historyProvider.get();
|
|
@@ -141,7 +141,7 @@ registerAction2(class extends ViewAction {
|
|
|
141
141
|
constructor() {
|
|
142
142
|
super({
|
|
143
143
|
id: PICK_REPOSITORY_ACTION_ID,
|
|
144
|
-
title: ( localize(
|
|
144
|
+
title: ( localize(6612, "Repository Picker")),
|
|
145
145
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
146
146
|
f1: false,
|
|
147
147
|
menu: {
|
|
@@ -163,7 +163,7 @@ registerAction2(class extends ViewAction {
|
|
|
163
163
|
constructor() {
|
|
164
164
|
super({
|
|
165
165
|
id: PICK_HISTORY_ITEM_REFS_ACTION_ID,
|
|
166
|
-
title: ( localize(
|
|
166
|
+
title: ( localize(6613, "History Item Reference Picker")),
|
|
167
167
|
icon: Codicon.gitBranch,
|
|
168
168
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
169
169
|
precondition: ( (ContextKeys.SCMHistoryItemCount.notEqualsTo(0))),
|
|
@@ -183,7 +183,7 @@ registerAction2(class extends ViewAction {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: 'workbench.scm.action.graph.revealCurrentHistoryItem',
|
|
186
|
-
title: ( localize(
|
|
186
|
+
title: ( localize(6614, "Go to Current History Item")),
|
|
187
187
|
icon: Codicon.target,
|
|
188
188
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
189
189
|
precondition: ( (ContextKeys.SCMHistoryItemCount.notEqualsTo(0))),
|
|
@@ -203,7 +203,7 @@ registerAction2(class extends ViewAction {
|
|
|
203
203
|
constructor() {
|
|
204
204
|
super({
|
|
205
205
|
id: 'workbench.scm.action.graph.refresh',
|
|
206
|
-
title: ( localize(
|
|
206
|
+
title: ( localize(6615, "Refresh")),
|
|
207
207
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
208
208
|
f1: false,
|
|
209
209
|
icon: Codicon.refresh,
|
|
@@ -222,7 +222,7 @@ registerAction2(class extends Action2 {
|
|
|
222
222
|
constructor() {
|
|
223
223
|
super({
|
|
224
224
|
id: 'workbench.scm.action.graph.viewChanges',
|
|
225
|
-
title: ( localize(
|
|
225
|
+
title: ( localize(6616, "View Changes")),
|
|
226
226
|
f1: false,
|
|
227
227
|
menu: [
|
|
228
228
|
{
|
|
@@ -255,7 +255,7 @@ registerAction2(class extends Action2 {
|
|
|
255
255
|
const title = historyItems.length === 1 ?
|
|
256
256
|
getHistoryItemEditorTitle(historyItem) :
|
|
257
257
|
( localize(
|
|
258
|
-
|
|
258
|
+
6617,
|
|
259
259
|
"All Changes ({0} ↔ {1})",
|
|
260
260
|
historyItemLast.displayId ?? historyItemLast.id,
|
|
261
261
|
historyItem.displayId ?? historyItem.id
|
|
@@ -389,7 +389,7 @@ let HistoryItemRenderer = class HistoryItemRenderer {
|
|
|
389
389
|
{
|
|
390
390
|
commandId: 'workbench.scm.action.graph.copyHistoryItemMessage',
|
|
391
391
|
iconClass: 'codicon.codicon-copy',
|
|
392
|
-
label: ( localize(
|
|
392
|
+
label: ( localize(6618, "Message")),
|
|
393
393
|
run: () => this._clipboardService.writeText(historyItem.message)
|
|
394
394
|
}
|
|
395
395
|
];
|
|
@@ -410,19 +410,19 @@ let HistoryItemRenderer = class HistoryItemRenderer {
|
|
|
410
410
|
if (historyItem.statistics) {
|
|
411
411
|
markdown.appendMarkdown(`---\n\n`);
|
|
412
412
|
markdown.appendMarkdown(`<span>${historyItem.statistics.files === 1 ?
|
|
413
|
-
( localize(
|
|
414
|
-
( localize(
|
|
413
|
+
( localize(6619, "{0} file changed", historyItem.statistics.files)) :
|
|
414
|
+
( localize(6620, "{0} files changed", historyItem.statistics.files))}</span>`);
|
|
415
415
|
if (historyItem.statistics.insertions) {
|
|
416
416
|
const additionsForegroundColor = colorTheme.getColor(historyItemHoverAdditionsForeground);
|
|
417
417
|
markdown.appendMarkdown(`, <span style="color:${additionsForegroundColor};">${historyItem.statistics.insertions === 1 ?
|
|
418
|
-
( localize(
|
|
419
|
-
( localize(
|
|
418
|
+
( localize(6621, "{0} insertion{1}", historyItem.statistics.insertions, '(+)')) :
|
|
419
|
+
( localize(6622, "{0} insertions{1}", historyItem.statistics.insertions, '(+)'))}</span>`);
|
|
420
420
|
}
|
|
421
421
|
if (historyItem.statistics.deletions) {
|
|
422
422
|
const deletionsForegroundColor = colorTheme.getColor(historyItemHoverDeletionsForeground);
|
|
423
423
|
markdown.appendMarkdown(`, <span style="color:${deletionsForegroundColor};">${historyItem.statistics.deletions === 1 ?
|
|
424
|
-
( localize(
|
|
425
|
-
( localize(
|
|
424
|
+
( localize(6623, "{0} deletion{1}", historyItem.statistics.deletions, '(-)')) :
|
|
425
|
+
( localize(6624, "{0} deletions{1}", historyItem.statistics.deletions, '(-)'))}</span>`);
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
if ((historyItem.references ?? []).length > 0) {
|
|
@@ -489,7 +489,7 @@ let HistoryItemLoadMoreRenderer = class HistoryItemLoadMoreRenderer {
|
|
|
489
489
|
templateData.elementDisposables.add(autorun(reader => {
|
|
490
490
|
const isLoadingMore = this._isLoadingMore.read(reader);
|
|
491
491
|
const icon = `$(${isLoadingMore ? 'loading~spin' : 'fold-down'})`;
|
|
492
|
-
templateData.historyItemPlaceholderLabel.setLabel(( localize(
|
|
492
|
+
templateData.historyItemPlaceholderLabel.setLabel(( localize(6625, "{0} Load More...", icon)));
|
|
493
493
|
}));
|
|
494
494
|
}
|
|
495
495
|
}
|
|
@@ -543,7 +543,7 @@ SCMHistoryViewPaneActionRunner = ( (__decorate([
|
|
|
543
543
|
], SCMHistoryViewPaneActionRunner)));
|
|
544
544
|
class SCMHistoryTreeAccessibilityProvider {
|
|
545
545
|
getWidgetAriaLabel() {
|
|
546
|
-
return ( localize(
|
|
546
|
+
return ( localize(6626, "Source Control History"));
|
|
547
547
|
}
|
|
548
548
|
getAriaLabel(element) {
|
|
549
549
|
if (isSCMRepository(element)) {
|
|
@@ -849,8 +849,8 @@ let RepositoryPicker = class RepositoryPicker extends Disposable {
|
|
|
849
849
|
this._quickInputService = _quickInputService;
|
|
850
850
|
this._scmViewService = _scmViewService;
|
|
851
851
|
this._autoQuickPickItem = {
|
|
852
|
-
label: ( localize(
|
|
853
|
-
description: ( localize(
|
|
852
|
+
label: ( localize(6609, "Auto")),
|
|
853
|
+
description: ( localize(6627, "Show the source control graph for the active repository")),
|
|
854
854
|
repository: 'auto'
|
|
855
855
|
};
|
|
856
856
|
}
|
|
@@ -866,7 +866,7 @@ let RepositoryPicker = class RepositoryPicker extends Disposable {
|
|
|
866
866
|
repository: r
|
|
867
867
|
})))));
|
|
868
868
|
return this._quickInputService.pick(picks, {
|
|
869
|
-
placeHolder: ( localize(
|
|
869
|
+
placeHolder: ( localize(6628, "Select the repository to view, type to filter all repositories"))
|
|
870
870
|
});
|
|
871
871
|
}
|
|
872
872
|
};
|
|
@@ -882,21 +882,21 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
|
|
|
882
882
|
this._quickInputService = _quickInputService;
|
|
883
883
|
this._allQuickPickItem = {
|
|
884
884
|
id: 'all',
|
|
885
|
-
label: ( localize(
|
|
886
|
-
description: ( localize(
|
|
885
|
+
label: ( localize(6608, "All")),
|
|
886
|
+
description: ( localize(6611, "All history item references")),
|
|
887
887
|
historyItemRef: 'all'
|
|
888
888
|
};
|
|
889
889
|
this._autoQuickPickItem = {
|
|
890
890
|
id: 'auto',
|
|
891
|
-
label: ( localize(
|
|
892
|
-
description: ( localize(
|
|
891
|
+
label: ( localize(6609, "Auto")),
|
|
892
|
+
description: ( localize(6629, "Current history item reference(s)")),
|
|
893
893
|
historyItemRef: 'auto'
|
|
894
894
|
};
|
|
895
895
|
}
|
|
896
896
|
async pickHistoryItemRef() {
|
|
897
897
|
const quickPick = this._quickInputService.createQuickPick({ useSeparators: true });
|
|
898
898
|
this._store.add(quickPick);
|
|
899
|
-
quickPick.placeholder = ( localize(
|
|
899
|
+
quickPick.placeholder = ( localize(6630, "Select one/more history item references to view, type to filter"));
|
|
900
900
|
quickPick.canSelectMany = true;
|
|
901
901
|
quickPick.hideCheckAll = true;
|
|
902
902
|
quickPick.busy = true;
|
|
@@ -1025,7 +1025,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1025
1025
|
container.appendChild(element.root);
|
|
1026
1026
|
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), element.root, {
|
|
1027
1027
|
markdown: {
|
|
1028
|
-
value: ( localize(
|
|
1028
|
+
value: ( localize(6631, "Please refresh the graph using the refresh action ($(refresh)).")),
|
|
1029
1029
|
supportThemeIcons: true
|
|
1030
1030
|
},
|
|
1031
1031
|
markdownNotSupportedFallback: undefined
|
|
@@ -1176,7 +1176,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1176
1176
|
if (Array.isArray(historyItemFilter) &&
|
|
1177
1177
|
!historyItemFilter.find(ref => ref.id === historyItemRef.id)) {
|
|
1178
1178
|
this._notificationService.info(( localize(
|
|
1179
|
-
|
|
1179
|
+
6632,
|
|
1180
1180
|
"The current history item is not present in the source control graph. Please use the history item references picker to expand the set of history items in the graph."
|
|
1181
1181
|
)));
|
|
1182
1182
|
return;
|
|
@@ -58,7 +58,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
|
|
|
58
58
|
return r.provider.label;
|
|
59
59
|
},
|
|
60
60
|
getWidgetAriaLabel() {
|
|
61
|
-
return ( localize(
|
|
61
|
+
return ( localize(6605, "Source Control Repositories"));
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
});
|
|
@@ -715,7 +715,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
715
715
|
this.labelService = labelService;
|
|
716
716
|
}
|
|
717
717
|
getWidgetAriaLabel() {
|
|
718
|
-
return ( localize(
|
|
718
|
+
return ( localize(6588, "Source Control Management"));
|
|
719
719
|
}
|
|
720
720
|
getAriaLabel(element) {
|
|
721
721
|
if (ResourceTree.isResourceNode(element)) {
|
|
@@ -725,7 +725,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
725
725
|
return `${element.provider.name} ${element.provider.label}`;
|
|
726
726
|
}
|
|
727
727
|
else if (isSCMInput(element)) {
|
|
728
|
-
return ( localize(
|
|
728
|
+
return ( localize(6589, "Source Control Input"));
|
|
729
729
|
}
|
|
730
730
|
else if (isSCMActionButton(element)) {
|
|
731
731
|
return element.button?.command.title ?? '';
|
|
@@ -773,7 +773,7 @@ const ContextKeys = {
|
|
|
773
773
|
}
|
|
774
774
|
};
|
|
775
775
|
MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
776
|
-
title: ( localize(
|
|
776
|
+
title: ( localize(6590, "View & Sort")),
|
|
777
777
|
submenu: Menus.ViewSort,
|
|
778
778
|
when: ( (ContextKeyExpr.and(
|
|
779
779
|
(ContextKeyExpr.equals('view', VIEW_PANE_ID)),
|
|
@@ -783,7 +783,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
|
783
783
|
order: 1
|
|
784
784
|
});
|
|
785
785
|
MenuRegistry.appendMenuItem(Menus.ViewSort, {
|
|
786
|
-
title: ( localize(
|
|
786
|
+
title: ( localize(6591, "Repositories")),
|
|
787
787
|
submenu: Menus.Repositories,
|
|
788
788
|
when: ContextKeyExpr.greater(ContextKeys.RepositoryCount.key, 1),
|
|
789
789
|
group: '0_repositories'
|
|
@@ -876,7 +876,7 @@ class SetListViewModeAction extends ViewAction {
|
|
|
876
876
|
constructor(id = 'workbench.scm.action.setListViewMode', menu = {}) {
|
|
877
877
|
super({
|
|
878
878
|
id,
|
|
879
|
-
title: ( localize(
|
|
879
|
+
title: ( localize(6592, "View as List")),
|
|
880
880
|
viewId: VIEW_PANE_ID,
|
|
881
881
|
f1: false,
|
|
882
882
|
icon: Codicon.listTree,
|
|
@@ -906,7 +906,7 @@ class SetTreeViewModeAction extends ViewAction {
|
|
|
906
906
|
constructor(id = 'workbench.scm.action.setTreeViewMode', menu = {}) {
|
|
907
907
|
super({
|
|
908
908
|
id,
|
|
909
|
-
title: ( localize(
|
|
909
|
+
title: ( localize(6593, "View as Tree")),
|
|
910
910
|
viewId: VIEW_PANE_ID,
|
|
911
911
|
f1: false,
|
|
912
912
|
icon: Codicon.listFlat,
|
|
@@ -963,17 +963,17 @@ class RepositorySortAction extends ViewAction {
|
|
|
963
963
|
}
|
|
964
964
|
class RepositorySortByDiscoveryTimeAction extends RepositorySortAction {
|
|
965
965
|
constructor() {
|
|
966
|
-
super("discoveryTime" , ( localize(
|
|
966
|
+
super("discoveryTime" , ( localize(6594, "Sort by Discovery Time")));
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
969
|
class RepositorySortByNameAction extends RepositorySortAction {
|
|
970
970
|
constructor() {
|
|
971
|
-
super("name" , ( localize(
|
|
971
|
+
super("name" , ( localize(6595, "Sort by Name")));
|
|
972
972
|
}
|
|
973
973
|
}
|
|
974
974
|
class RepositorySortByPathAction extends RepositorySortAction {
|
|
975
975
|
constructor() {
|
|
976
|
-
super("path" , ( localize(
|
|
976
|
+
super("path" , ( localize(6596, "Sort by Path")));
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
registerAction2(RepositorySortByDiscoveryTimeAction);
|
|
@@ -998,17 +998,17 @@ class SetSortKeyAction extends ViewAction {
|
|
|
998
998
|
}
|
|
999
999
|
class SetSortByNameAction extends SetSortKeyAction {
|
|
1000
1000
|
constructor() {
|
|
1001
|
-
super("name" , ( localize(
|
|
1001
|
+
super("name" , ( localize(6597, "Sort Changes by Name")));
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
class SetSortByPathAction extends SetSortKeyAction {
|
|
1005
1005
|
constructor() {
|
|
1006
|
-
super("path" , ( localize(
|
|
1006
|
+
super("path" , ( localize(6598, "Sort Changes by Path")));
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
1009
|
class SetSortByStatusAction extends SetSortKeyAction {
|
|
1010
1010
|
constructor() {
|
|
1011
|
-
super("status" , ( localize(
|
|
1011
|
+
super("status" , ( localize(6599, "Sort Changes by Status")));
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
registerAction2(SetSortByNameAction);
|
|
@@ -1018,7 +1018,7 @@ class CollapseAllRepositoriesAction extends ViewAction {
|
|
|
1018
1018
|
constructor() {
|
|
1019
1019
|
super({
|
|
1020
1020
|
id: `workbench.scm.action.collapseAllRepositories`,
|
|
1021
|
-
title: ( localize(
|
|
1021
|
+
title: ( localize(6600, "Collapse All Repositories")),
|
|
1022
1022
|
viewId: VIEW_PANE_ID,
|
|
1023
1023
|
f1: false,
|
|
1024
1024
|
icon: Codicon.collapseAll,
|
|
@@ -1041,7 +1041,7 @@ class ExpandAllRepositoriesAction extends ViewAction {
|
|
|
1041
1041
|
constructor() {
|
|
1042
1042
|
super({
|
|
1043
1043
|
id: `workbench.scm.action.expandAllRepositories`,
|
|
1044
|
-
title: ( localize(
|
|
1044
|
+
title: ( localize(6601, "Expand All Repositories")),
|
|
1045
1045
|
viewId: VIEW_PANE_ID,
|
|
1046
1046
|
f1: false,
|
|
1047
1047
|
icon: Codicon.expandAll,
|
|
@@ -1112,10 +1112,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
1112
1112
|
this._onDidChange = ( (new Emitter()));
|
|
1113
1113
|
this.onDidChange = this._onDidChange.event;
|
|
1114
1114
|
this._disposables = this._register(( (new MutableDisposable())));
|
|
1115
|
-
this._dropdownAction = ( (new Action('scmInputMoreActions', ( localize(
|
|
1115
|
+
this._dropdownAction = ( (new Action('scmInputMoreActions', ( localize(6602, "More Actions...")), 'codicon-chevron-down')));
|
|
1116
1116
|
this._cancelAction = ( (new MenuItemAction({
|
|
1117
1117
|
id: "scm.input.cancelAction" ,
|
|
1118
|
-
title: ( localize(
|
|
1118
|
+
title: ( localize(6603, "Cancel")),
|
|
1119
1119
|
icon: Codicon.debugStop,
|
|
1120
1120
|
}, undefined, undefined, undefined, undefined, contextKeyService, commandService)));
|
|
1121
1121
|
}
|
|
@@ -1565,7 +1565,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
const actionsContainer = append(validationContainer, $('.scm-editor-validation-actions'));
|
|
1567
1567
|
const actionbar = ( (new ActionBar(actionsContainer)));
|
|
1568
|
-
const action = ( (new Action('scmInputWidget.validationMessage.close', ( localize(
|
|
1568
|
+
const action = ( (new Action('scmInputWidget.validationMessage.close', ( localize(6604, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
1569
1569
|
this.contextViewService.hideContextView();
|
|
1570
1570
|
this.element.style.borderBottomLeftRadius = '2px';
|
|
1571
1571
|
this.element.style.borderBottomRightRadius = '2px';
|
|
@@ -36,7 +36,7 @@ let SCMViewPaneContainer = class SCMViewPaneContainer extends ViewPaneContainer
|
|
|
36
36
|
return super.getTitle();
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
return ( localize(
|
|
39
|
+
return ( localize(6583, "Source Control"));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
SCMViewPaneContainer = ( (__decorate([
|