@codingame/monaco-vscode-scm-service-override 10.0.0 → 10.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 +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": "10.0.
|
|
3
|
+
"version": "10.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@10.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.0.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(6333, '{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(6334, "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(6335, "Whether the active resource has changes")))));
|
|
163
|
+
const activeResourceRepositoryContextKey = ( (new RawContextKey('scmActiveResourceRepository', undefined, ( localize(6336, "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(6309, "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(2846, '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(2847, '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(2848, "No source control providers registered.")),
|
|
62
62
|
when: 'default'
|
|
63
63
|
});
|
|
64
64
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
65
65
|
content: ( localize(
|
|
66
|
-
|
|
66
|
+
2849,
|
|
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(2850, "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
|
+
2851,
|
|
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(2852, "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(2847, '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(2853, "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(2854, "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(2855, "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(2856, "Show the diff decorations in all available locations.")),
|
|
159
|
+
( localize(2857, "Show the diff decorations only in the editor gutter.")),
|
|
160
|
+
( localize(2858, "Show the diff decorations only in the overview ruler.")),
|
|
161
|
+
( localize(2859, "Show the diff decorations only in the minimap.")),
|
|
162
|
+
( localize(2860, "Do not show the diff decorations."))
|
|
163
163
|
],
|
|
164
164
|
default: 'all',
|
|
165
|
-
description: ( localize(
|
|
165
|
+
description: ( localize(2861, "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
|
+
2862,
|
|
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(2863, "Show the diff decorator in the gutter at all times.")),
|
|
181
|
+
( localize(2864, "Show the diff decorator in the gutter only on hover."))
|
|
182
182
|
],
|
|
183
183
|
description: ( localize(
|
|
184
|
-
|
|
184
|
+
2865,
|
|
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(2866, "Show the inline diff Peek view on click.")),
|
|
194
|
+
( localize(2867, "Do nothing."))
|
|
195
195
|
],
|
|
196
|
-
description: ( localize(
|
|
196
|
+
description: ( localize(2868, "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
|
+
2869,
|
|
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(2870, "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(2871, "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(2872, "Ignore leading and trailing whitespace.")),
|
|
226
|
+
( localize(2873, "Do not ignore leading and trailing whitespace.")),
|
|
227
|
+
( localize(2874, "Inherit from `diffEditor.ignoreTrimWhitespace`."))
|
|
228
228
|
],
|
|
229
229
|
description: ( localize(
|
|
230
|
-
|
|
230
|
+
2875,
|
|
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
|
+
2876,
|
|
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(2877, "Show the sum of all Source Control Provider count badges.")),
|
|
248
|
+
( localize(2878, "Show the count badge of the focused Source Control Provider.")),
|
|
249
|
+
( localize(2879, "Disable the Source Control count badge."))
|
|
250
250
|
],
|
|
251
251
|
description: ( localize(
|
|
252
|
-
|
|
252
|
+
2880,
|
|
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(2881, "Hide Source Control Provider count badges.")),
|
|
262
|
+
( localize(2882, "Only show count badge for Source Control Provider when non-zero.")),
|
|
263
|
+
( localize(2883, "Show Source Control Provider count badges."))
|
|
264
264
|
],
|
|
265
265
|
markdownDescription: ( localize(
|
|
266
|
-
|
|
266
|
+
2884,
|
|
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(2885, "Show the repository changes as a tree.")),
|
|
277
|
+
( localize(2886, "Show the repository changes as a list."))
|
|
278
278
|
],
|
|
279
|
-
description: ( localize(
|
|
279
|
+
description: ( localize(2887, "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(2888, "Sort the repository changes by file name.")),
|
|
287
|
+
( localize(2889, "Sort the repository changes by path.")),
|
|
288
|
+
( localize(2890, "Sort the repository changes by Source Control status."))
|
|
289
289
|
],
|
|
290
290
|
description: ( localize(
|
|
291
|
-
|
|
291
|
+
2891,
|
|
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
|
+
2892,
|
|
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
|
+
2893,
|
|
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(2894, "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
|
+
2895,
|
|
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
|
+
2896,
|
|
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
|
+
2897,
|
|
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
|
+
2898,
|
|
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
|
+
2899,
|
|
355
355
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
|
|
356
356
|
)),
|
|
357
357
|
( localize(
|
|
358
|
-
|
|
358
|
+
2900,
|
|
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
|
+
2901,
|
|
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
|
+
2902,
|
|
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
|
+
2903,
|
|
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
|
+
2904,
|
|
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
|
+
2905,
|
|
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
|
+
2906,
|
|
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
|
+
2907,
|
|
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
|
+
2908,
|
|
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
|
+
2909,
|
|
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
|
+
2910,
|
|
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
|
+
2911,
|
|
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
|
+
2912,
|
|
451
451
|
"Show badges of all history item groups in the Source Control Graph view."
|
|
452
452
|
)),
|
|
453
453
|
( localize(
|
|
454
|
-
|
|
454
|
+
2913,
|
|
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
|
+
2914,
|
|
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(2915, "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(2916, "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(2917, "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(2918, "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(2919, "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(6358, "All"));
|
|
107
107
|
}
|
|
108
108
|
else if (this._historyItemsFilter === 'auto') {
|
|
109
|
-
name.textContent = ( localize(
|
|
109
|
+
name.textContent = ( localize(6359, "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(6360, "{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(6361, "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(6362, "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(6363, "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(6364, "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(6365, "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(6366, "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
|
+
6367,
|
|
259
259
|
"All Changes ({0} ↔ {1})",
|
|
260
260
|
historyItemLast.displayId ?? historyItemLast.id,
|
|
261
261
|
historyItem.displayId ?? historyItem.id
|
|
@@ -375,7 +375,7 @@ let HistoryItemRenderer = class HistoryItemRenderer {
|
|
|
375
375
|
{
|
|
376
376
|
commandId: 'workbench.scm.action.graph.copyHistoryItemMessage',
|
|
377
377
|
iconClass: 'codicon.codicon-copy',
|
|
378
|
-
label: ( localize(
|
|
378
|
+
label: ( localize(6368, "Message")),
|
|
379
379
|
run: () => this._clipboardService.writeText(historyItem.message)
|
|
380
380
|
}
|
|
381
381
|
];
|
|
@@ -396,19 +396,19 @@ let HistoryItemRenderer = class HistoryItemRenderer {
|
|
|
396
396
|
if (historyItem.statistics) {
|
|
397
397
|
markdown.appendMarkdown(`---\n\n`);
|
|
398
398
|
markdown.appendMarkdown(`<span>${historyItem.statistics.files === 1 ?
|
|
399
|
-
( localize(
|
|
400
|
-
( localize(
|
|
399
|
+
( localize(6369, "{0} file changed", historyItem.statistics.files)) :
|
|
400
|
+
( localize(6370, "{0} files changed", historyItem.statistics.files))}</span>`);
|
|
401
401
|
if (historyItem.statistics.insertions) {
|
|
402
402
|
const additionsForegroundColor = colorTheme.getColor(historyItemHoverAdditionsForeground);
|
|
403
403
|
markdown.appendMarkdown(`, <span style="color:${additionsForegroundColor};">${historyItem.statistics.insertions === 1 ?
|
|
404
|
-
( localize(
|
|
405
|
-
( localize(
|
|
404
|
+
( localize(6371, "{0} insertion{1}", historyItem.statistics.insertions, '(+)')) :
|
|
405
|
+
( localize(6372, "{0} insertions{1}", historyItem.statistics.insertions, '(+)'))}</span>`);
|
|
406
406
|
}
|
|
407
407
|
if (historyItem.statistics.deletions) {
|
|
408
408
|
const deletionsForegroundColor = colorTheme.getColor(historyItemHoverDeletionsForeground);
|
|
409
409
|
markdown.appendMarkdown(`, <span style="color:${deletionsForegroundColor};">${historyItem.statistics.deletions === 1 ?
|
|
410
|
-
( localize(
|
|
411
|
-
( localize(
|
|
410
|
+
( localize(6373, "{0} deletion{1}", historyItem.statistics.deletions, '(-)')) :
|
|
411
|
+
( localize(6374, "{0} deletions{1}", historyItem.statistics.deletions, '(-)'))}</span>`);
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
if ((historyItem.references ?? []).length > 0) {
|
|
@@ -475,7 +475,7 @@ let HistoryItemLoadMoreRenderer = class HistoryItemLoadMoreRenderer {
|
|
|
475
475
|
templateData.elementDisposables.add(autorun(reader => {
|
|
476
476
|
const isLoadingMore = this._isLoadingMore.read(reader);
|
|
477
477
|
const icon = `$(${isLoadingMore ? 'loading~spin' : 'fold-down'})`;
|
|
478
|
-
templateData.historyItemPlaceholderLabel.setLabel(( localize(
|
|
478
|
+
templateData.historyItemPlaceholderLabel.setLabel(( localize(6375, "{0} Load More...", icon)));
|
|
479
479
|
}));
|
|
480
480
|
}
|
|
481
481
|
}
|
|
@@ -529,7 +529,7 @@ SCMHistoryViewPaneActionRunner = ( (__decorate([
|
|
|
529
529
|
], SCMHistoryViewPaneActionRunner)));
|
|
530
530
|
class SCMHistoryTreeAccessibilityProvider {
|
|
531
531
|
getWidgetAriaLabel() {
|
|
532
|
-
return ( localize(
|
|
532
|
+
return ( localize(6376, "Source Control History"));
|
|
533
533
|
}
|
|
534
534
|
getAriaLabel(element) {
|
|
535
535
|
if (isSCMRepository(element)) {
|
|
@@ -835,8 +835,8 @@ let RepositoryPicker = class RepositoryPicker extends Disposable {
|
|
|
835
835
|
this._quickInputService = _quickInputService;
|
|
836
836
|
this._scmViewService = _scmViewService;
|
|
837
837
|
this._autoQuickPickItem = {
|
|
838
|
-
label: ( localize(
|
|
839
|
-
description: ( localize(
|
|
838
|
+
label: ( localize(6359, "Auto")),
|
|
839
|
+
description: ( localize(6377, "Show the source control graph for the active repository")),
|
|
840
840
|
repository: 'auto'
|
|
841
841
|
};
|
|
842
842
|
}
|
|
@@ -852,7 +852,7 @@ let RepositoryPicker = class RepositoryPicker extends Disposable {
|
|
|
852
852
|
repository: r
|
|
853
853
|
})))));
|
|
854
854
|
return this._quickInputService.pick(picks, {
|
|
855
|
-
placeHolder: ( localize(
|
|
855
|
+
placeHolder: ( localize(6378, "Select the repository to view, type to filter all repositories"))
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
858
|
};
|
|
@@ -868,21 +868,21 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
|
|
|
868
868
|
this._quickInputService = _quickInputService;
|
|
869
869
|
this._allQuickPickItem = {
|
|
870
870
|
id: 'all',
|
|
871
|
-
label: ( localize(
|
|
872
|
-
description: ( localize(
|
|
871
|
+
label: ( localize(6358, "All")),
|
|
872
|
+
description: ( localize(6361, "All history item references")),
|
|
873
873
|
historyItemRef: 'all'
|
|
874
874
|
};
|
|
875
875
|
this._autoQuickPickItem = {
|
|
876
876
|
id: 'auto',
|
|
877
|
-
label: ( localize(
|
|
878
|
-
description: ( localize(
|
|
877
|
+
label: ( localize(6359, "Auto")),
|
|
878
|
+
description: ( localize(6379, "Current history item reference(s)")),
|
|
879
879
|
historyItemRef: 'auto'
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
882
|
async pickHistoryItemRef() {
|
|
883
883
|
const quickPick = this._quickInputService.createQuickPick({ useSeparators: true });
|
|
884
884
|
this._store.add(quickPick);
|
|
885
|
-
quickPick.placeholder = ( localize(
|
|
885
|
+
quickPick.placeholder = ( localize(6380, "Select one/more history item references to view, type to filter"));
|
|
886
886
|
quickPick.canSelectMany = true;
|
|
887
887
|
quickPick.hideCheckAll = true;
|
|
888
888
|
quickPick.busy = true;
|
|
@@ -1011,7 +1011,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1011
1011
|
container.appendChild(element.root);
|
|
1012
1012
|
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), element.root, {
|
|
1013
1013
|
markdown: {
|
|
1014
|
-
value: ( localize(
|
|
1014
|
+
value: ( localize(6381, "Please refresh the graph using the refresh action ($(refresh)).")),
|
|
1015
1015
|
supportThemeIcons: true
|
|
1016
1016
|
},
|
|
1017
1017
|
markdownNotSupportedFallback: undefined
|
|
@@ -1162,7 +1162,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1162
1162
|
if (Array.isArray(historyItemFilter) &&
|
|
1163
1163
|
!historyItemFilter.find(ref => ref.id === historyItemRef.id)) {
|
|
1164
1164
|
this._notificationService.info(( localize(
|
|
1165
|
-
|
|
1165
|
+
6382,
|
|
1166
1166
|
"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."
|
|
1167
1167
|
)));
|
|
1168
1168
|
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(6355, "Source Control Repositories"));
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
});
|
|
@@ -714,7 +714,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
714
714
|
this.labelService = labelService;
|
|
715
715
|
}
|
|
716
716
|
getWidgetAriaLabel() {
|
|
717
|
-
return ( localize(
|
|
717
|
+
return ( localize(6338, "Source Control Management"));
|
|
718
718
|
}
|
|
719
719
|
getAriaLabel(element) {
|
|
720
720
|
if (ResourceTree.isResourceNode(element)) {
|
|
@@ -724,7 +724,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
724
724
|
return `${element.provider.name} ${element.provider.label}`;
|
|
725
725
|
}
|
|
726
726
|
else if (isSCMInput(element)) {
|
|
727
|
-
return ( localize(
|
|
727
|
+
return ( localize(6339, "Source Control Input"));
|
|
728
728
|
}
|
|
729
729
|
else if (isSCMActionButton(element)) {
|
|
730
730
|
return element.button?.command.title ?? '';
|
|
@@ -772,7 +772,7 @@ const ContextKeys = {
|
|
|
772
772
|
}
|
|
773
773
|
};
|
|
774
774
|
MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
775
|
-
title: ( localize(
|
|
775
|
+
title: ( localize(6340, "View & Sort")),
|
|
776
776
|
submenu: Menus.ViewSort,
|
|
777
777
|
when: ( (ContextKeyExpr.and(
|
|
778
778
|
(ContextKeyExpr.equals('view', VIEW_PANE_ID)),
|
|
@@ -782,7 +782,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
|
782
782
|
order: 1
|
|
783
783
|
});
|
|
784
784
|
MenuRegistry.appendMenuItem(Menus.ViewSort, {
|
|
785
|
-
title: ( localize(
|
|
785
|
+
title: ( localize(6341, "Repositories")),
|
|
786
786
|
submenu: Menus.Repositories,
|
|
787
787
|
when: ContextKeyExpr.greater(ContextKeys.RepositoryCount.key, 1),
|
|
788
788
|
group: '0_repositories'
|
|
@@ -875,7 +875,7 @@ class SetListViewModeAction extends ViewAction {
|
|
|
875
875
|
constructor(id = 'workbench.scm.action.setListViewMode', menu = {}) {
|
|
876
876
|
super({
|
|
877
877
|
id,
|
|
878
|
-
title: ( localize(
|
|
878
|
+
title: ( localize(6342, "View as List")),
|
|
879
879
|
viewId: VIEW_PANE_ID,
|
|
880
880
|
f1: false,
|
|
881
881
|
icon: Codicon.listTree,
|
|
@@ -905,7 +905,7 @@ class SetTreeViewModeAction extends ViewAction {
|
|
|
905
905
|
constructor(id = 'workbench.scm.action.setTreeViewMode', menu = {}) {
|
|
906
906
|
super({
|
|
907
907
|
id,
|
|
908
|
-
title: ( localize(
|
|
908
|
+
title: ( localize(6343, "View as Tree")),
|
|
909
909
|
viewId: VIEW_PANE_ID,
|
|
910
910
|
f1: false,
|
|
911
911
|
icon: Codicon.listFlat,
|
|
@@ -962,17 +962,17 @@ class RepositorySortAction extends ViewAction {
|
|
|
962
962
|
}
|
|
963
963
|
class RepositorySortByDiscoveryTimeAction extends RepositorySortAction {
|
|
964
964
|
constructor() {
|
|
965
|
-
super("discoveryTime" , ( localize(
|
|
965
|
+
super("discoveryTime" , ( localize(6344, "Sort by Discovery Time")));
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
class RepositorySortByNameAction extends RepositorySortAction {
|
|
969
969
|
constructor() {
|
|
970
|
-
super("name" , ( localize(
|
|
970
|
+
super("name" , ( localize(6345, "Sort by Name")));
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
973
|
class RepositorySortByPathAction extends RepositorySortAction {
|
|
974
974
|
constructor() {
|
|
975
|
-
super("path" , ( localize(
|
|
975
|
+
super("path" , ( localize(6346, "Sort by Path")));
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
registerAction2(RepositorySortByDiscoveryTimeAction);
|
|
@@ -997,17 +997,17 @@ class SetSortKeyAction extends ViewAction {
|
|
|
997
997
|
}
|
|
998
998
|
class SetSortByNameAction extends SetSortKeyAction {
|
|
999
999
|
constructor() {
|
|
1000
|
-
super("name" , ( localize(
|
|
1000
|
+
super("name" , ( localize(6347, "Sort Changes by Name")));
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
class SetSortByPathAction extends SetSortKeyAction {
|
|
1004
1004
|
constructor() {
|
|
1005
|
-
super("path" , ( localize(
|
|
1005
|
+
super("path" , ( localize(6348, "Sort Changes by Path")));
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
1008
|
class SetSortByStatusAction extends SetSortKeyAction {
|
|
1009
1009
|
constructor() {
|
|
1010
|
-
super("status" , ( localize(
|
|
1010
|
+
super("status" , ( localize(6349, "Sort Changes by Status")));
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
registerAction2(SetSortByNameAction);
|
|
@@ -1017,7 +1017,7 @@ class CollapseAllRepositoriesAction extends ViewAction {
|
|
|
1017
1017
|
constructor() {
|
|
1018
1018
|
super({
|
|
1019
1019
|
id: `workbench.scm.action.collapseAllRepositories`,
|
|
1020
|
-
title: ( localize(
|
|
1020
|
+
title: ( localize(6350, "Collapse All Repositories")),
|
|
1021
1021
|
viewId: VIEW_PANE_ID,
|
|
1022
1022
|
f1: false,
|
|
1023
1023
|
icon: Codicon.collapseAll,
|
|
@@ -1040,7 +1040,7 @@ class ExpandAllRepositoriesAction extends ViewAction {
|
|
|
1040
1040
|
constructor() {
|
|
1041
1041
|
super({
|
|
1042
1042
|
id: `workbench.scm.action.expandAllRepositories`,
|
|
1043
|
-
title: ( localize(
|
|
1043
|
+
title: ( localize(6351, "Expand All Repositories")),
|
|
1044
1044
|
viewId: VIEW_PANE_ID,
|
|
1045
1045
|
f1: false,
|
|
1046
1046
|
icon: Codicon.expandAll,
|
|
@@ -1111,10 +1111,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
1111
1111
|
this._onDidChange = ( (new Emitter()));
|
|
1112
1112
|
this.onDidChange = this._onDidChange.event;
|
|
1113
1113
|
this._disposables = this._register(( (new MutableDisposable())));
|
|
1114
|
-
this._dropdownAction = ( (new Action('scmInputMoreActions', ( localize(
|
|
1114
|
+
this._dropdownAction = ( (new Action('scmInputMoreActions', ( localize(6352, "More Actions...")), 'codicon-chevron-down')));
|
|
1115
1115
|
this._cancelAction = ( (new MenuItemAction({
|
|
1116
1116
|
id: "scm.input.cancelAction" ,
|
|
1117
|
-
title: ( localize(
|
|
1117
|
+
title: ( localize(6353, "Cancel")),
|
|
1118
1118
|
icon: Codicon.debugStop,
|
|
1119
1119
|
}, undefined, undefined, undefined, undefined, contextKeyService, commandService)));
|
|
1120
1120
|
}
|
|
@@ -1564,7 +1564,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
const actionsContainer = append(validationContainer, $('.scm-editor-validation-actions'));
|
|
1566
1566
|
const actionbar = ( (new ActionBar(actionsContainer)));
|
|
1567
|
-
const action = ( (new Action('scmInputWidget.validationMessage.close', ( localize(
|
|
1567
|
+
const action = ( (new Action('scmInputWidget.validationMessage.close', ( localize(6354, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
1568
1568
|
this.contextViewService.hideContextView();
|
|
1569
1569
|
this.element.style.borderBottomLeftRadius = '2px';
|
|
1570
1570
|
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(6337, "Source Control"));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
SCMViewPaneContainer = ( (__decorate([
|