@codingame/monaco-vscode-scm-service-override 22.1.4 → 22.1.6
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 +15 -15
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +5 -5
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffDecorator.js +3 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffWidget.js +13 -13
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +82 -82
- package/vscode/src/vs/workbench/contrib/scm/browser/scmAccessibilityHelp.js +23 -23
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.js +24 -24
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +22 -22
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-scm-service-override",
|
|
3
|
-
"version": "22.1.
|
|
3
|
+
"version": "22.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - scm service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common": "22.1.
|
|
19
|
-
"@codingame/monaco-vscode-27663a0b-1249-58ba-9085-e52d706b50bc-common": "22.1.
|
|
20
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "22.1.
|
|
21
|
-
"@codingame/monaco-vscode-5084de40-f866-5cb5-9d9b-33a10f6f235d-common": "22.1.
|
|
22
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "22.1.
|
|
23
|
-
"@codingame/monaco-vscode-7969284a-1a12-5148-9750-fcf9656a693f-common": "22.1.
|
|
24
|
-
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "22.1.
|
|
25
|
-
"@codingame/monaco-vscode-api": "22.1.
|
|
26
|
-
"@codingame/monaco-vscode-bb83fe45-f4c7-5673-b9f1-5c409a63f19c-common": "22.1.
|
|
27
|
-
"@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "22.1.
|
|
28
|
-
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "22.1.
|
|
29
|
-
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "22.1.
|
|
30
|
-
"@codingame/monaco-vscode-e39a1c8f-7892-5d9b-9987-7b10b79e1a0a-common": "22.1.
|
|
31
|
-
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "22.1.
|
|
18
|
+
"@codingame/monaco-vscode-09e9b2e8-42a8-5a68-864f-bfcdad0ca1df-common": "22.1.6",
|
|
19
|
+
"@codingame/monaco-vscode-27663a0b-1249-58ba-9085-e52d706b50bc-common": "22.1.6",
|
|
20
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "22.1.6",
|
|
21
|
+
"@codingame/monaco-vscode-5084de40-f866-5cb5-9d9b-33a10f6f235d-common": "22.1.6",
|
|
22
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "22.1.6",
|
|
23
|
+
"@codingame/monaco-vscode-7969284a-1a12-5148-9750-fcf9656a693f-common": "22.1.6",
|
|
24
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "22.1.6",
|
|
25
|
+
"@codingame/monaco-vscode-api": "22.1.6",
|
|
26
|
+
"@codingame/monaco-vscode-bb83fe45-f4c7-5673-b9f1-5c409a63f19c-common": "22.1.6",
|
|
27
|
+
"@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "22.1.6",
|
|
28
|
+
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "22.1.6",
|
|
29
|
+
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "22.1.6",
|
|
30
|
+
"@codingame/monaco-vscode-e39a1c8f-7892-5d9b-9987-7b10b79e1a0a-common": "22.1.6",
|
|
31
|
+
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "22.1.6"
|
|
32
32
|
},
|
|
33
33
|
"main": "index.js",
|
|
34
34
|
"module": "index.js",
|
|
@@ -104,7 +104,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
104
104
|
if (count === 0) {
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
const badge = ( new NumberBadge(count, num => ( localize(
|
|
107
|
+
const badge = ( new NumberBadge(count, num => ( localize(9982, '{0} pending changes', num))));
|
|
108
108
|
store.add(this.activityService.showViewActivity(VIEW_PANE_ID, { badge }));
|
|
109
109
|
}
|
|
110
110
|
_updateStatusBar(repository, commands, store) {
|
|
@@ -130,7 +130,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
130
130
|
repoAgnosticActionName = '';
|
|
131
131
|
}
|
|
132
132
|
const statusbarEntry = {
|
|
133
|
-
name: ( localize(
|
|
133
|
+
name: ( localize(9983, "Source Control")) + (repoAgnosticActionName ? ` ${repoAgnosticActionName}` : ''),
|
|
134
134
|
text: command.title,
|
|
135
135
|
ariaLabel: tooltip,
|
|
136
136
|
tooltip,
|
|
@@ -145,7 +145,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
145
145
|
? `$(${repository.provider.iconPath.id})`
|
|
146
146
|
: '$(repo)';
|
|
147
147
|
const repositoryStatusbarEntry = {
|
|
148
|
-
name: ( localize(
|
|
148
|
+
name: ( localize(9984, "Source Control Provider")),
|
|
149
149
|
text: `${icon} ${repository.provider.name}`,
|
|
150
150
|
ariaLabel: label,
|
|
151
151
|
tooltip: label,
|
|
@@ -174,8 +174,8 @@ let SCMActiveResourceContextKeyController = class SCMActiveResourceContextKeyCon
|
|
|
174
174
|
this.scmService = scmService;
|
|
175
175
|
this.uriIdentityService = uriIdentityService;
|
|
176
176
|
this._onDidRepositoryChange = ( new Emitter());
|
|
177
|
-
const activeResourceHasChangesContextKey = ( new RawContextKey('scmActiveResourceHasChanges', false, ( localize(
|
|
178
|
-
const activeResourceRepositoryContextKey = ( new RawContextKey('scmActiveResourceRepository', undefined, ( localize(
|
|
177
|
+
const activeResourceHasChangesContextKey = ( new RawContextKey('scmActiveResourceHasChanges', false, ( localize(9985, "Whether the active resource has changes"))));
|
|
178
|
+
const activeResourceRepositoryContextKey = ( new RawContextKey('scmActiveResourceRepository', undefined, ( localize(9986, "The active resource's repository"))));
|
|
179
179
|
this._repositories = observableFromEvent(this, Event.any(this.scmService.onDidAddRepository, this.scmService.onDidRemoveRepository), () => this.scmService.repositories);
|
|
180
180
|
this._store.add(autorunWithStore((reader, store) => {
|
|
181
181
|
for (const repository of this._repositories.read(reader)) {
|
|
@@ -278,7 +278,7 @@ SCMMenus = ( __decorate([
|
|
|
278
278
|
( __param(1, IInstantiationService))
|
|
279
279
|
], SCMMenus));
|
|
280
280
|
MenuRegistry.appendMenuItem(MenuId.SCMResourceContext, {
|
|
281
|
-
title: ( localize(
|
|
281
|
+
title: ( localize(9987, "Share")),
|
|
282
282
|
submenu: MenuId.SCMResourceContextShare,
|
|
283
283
|
group: '45_share',
|
|
284
284
|
order: 3,
|
|
@@ -61,7 +61,7 @@ let QuickDiffDecorator = QuickDiffDecorator_1 = class QuickDiffDecorator extends
|
|
|
61
61
|
const gutter = decorations === 'all' || decorations === 'gutter';
|
|
62
62
|
const overview = decorations === 'all' || decorations === 'overview';
|
|
63
63
|
const minimap = decorations === 'all' || decorations === 'minimap';
|
|
64
|
-
const diffAdded = ( localize(
|
|
64
|
+
const diffAdded = ( localize(9988, 'Added lines'));
|
|
65
65
|
const diffAddedOptions = {
|
|
66
66
|
gutter,
|
|
67
67
|
overview: { active: overview, color: overviewRulerAddedForeground },
|
|
@@ -72,7 +72,7 @@ let QuickDiffDecorator = QuickDiffDecorator_1 = class QuickDiffDecorator extends
|
|
|
72
72
|
this.addedPatternOptions = QuickDiffDecorator_1.createDecoration('dirty-diff-added primary pattern', diffAdded, diffAddedOptions);
|
|
73
73
|
this.addedSecondaryOptions = QuickDiffDecorator_1.createDecoration('dirty-diff-added secondary', diffAdded, diffAddedOptions);
|
|
74
74
|
this.addedSecondaryPatternOptions = QuickDiffDecorator_1.createDecoration('dirty-diff-added secondary pattern', diffAdded, diffAddedOptions);
|
|
75
|
-
const diffModified = ( localize(
|
|
75
|
+
const diffModified = ( localize(9989, 'Changed lines'));
|
|
76
76
|
const diffModifiedOptions = {
|
|
77
77
|
gutter,
|
|
78
78
|
overview: { active: overview, color: overviewRulerModifiedForeground },
|
|
@@ -83,7 +83,7 @@ let QuickDiffDecorator = QuickDiffDecorator_1 = class QuickDiffDecorator extends
|
|
|
83
83
|
this.modifiedPatternOptions = QuickDiffDecorator_1.createDecoration('dirty-diff-modified primary pattern', diffModified, diffModifiedOptions);
|
|
84
84
|
this.modifiedSecondaryOptions = QuickDiffDecorator_1.createDecoration('dirty-diff-modified secondary', diffModified, diffModifiedOptions);
|
|
85
85
|
this.modifiedSecondaryPatternOptions = QuickDiffDecorator_1.createDecoration('dirty-diff-modified secondary pattern', diffModified, diffModifiedOptions);
|
|
86
|
-
const diffDeleted = ( localize(
|
|
86
|
+
const diffDeleted = ( localize(9990, 'Removed lines'));
|
|
87
87
|
const diffDeletedOptions = {
|
|
88
88
|
gutter,
|
|
89
89
|
overview: { active: overview, color: overviewRulerDeletedForeground },
|
|
@@ -68,7 +68,7 @@ let QuickDiffPickerViewItem = class QuickDiffPickerViewItem extends SelectAction
|
|
|
68
68
|
const peekTitleColor = theme.getColor(peekViewTitleBackground);
|
|
69
69
|
const opaqueTitleColor = peekTitleColor?.makeOpaque(editorBackgroundColor) ?? editorBackgroundColor;
|
|
70
70
|
styles.selectBackground = ( ( opaqueTitleColor.lighten(.6)).toString());
|
|
71
|
-
super(null, action, [], 0, contextViewService, styles, { ariaLabel: ( localize(
|
|
71
|
+
super(null, action, [], 0, contextViewService, styles, { ariaLabel: ( localize(9991, 'Switch quick diff base')), useCustomDrawn: !hasNativeContextMenu(configurationService) });
|
|
72
72
|
this.optionsItems = [];
|
|
73
73
|
}
|
|
74
74
|
setSelection(quickDiffs, providerId) {
|
|
@@ -91,7 +91,7 @@ QuickDiffPickerViewItem = ( __decorate([
|
|
|
91
91
|
], QuickDiffPickerViewItem));
|
|
92
92
|
class QuickDiffPickerBaseAction extends Action {
|
|
93
93
|
static { this.ID = 'quickDiff.base.switch'; }
|
|
94
|
-
static { this.LABEL = ( localize(
|
|
94
|
+
static { this.LABEL = ( localize(9992, "Switch Quick Diff Base")); }
|
|
95
95
|
constructor(callback) {
|
|
96
96
|
super(QuickDiffPickerBaseAction.ID, QuickDiffPickerBaseAction.LABEL, undefined, undefined);
|
|
97
97
|
this.callback = callback;
|
|
@@ -218,14 +218,14 @@ let QuickDiffWidget = class QuickDiffWidget extends PeekViewWidget {
|
|
|
218
218
|
.find(quickDiff => quickDiff.id === this._providerId)?.label ?? '';
|
|
219
219
|
detail = this.model.changes.length > 1
|
|
220
220
|
? ( localize(
|
|
221
|
-
|
|
221
|
+
9993,
|
|
222
222
|
"{0} - {1} of {2} changes",
|
|
223
223
|
label,
|
|
224
224
|
providerIndex + 1,
|
|
225
225
|
providerChanges.length
|
|
226
226
|
))
|
|
227
227
|
: ( localize(
|
|
228
|
-
|
|
228
|
+
9994,
|
|
229
229
|
"{0} - {1} of {2} change",
|
|
230
230
|
label,
|
|
231
231
|
providerIndex + 1,
|
|
@@ -235,8 +235,8 @@ let QuickDiffWidget = class QuickDiffWidget extends PeekViewWidget {
|
|
|
235
235
|
}
|
|
236
236
|
else {
|
|
237
237
|
detail = this.model.changes.length > 1
|
|
238
|
-
? ( localize(
|
|
239
|
-
: ( localize(
|
|
238
|
+
? ( localize(9995, "{0} of {1} changes", providerIndex + 1, providerChanges.length))
|
|
239
|
+
: ( localize(9996, "{0} of {1} change", providerIndex + 1, providerChanges.length));
|
|
240
240
|
this.dropdownContainer.style.display = 'inherit';
|
|
241
241
|
}
|
|
242
242
|
this.setTitle(this.title, detail);
|
|
@@ -285,7 +285,7 @@ let QuickDiffWidget = class QuickDiffWidget extends PeekViewWidget {
|
|
|
285
285
|
this._actionbarWidget.clear();
|
|
286
286
|
this._actionbarWidget.push(actions.reverse(), { label: false, icon: true });
|
|
287
287
|
this._actionbarWidget.push([next, previous], { label: false, icon: true });
|
|
288
|
-
this._actionbarWidget.push(this._disposables.add(( new Action('peekview.close', ( localize(
|
|
288
|
+
this._actionbarWidget.push(this._disposables.add(( new Action('peekview.close', ( localize(9997, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => this.dispose()))), { label: false, icon: true });
|
|
289
289
|
}
|
|
290
290
|
updateDropdown() {
|
|
291
291
|
const quickDiffs = this.getQuickDiffsContainingChange();
|
|
@@ -636,7 +636,7 @@ class ShowPreviousChangeAction extends EditorAction {
|
|
|
636
636
|
constructor(outerEditor) {
|
|
637
637
|
super({
|
|
638
638
|
id: 'editor.action.dirtydiff.previous',
|
|
639
|
-
label: ( localize2(
|
|
639
|
+
label: ( localize2(9998, "Show Previous Change")),
|
|
640
640
|
precondition: ( TextCompareEditorActiveContext.toNegated()),
|
|
641
641
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod.Shift | KeyMod.Alt | KeyCode.F3, weight: KeybindingWeight.EditorContrib }
|
|
642
642
|
});
|
|
@@ -662,7 +662,7 @@ class ShowNextChangeAction extends EditorAction {
|
|
|
662
662
|
constructor(outerEditor) {
|
|
663
663
|
super({
|
|
664
664
|
id: 'editor.action.dirtydiff.next',
|
|
665
|
-
label: ( localize2(
|
|
665
|
+
label: ( localize2(9999, "Show Next Change")),
|
|
666
666
|
precondition: ( TextCompareEditorActiveContext.toNegated()),
|
|
667
667
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod.Alt | KeyCode.F3, weight: KeybindingWeight.EditorContrib }
|
|
668
668
|
});
|
|
@@ -688,7 +688,7 @@ class GotoPreviousChangeAction extends EditorAction {
|
|
|
688
688
|
constructor() {
|
|
689
689
|
super({
|
|
690
690
|
id: 'workbench.action.editor.previousChange',
|
|
691
|
-
label: ( localize2(
|
|
691
|
+
label: ( localize2(10000, "Go to Previous Change")),
|
|
692
692
|
precondition: ( ContextKeyExpr.and(( TextCompareEditorActiveContext.toNegated()), ( quickDiffDecorationCount.notEqualsTo(0)))),
|
|
693
693
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod.Shift | KeyMod.Alt | KeyCode.F5, weight: KeybindingWeight.EditorContrib }
|
|
694
694
|
});
|
|
@@ -723,7 +723,7 @@ class GotoNextChangeAction extends EditorAction {
|
|
|
723
723
|
constructor() {
|
|
724
724
|
super({
|
|
725
725
|
id: 'workbench.action.editor.nextChange',
|
|
726
|
-
label: ( localize2(
|
|
726
|
+
label: ( localize2(10001, "Go to Next Change")),
|
|
727
727
|
precondition: ( ContextKeyExpr.and(( TextCompareEditorActiveContext.toNegated()), ( quickDiffDecorationCount.notEqualsTo(0)))),
|
|
728
728
|
kbOpts: { kbExpr: EditorContextKeys.editorTextFocus, primary: KeyMod.Alt | KeyCode.F5, weight: KeybindingWeight.EditorContrib }
|
|
729
729
|
});
|
|
@@ -758,7 +758,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
758
758
|
group: '7_change_nav',
|
|
759
759
|
command: {
|
|
760
760
|
id: 'editor.action.dirtydiff.next',
|
|
761
|
-
title: ( localize(
|
|
761
|
+
title: ( localize(10002, "Next &&Change"))
|
|
762
762
|
},
|
|
763
763
|
order: 1
|
|
764
764
|
});
|
|
@@ -766,7 +766,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
766
766
|
group: '7_change_nav',
|
|
767
767
|
command: {
|
|
768
768
|
id: 'editor.action.dirtydiff.previous',
|
|
769
|
-
title: ( localize(
|
|
769
|
+
title: ( localize(10003, "Previous &&Change"))
|
|
770
770
|
},
|
|
771
771
|
order: 2
|
|
772
772
|
});
|
|
@@ -58,10 +58,10 @@ ModesRegistry.registerLanguage({
|
|
|
58
58
|
( Registry.as(Extensions.Workbench))
|
|
59
59
|
.registerWorkbenchContribution(QuickDiffWorkbenchController, LifecyclePhase.Restored);
|
|
60
60
|
registerEditorContribution(QuickDiffEditorController.ID, QuickDiffEditorController, EditorContributionInstantiation.AfterFirstRender);
|
|
61
|
-
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(
|
|
61
|
+
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(10004, 'View icon of the Source Control view.')));
|
|
62
62
|
const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).registerViewContainer({
|
|
63
63
|
id: VIEWLET_ID,
|
|
64
|
-
title: ( localize2(
|
|
64
|
+
title: ( localize2(10005, 'Source Control')),
|
|
65
65
|
ctorDescriptor: ( new SyncDescriptor(SCMViewPaneContainer)),
|
|
66
66
|
storageId: 'workbench.scm.views.state',
|
|
67
67
|
icon: sourceControlViewIcon,
|
|
@@ -70,25 +70,25 @@ const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).regist
|
|
|
70
70
|
hideIfEmpty: true,
|
|
71
71
|
}, ViewContainerLocation.Sidebar, { doNotRegisterOpenCommand: true });
|
|
72
72
|
const viewsRegistry = ( Registry.as(Extensions$1.ViewsRegistry));
|
|
73
|
-
const containerTitle = ( localize(
|
|
73
|
+
const containerTitle = ( localize(10006, "Source Control"));
|
|
74
74
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
75
|
-
content: ( localize(
|
|
75
|
+
content: ( localize(10007, "No source control providers registered.")),
|
|
76
76
|
when: 'default'
|
|
77
77
|
});
|
|
78
78
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
79
79
|
content: ( localize(
|
|
80
|
-
|
|
80
|
+
10008,
|
|
81
81
|
"None of the registered source control providers work in Restricted Mode."
|
|
82
82
|
)),
|
|
83
83
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scm.providerCount', 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
84
84
|
});
|
|
85
85
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
86
|
-
content: `[${( localize(
|
|
86
|
+
content: `[${( localize(10009, "Manage Workspace Trust"))}](command:${MANAGE_TRUST_COMMAND_ID})`,
|
|
87
87
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scm.providerCount', 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
88
88
|
});
|
|
89
89
|
viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
90
90
|
content: ( localize(
|
|
91
|
-
|
|
91
|
+
10010,
|
|
92
92
|
"The selected source control provider does not have any source control history items."
|
|
93
93
|
)),
|
|
94
94
|
when: ( ContextKeys.SCMHistoryItemCount.isEqualTo(0))
|
|
@@ -96,8 +96,8 @@ viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
|
96
96
|
viewsRegistry.registerViews([{
|
|
97
97
|
id: REPOSITORIES_VIEW_PANE_ID,
|
|
98
98
|
containerTitle,
|
|
99
|
-
name: ( localize2(
|
|
100
|
-
singleViewPaneContainerTitle: ( localize(
|
|
99
|
+
name: ( localize2(10011, "Repositories")),
|
|
100
|
+
singleViewPaneContainerTitle: ( localize(10012, "Source Control Repositories")),
|
|
101
101
|
ctorDescriptor: ( new SyncDescriptor(SCMRepositoriesViewPane)),
|
|
102
102
|
canToggleVisibility: true,
|
|
103
103
|
hideByDefault: true,
|
|
@@ -110,7 +110,7 @@ viewsRegistry.registerViews([{
|
|
|
110
110
|
viewsRegistry.registerViews([{
|
|
111
111
|
id: VIEW_PANE_ID,
|
|
112
112
|
containerTitle,
|
|
113
|
-
name: ( localize2(
|
|
113
|
+
name: ( localize2(10013, 'Changes')),
|
|
114
114
|
singleViewPaneContainerTitle: containerTitle,
|
|
115
115
|
ctorDescriptor: ( new SyncDescriptor(SCMViewPane)),
|
|
116
116
|
canToggleVisibility: true,
|
|
@@ -120,7 +120,7 @@ viewsRegistry.registerViews([{
|
|
|
120
120
|
containerIcon: sourceControlViewIcon,
|
|
121
121
|
openCommandActionDescriptor: {
|
|
122
122
|
id: viewContainer.id,
|
|
123
|
-
mnemonicTitle: ( localize(
|
|
123
|
+
mnemonicTitle: ( localize(10014, "Source &&Control")),
|
|
124
124
|
keybindings: {
|
|
125
125
|
primary: 0,
|
|
126
126
|
win: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyG },
|
|
@@ -133,8 +133,8 @@ viewsRegistry.registerViews([{
|
|
|
133
133
|
viewsRegistry.registerViews([{
|
|
134
134
|
id: HISTORY_VIEW_PANE_ID,
|
|
135
135
|
containerTitle,
|
|
136
|
-
name: ( localize2(
|
|
137
|
-
singleViewPaneContainerTitle: ( localize(
|
|
136
|
+
name: ( localize2(10015, "Graph")),
|
|
137
|
+
singleViewPaneContainerTitle: ( localize(10016, "Source Control Graph")),
|
|
138
138
|
ctorDescriptor: ( new SyncDescriptor(SCMHistoryViewPane)),
|
|
139
139
|
canToggleVisibility: true,
|
|
140
140
|
canMoveView: true,
|
|
@@ -152,7 +152,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
152
152
|
( Registry.as(Extensions$2.Configuration)).registerConfiguration({
|
|
153
153
|
id: 'scm',
|
|
154
154
|
order: 5,
|
|
155
|
-
title: ( localize(
|
|
155
|
+
title: ( localize(10017, "Source Control")),
|
|
156
156
|
type: 'object',
|
|
157
157
|
scope: ConfigurationScope.RESOURCE,
|
|
158
158
|
properties: {
|
|
@@ -160,21 +160,21 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
160
160
|
type: 'string',
|
|
161
161
|
enum: ['all', 'gutter', 'overview', 'minimap', 'none'],
|
|
162
162
|
enumDescriptions: [
|
|
163
|
-
( localize(
|
|
164
|
-
( localize(
|
|
165
|
-
( localize(
|
|
166
|
-
( localize(
|
|
167
|
-
( localize(
|
|
163
|
+
( localize(10018, "Show the diff decorations in all available locations.")),
|
|
164
|
+
( localize(10019, "Show the diff decorations only in the editor gutter.")),
|
|
165
|
+
( localize(10020, "Show the diff decorations only in the overview ruler.")),
|
|
166
|
+
( localize(10021, "Show the diff decorations only in the minimap.")),
|
|
167
|
+
( localize(10022, "Do not show the diff decorations."))
|
|
168
168
|
],
|
|
169
169
|
default: 'all',
|
|
170
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(10023, "Controls diff decorations in the editor."))
|
|
171
171
|
},
|
|
172
172
|
'scm.diffDecorationsGutterWidth': {
|
|
173
173
|
type: 'number',
|
|
174
174
|
enum: [1, 2, 3, 4, 5],
|
|
175
175
|
default: 3,
|
|
176
176
|
description: ( localize(
|
|
177
|
-
|
|
177
|
+
10024,
|
|
178
178
|
"Controls the width(px) of diff decorations in gutter (added & modified)."
|
|
179
179
|
))
|
|
180
180
|
},
|
|
@@ -182,11 +182,11 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
182
182
|
type: 'string',
|
|
183
183
|
enum: ['always', 'hover'],
|
|
184
184
|
enumDescriptions: [
|
|
185
|
-
( localize(
|
|
186
|
-
( localize(
|
|
185
|
+
( localize(10025, "Show the diff decorator in the gutter at all times.")),
|
|
186
|
+
( localize(10026, "Show the diff decorator in the gutter only on hover."))
|
|
187
187
|
],
|
|
188
188
|
description: ( localize(
|
|
189
|
-
|
|
189
|
+
10027,
|
|
190
190
|
"Controls the visibility of the Source Control diff decorator in the gutter."
|
|
191
191
|
)),
|
|
192
192
|
default: 'always'
|
|
@@ -195,28 +195,28 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
195
195
|
type: 'string',
|
|
196
196
|
enum: ['diff', 'none'],
|
|
197
197
|
enumDescriptions: [
|
|
198
|
-
( localize(
|
|
199
|
-
( localize(
|
|
198
|
+
( localize(10028, "Show the inline diff Peek view on click.")),
|
|
199
|
+
( localize(10029, "Do nothing."))
|
|
200
200
|
],
|
|
201
|
-
description: ( localize(
|
|
201
|
+
description: ( localize(10030, "Controls the behavior of Source Control diff gutter decorations.")),
|
|
202
202
|
default: 'diff'
|
|
203
203
|
},
|
|
204
204
|
'scm.diffDecorationsGutterPattern': {
|
|
205
205
|
type: 'object',
|
|
206
206
|
description: ( localize(
|
|
207
|
-
|
|
207
|
+
10031,
|
|
208
208
|
"Controls whether a pattern is used for the diff decorations in gutter."
|
|
209
209
|
)),
|
|
210
210
|
additionalProperties: false,
|
|
211
211
|
properties: {
|
|
212
212
|
'added': {
|
|
213
213
|
type: 'boolean',
|
|
214
|
-
description: ( localize(
|
|
214
|
+
description: ( localize(10032, "Use pattern for the diff decorations in gutter for added lines.")),
|
|
215
215
|
},
|
|
216
216
|
'modified': {
|
|
217
217
|
type: 'boolean',
|
|
218
218
|
description: ( localize(
|
|
219
|
-
|
|
219
|
+
10033,
|
|
220
220
|
"Use pattern for the diff decorations in gutter for modified lines."
|
|
221
221
|
)),
|
|
222
222
|
},
|
|
@@ -230,12 +230,12 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
230
230
|
type: 'string',
|
|
231
231
|
enum: ['true', 'false', 'inherit'],
|
|
232
232
|
enumDescriptions: [
|
|
233
|
-
( localize(
|
|
234
|
-
( localize(
|
|
235
|
-
( localize(
|
|
233
|
+
( localize(10034, "Ignore leading and trailing whitespace.")),
|
|
234
|
+
( localize(10035, "Do not ignore leading and trailing whitespace.")),
|
|
235
|
+
( localize(10036, "Inherit from `diffEditor.ignoreTrimWhitespace`."))
|
|
236
236
|
],
|
|
237
237
|
description: ( localize(
|
|
238
|
-
|
|
238
|
+
10037,
|
|
239
239
|
"Controls whether leading and trailing whitespace is ignored in Source Control diff gutter decorations."
|
|
240
240
|
)),
|
|
241
241
|
default: 'false'
|
|
@@ -243,7 +243,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
243
243
|
'scm.alwaysShowActions': {
|
|
244
244
|
type: 'boolean',
|
|
245
245
|
description: ( localize(
|
|
246
|
-
|
|
246
|
+
10038,
|
|
247
247
|
"Controls whether inline actions are always visible in the Source Control view."
|
|
248
248
|
)),
|
|
249
249
|
default: false
|
|
@@ -252,12 +252,12 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
252
252
|
type: 'string',
|
|
253
253
|
enum: ['all', 'focused', 'off'],
|
|
254
254
|
enumDescriptions: [
|
|
255
|
-
( localize(
|
|
256
|
-
( localize(
|
|
257
|
-
( localize(
|
|
255
|
+
( localize(10039, "Show the sum of all Source Control Provider count badges.")),
|
|
256
|
+
( localize(10040, "Show the count badge of the focused Source Control Provider.")),
|
|
257
|
+
( localize(10041, "Disable the Source Control count badge."))
|
|
258
258
|
],
|
|
259
259
|
description: ( localize(
|
|
260
|
-
|
|
260
|
+
10042,
|
|
261
261
|
"Controls the count badge on the Source Control icon on the Activity Bar."
|
|
262
262
|
)),
|
|
263
263
|
default: 'all'
|
|
@@ -266,12 +266,12 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
266
266
|
type: 'string',
|
|
267
267
|
enum: ['hidden', 'auto', 'visible'],
|
|
268
268
|
enumDescriptions: [
|
|
269
|
-
( localize(
|
|
270
|
-
( localize(
|
|
271
|
-
( localize(
|
|
269
|
+
( localize(10043, "Hide Source Control Provider count badges.")),
|
|
270
|
+
( localize(10044, "Only show count badge for Source Control Provider when non-zero.")),
|
|
271
|
+
( localize(10045, "Show Source Control Provider count badges."))
|
|
272
272
|
],
|
|
273
273
|
markdownDescription: ( localize(
|
|
274
|
-
|
|
274
|
+
10046,
|
|
275
275
|
"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.",
|
|
276
276
|
'\`#scm.alwaysShowRepositories#\`'
|
|
277
277
|
)),
|
|
@@ -281,22 +281,22 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
281
281
|
type: 'string',
|
|
282
282
|
enum: ['tree', 'list'],
|
|
283
283
|
enumDescriptions: [
|
|
284
|
-
( localize(
|
|
285
|
-
( localize(
|
|
284
|
+
( localize(10047, "Show the repository changes as a tree.")),
|
|
285
|
+
( localize(10048, "Show the repository changes as a list."))
|
|
286
286
|
],
|
|
287
|
-
description: ( localize(
|
|
287
|
+
description: ( localize(10049, "Controls the default Source Control repository view mode.")),
|
|
288
288
|
default: 'list'
|
|
289
289
|
},
|
|
290
290
|
'scm.defaultViewSortKey': {
|
|
291
291
|
type: 'string',
|
|
292
292
|
enum: ['name', 'path', 'status'],
|
|
293
293
|
enumDescriptions: [
|
|
294
|
-
( localize(
|
|
295
|
-
( localize(
|
|
296
|
-
( localize(
|
|
294
|
+
( localize(10050, "Sort the repository changes by file name.")),
|
|
295
|
+
( localize(10051, "Sort the repository changes by path.")),
|
|
296
|
+
( localize(10052, "Sort the repository changes by Source Control status."))
|
|
297
297
|
],
|
|
298
298
|
description: ( localize(
|
|
299
|
-
|
|
299
|
+
10053,
|
|
300
300
|
"Controls the default Source Control repository changes sort order when viewed as a list."
|
|
301
301
|
)),
|
|
302
302
|
default: 'path'
|
|
@@ -304,7 +304,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
304
304
|
'scm.autoReveal': {
|
|
305
305
|
type: 'boolean',
|
|
306
306
|
description: ( localize(
|
|
307
|
-
|
|
307
|
+
10054,
|
|
308
308
|
"Controls whether the Source Control view should automatically reveal and select files when opening them."
|
|
309
309
|
)),
|
|
310
310
|
default: true
|
|
@@ -312,20 +312,20 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
312
312
|
'scm.inputFontFamily': {
|
|
313
313
|
type: 'string',
|
|
314
314
|
markdownDescription: ( localize(
|
|
315
|
-
|
|
315
|
+
10055,
|
|
316
316
|
"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."
|
|
317
317
|
)),
|
|
318
318
|
default: 'default'
|
|
319
319
|
},
|
|
320
320
|
'scm.inputFontSize': {
|
|
321
321
|
type: 'number',
|
|
322
|
-
markdownDescription: ( localize(
|
|
322
|
+
markdownDescription: ( localize(10056, "Controls the font size for the input message in pixels.")),
|
|
323
323
|
default: 13
|
|
324
324
|
},
|
|
325
325
|
'scm.inputMaxLineCount': {
|
|
326
326
|
type: 'number',
|
|
327
327
|
markdownDescription: ( localize(
|
|
328
|
-
|
|
328
|
+
10057,
|
|
329
329
|
"Controls the maximum number of lines that the input will auto-grow to."
|
|
330
330
|
)),
|
|
331
331
|
minimum: 1,
|
|
@@ -335,7 +335,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
335
335
|
'scm.inputMinLineCount': {
|
|
336
336
|
type: 'number',
|
|
337
337
|
markdownDescription: ( localize(
|
|
338
|
-
|
|
338
|
+
10058,
|
|
339
339
|
"Controls the minimum number of lines that the input will auto-grow from."
|
|
340
340
|
)),
|
|
341
341
|
minimum: 1,
|
|
@@ -345,7 +345,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
345
345
|
'scm.alwaysShowRepositories': {
|
|
346
346
|
type: 'boolean',
|
|
347
347
|
markdownDescription: ( localize(
|
|
348
|
-
|
|
348
|
+
10059,
|
|
349
349
|
"Controls whether repositories should always be visible in the Source Control view."
|
|
350
350
|
)),
|
|
351
351
|
default: false
|
|
@@ -355,20 +355,20 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
355
355
|
enum: ['discovery time', 'name', 'path'],
|
|
356
356
|
enumDescriptions: [
|
|
357
357
|
( localize(
|
|
358
|
-
|
|
358
|
+
10060,
|
|
359
359
|
"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."
|
|
360
360
|
)),
|
|
361
361
|
( localize(
|
|
362
|
-
|
|
362
|
+
10061,
|
|
363
363
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
|
|
364
364
|
)),
|
|
365
365
|
( localize(
|
|
366
|
-
|
|
366
|
+
10062,
|
|
367
367
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository path."
|
|
368
368
|
))
|
|
369
369
|
],
|
|
370
370
|
description: ( localize(
|
|
371
|
-
|
|
371
|
+
10063,
|
|
372
372
|
"Controls the sort order of the repositories in the source control repositories view."
|
|
373
373
|
)),
|
|
374
374
|
default: 'discovery time'
|
|
@@ -376,7 +376,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
376
376
|
'scm.repositories.visible': {
|
|
377
377
|
type: 'number',
|
|
378
378
|
description: ( localize(
|
|
379
|
-
|
|
379
|
+
10064,
|
|
380
380
|
"Controls how many repositories are visible in the Source Control Repositories section. Set to 0, to be able to manually resize the view."
|
|
381
381
|
)),
|
|
382
382
|
default: 10
|
|
@@ -384,7 +384,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
384
384
|
'scm.showActionButton': {
|
|
385
385
|
type: 'boolean',
|
|
386
386
|
markdownDescription: ( localize(
|
|
387
|
-
|
|
387
|
+
10065,
|
|
388
388
|
"Controls whether an action button can be shown in the Source Control view."
|
|
389
389
|
)),
|
|
390
390
|
default: true
|
|
@@ -392,7 +392,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
392
392
|
'scm.showInputActionButton': {
|
|
393
393
|
type: 'boolean',
|
|
394
394
|
markdownDescription: ( localize(
|
|
395
|
-
|
|
395
|
+
10066,
|
|
396
396
|
"Controls whether an action button can be shown in the Source Control input."
|
|
397
397
|
)),
|
|
398
398
|
default: true
|
|
@@ -400,7 +400,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
400
400
|
'scm.workingSets.enabled': {
|
|
401
401
|
type: 'boolean',
|
|
402
402
|
description: ( localize(
|
|
403
|
-
|
|
403
|
+
10067,
|
|
404
404
|
"Controls whether to store editor working sets when switching between source control history item groups."
|
|
405
405
|
)),
|
|
406
406
|
default: false
|
|
@@ -410,16 +410,16 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
410
410
|
enum: ['empty', 'current'],
|
|
411
411
|
enumDescriptions: [
|
|
412
412
|
( localize(
|
|
413
|
-
|
|
413
|
+
10068,
|
|
414
414
|
"Use an empty working set when switching to a source control history item group that does not have a working set."
|
|
415
415
|
)),
|
|
416
416
|
( localize(
|
|
417
|
-
|
|
417
|
+
10069,
|
|
418
418
|
"Use the current working set when switching to a source control history item group that does not have a working set."
|
|
419
419
|
))
|
|
420
420
|
],
|
|
421
421
|
description: ( localize(
|
|
422
|
-
|
|
422
|
+
10070,
|
|
423
423
|
"Controls the default working set to use when switching to a source control history item group that does not have a working set."
|
|
424
424
|
)),
|
|
425
425
|
default: 'current'
|
|
@@ -427,7 +427,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
427
427
|
'scm.compactFolders': {
|
|
428
428
|
type: 'boolean',
|
|
429
429
|
description: ( localize(
|
|
430
|
-
|
|
430
|
+
10071,
|
|
431
431
|
"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."
|
|
432
432
|
)),
|
|
433
433
|
default: true
|
|
@@ -435,7 +435,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
435
435
|
'scm.graph.pageOnScroll': {
|
|
436
436
|
type: 'boolean',
|
|
437
437
|
description: ( localize(
|
|
438
|
-
|
|
438
|
+
10072,
|
|
439
439
|
"Controls whether the Source Control Graph view will load the next page of items when you scroll to the end of the list."
|
|
440
440
|
)),
|
|
441
441
|
default: true
|
|
@@ -443,7 +443,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
443
443
|
'scm.graph.pageSize': {
|
|
444
444
|
type: 'number',
|
|
445
445
|
description: ( localize(
|
|
446
|
-
|
|
446
|
+
10073,
|
|
447
447
|
"The number of items to show in the Source Control Graph view by default and when loading more items."
|
|
448
448
|
)),
|
|
449
449
|
minimum: 1,
|
|
@@ -455,16 +455,16 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
455
455
|
enum: ['all', 'filter'],
|
|
456
456
|
enumDescriptions: [
|
|
457
457
|
( localize(
|
|
458
|
-
|
|
458
|
+
10074,
|
|
459
459
|
"Show badges of all history item groups in the Source Control Graph view."
|
|
460
460
|
)),
|
|
461
461
|
( localize(
|
|
462
|
-
|
|
462
|
+
10075,
|
|
463
463
|
"Show only the badges of history item groups used as a filter in the Source Control Graph view."
|
|
464
464
|
))
|
|
465
465
|
],
|
|
466
466
|
description: ( localize(
|
|
467
|
-
|
|
467
|
+
10076,
|
|
468
468
|
"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."
|
|
469
469
|
)),
|
|
470
470
|
default: 'filter'
|
|
@@ -473,7 +473,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
473
473
|
});
|
|
474
474
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
475
475
|
id: 'scm.acceptInput',
|
|
476
|
-
metadata: { description: ( localize(
|
|
476
|
+
metadata: { description: ( localize(10077, "Source Control: Accept Input")), args: [] },
|
|
477
477
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
478
478
|
when: ( ContextKeyExpr.has('scmRepository')),
|
|
479
479
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
@@ -510,7 +510,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
512
|
const viewNextCommitCommand = {
|
|
513
|
-
description: { description: ( localize(
|
|
513
|
+
description: { description: ( localize(10078, "Source Control: View Next Commit")), args: [] },
|
|
514
514
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
515
515
|
handler: (accessor) => {
|
|
516
516
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -522,7 +522,7 @@ const viewNextCommitCommand = {
|
|
|
522
522
|
}
|
|
523
523
|
};
|
|
524
524
|
const viewPreviousCommitCommand = {
|
|
525
|
-
description: { description: ( localize(
|
|
525
|
+
description: { description: ( localize(10079, "Source Control: View Previous Commit")), args: [] },
|
|
526
526
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
527
527
|
handler: (accessor) => {
|
|
528
528
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -590,9 +590,9 @@ CommandsRegistry.registerCommand('scm.openInTerminal', async (accessor, provider
|
|
|
590
590
|
CommandsRegistry.registerCommand('scm.setActiveProvider', async (accessor) => {
|
|
591
591
|
const instantiationService = accessor.get(IInstantiationService);
|
|
592
592
|
const scmViewService = accessor.get(ISCMViewService);
|
|
593
|
-
const placeHolder = ( localize(
|
|
593
|
+
const placeHolder = ( localize(10080, "Select the active repository, type to filter all repositories"));
|
|
594
594
|
const autoQuickItemDescription = ( localize(
|
|
595
|
-
|
|
595
|
+
10081,
|
|
596
596
|
"The active repository is updated based on focused repository/active editor"
|
|
597
597
|
));
|
|
598
598
|
const repositoryPicker = instantiationService.createInstance(RepositoryPicker, placeHolder, autoQuickItemDescription);
|
|
@@ -606,7 +606,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
606
606
|
group: '99_terminal',
|
|
607
607
|
command: {
|
|
608
608
|
id: 'scm.openInTerminal',
|
|
609
|
-
title: ( localize(
|
|
609
|
+
title: ( localize(10082, "Open in External Terminal"))
|
|
610
610
|
},
|
|
611
611
|
when: ( ContextKeyExpr.and(( RemoteNameContext.isEqualTo('')), ( ContextKeyExpr.equals('scmProviderHasRootUri', true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'external')), ( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))))))
|
|
612
612
|
});
|
|
@@ -614,7 +614,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
614
614
|
group: '99_terminal',
|
|
615
615
|
command: {
|
|
616
616
|
id: 'scm.openInIntegratedTerminal',
|
|
617
|
-
title: ( localize(
|
|
617
|
+
title: ( localize(10083, "Open in Integrated Terminal"))
|
|
618
618
|
},
|
|
619
619
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scmProviderHasRootUri', true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'integrated')), ( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))))))
|
|
620
620
|
});
|
|
@@ -665,7 +665,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
665
665
|
}
|
|
666
666
|
});
|
|
667
667
|
MenuRegistry.appendMenuItem(MenuId.EditorLineNumberContext, {
|
|
668
|
-
title: ( localize(
|
|
668
|
+
title: ( localize(10084, "Diff Decorations")),
|
|
669
669
|
submenu: MenuId.SCMQuickDiffDecorations,
|
|
670
670
|
when: ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.scm.diffDecorations', 'all')), ( ContextKeyExpr.equals('config.scm.diffDecorations', 'gutter')))),
|
|
671
671
|
group: '9_quickDiffDecorations'
|
|
@@ -674,7 +674,7 @@ registerAction2(class extends Action2 {
|
|
|
674
674
|
constructor() {
|
|
675
675
|
super({
|
|
676
676
|
id: 'scm.editor.triggerSetup',
|
|
677
|
-
title: ( localize(
|
|
677
|
+
title: ( localize(10085, "Resolve Conflicts with AI")),
|
|
678
678
|
icon: Codicon.chatSparkle,
|
|
679
679
|
f1: false,
|
|
680
680
|
menu: {
|
|
@@ -55,75 +55,75 @@ let SCMAccessibilityHelpContentProvider = class SCMAccessibilityHelpContentProvi
|
|
|
55
55
|
const content = [];
|
|
56
56
|
if (this._scmViewService.visibleRepositories.length > 1) {
|
|
57
57
|
const repositoryList = ( this._scmViewService.visibleRepositories.map(r => r.provider.name)).join(', ');
|
|
58
|
-
content.push(( localize(
|
|
58
|
+
content.push(( localize(10086, "Visible repositories: {0}", repositoryList)));
|
|
59
59
|
}
|
|
60
60
|
const focusedRepository = this._scmViewService.focusedRepository;
|
|
61
61
|
if (focusedRepository) {
|
|
62
|
-
content.push(( localize(
|
|
62
|
+
content.push(( localize(10087, "Repository: {0}", focusedRepository.provider.name)));
|
|
63
63
|
const currentHistoryItemRef = focusedRepository.provider.historyProvider.get()?.historyItemRef.get();
|
|
64
64
|
if (currentHistoryItemRef) {
|
|
65
|
-
content.push(( localize(
|
|
65
|
+
content.push(( localize(10088, "History item reference: {0}", currentHistoryItemRef.name)));
|
|
66
66
|
}
|
|
67
67
|
if (focusedRepository.input.visible && focusedRepository.input.enabled && focusedRepository.input.value !== '') {
|
|
68
|
-
content.push(( localize(
|
|
68
|
+
content.push(( localize(10089, "Commit message: {0}", focusedRepository.input.value)));
|
|
69
69
|
}
|
|
70
70
|
const actionButton = focusedRepository.provider.actionButton.get();
|
|
71
71
|
if (actionButton) {
|
|
72
72
|
const label = actionButton.command.tooltip ?? actionButton.command.title;
|
|
73
|
-
const enablementLabel = actionButton.enabled ? ( localize(
|
|
74
|
-
content.push(( localize(
|
|
73
|
+
const enablementLabel = actionButton.enabled ? ( localize(10090, "enabled")) : ( localize(10091, "disabled"));
|
|
74
|
+
content.push(( localize(10092, "Action button: {0}, {1}", label, enablementLabel)));
|
|
75
75
|
}
|
|
76
76
|
const resourceGroups = [];
|
|
77
77
|
for (const resourceGroup of focusedRepository.provider.groups) {
|
|
78
78
|
resourceGroups.push(`${resourceGroup.label} (${resourceGroup.resources.length} resource(s))`);
|
|
79
79
|
}
|
|
80
80
|
( focusedRepository.provider.groups.map(g => g.label)).join(', ');
|
|
81
|
-
content.push(( localize(
|
|
81
|
+
content.push(( localize(10093, "Resource groups: {0}", resourceGroups.join(', '))));
|
|
82
82
|
}
|
|
83
83
|
content.push(( localize(
|
|
84
|
-
|
|
84
|
+
10094,
|
|
85
85
|
"Use the \"Source Control: Focus on Source Control Repositories View\" command to open the Source Control Repositories view."
|
|
86
86
|
)));
|
|
87
87
|
content.push(( localize(
|
|
88
|
-
|
|
88
|
+
10095,
|
|
89
89
|
"The Source Control Repositories view lists all repositories from the workspace and is only shown when the workspace contains more than one repository."
|
|
90
90
|
)));
|
|
91
|
-
content.push(( localize(
|
|
91
|
+
content.push(( localize(10096, "Once the Source Control Repositories view is opened you can:")));
|
|
92
92
|
content.push(( localize(
|
|
93
|
-
|
|
93
|
+
10097,
|
|
94
94
|
" - Use the up/down arrow keys to navigate the list of repositories."
|
|
95
95
|
)));
|
|
96
|
-
content.push(( localize(
|
|
97
|
-
content.push(( localize(
|
|
96
|
+
content.push(( localize(10098, " - Use the Enter or Space keys to select a repository.")));
|
|
97
|
+
content.push(( localize(10099, " - Use Shift + up/down keys to select multiple repositories.")));
|
|
98
98
|
content.push(( localize(
|
|
99
|
-
|
|
99
|
+
10100,
|
|
100
100
|
"Use the \"Source Control: Focus on Source Control View\" command to open the Source Control view."
|
|
101
101
|
)));
|
|
102
102
|
content.push(( localize(
|
|
103
|
-
|
|
103
|
+
10101,
|
|
104
104
|
"The Source Control view displays the resource groups and resources of the repository. If the workspace contains more than one repository it will list the resource groups and resources of the repositories selected in the Source Control Repositories view."
|
|
105
105
|
)));
|
|
106
|
-
content.push(( localize(
|
|
106
|
+
content.push(( localize(10102, "Once the Source Control view is opened you can:")));
|
|
107
107
|
content.push(( localize(
|
|
108
|
-
|
|
108
|
+
10103,
|
|
109
109
|
" - Use the up/down arrow keys to navigate the list of repositories, resource groups and resources."
|
|
110
110
|
)));
|
|
111
|
-
content.push(( localize(
|
|
111
|
+
content.push(( localize(10104, " - Use the Space key to expand or collapse a resource group.")));
|
|
112
112
|
content.push(( localize(
|
|
113
|
-
|
|
113
|
+
10105,
|
|
114
114
|
"Use the \"Source Control: Focus on Source Control Graph View\" command to open the Source Control Graph view."
|
|
115
115
|
)));
|
|
116
116
|
content.push(( localize(
|
|
117
|
-
|
|
117
|
+
10106,
|
|
118
118
|
"The Source Control Graph view displays a graph history items of the repository. If the workspace contains more than one repository it will list the history items of the active repository."
|
|
119
119
|
)));
|
|
120
|
-
content.push(( localize(
|
|
120
|
+
content.push(( localize(10107, "Once the Source Control Graph view is opened you can:")));
|
|
121
121
|
content.push(( localize(
|
|
122
|
-
|
|
122
|
+
10108,
|
|
123
123
|
" - Use the up/down arrow keys to navigate the list of history items."
|
|
124
124
|
)));
|
|
125
125
|
content.push(( localize(
|
|
126
|
-
|
|
126
|
+
10109,
|
|
127
127
|
" - Use the Space key to open the history item details in the multi-file diff editor."
|
|
128
128
|
)));
|
|
129
129
|
return content.join('\n');
|
|
@@ -125,23 +125,23 @@ class SCMHistoryItemRefsActionViewItem extends ActionViewItem {
|
|
|
125
125
|
icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.gitBranch));
|
|
126
126
|
const name = $('.name');
|
|
127
127
|
if (this._historyItemsFilter === 'all') {
|
|
128
|
-
name.textContent = ( localize(
|
|
128
|
+
name.textContent = ( localize(10128, "All"));
|
|
129
129
|
}
|
|
130
130
|
else if (this._historyItemsFilter === 'auto') {
|
|
131
|
-
name.textContent = ( localize(
|
|
131
|
+
name.textContent = ( localize(10129, "Auto"));
|
|
132
132
|
}
|
|
133
133
|
else if (this._historyItemsFilter.length === 1) {
|
|
134
134
|
name.textContent = this._historyItemsFilter[0].name;
|
|
135
135
|
}
|
|
136
136
|
else {
|
|
137
|
-
name.textContent = ( localize(
|
|
137
|
+
name.textContent = ( localize(10130, "{0} Items", this._historyItemsFilter.length));
|
|
138
138
|
}
|
|
139
139
|
reset(this.label, icon, name);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
getTooltip() {
|
|
143
143
|
if (this._historyItemsFilter === 'all') {
|
|
144
|
-
return localize(
|
|
144
|
+
return localize(10131, "All history item references");
|
|
145
145
|
}
|
|
146
146
|
else if (this._historyItemsFilter === 'auto') {
|
|
147
147
|
const historyProvider = this._repository.provider.historyProvider.get();
|
|
@@ -163,7 +163,7 @@ registerAction2(class extends ViewAction {
|
|
|
163
163
|
constructor() {
|
|
164
164
|
super({
|
|
165
165
|
id: PICK_REPOSITORY_ACTION_ID,
|
|
166
|
-
title: ( localize(
|
|
166
|
+
title: ( localize(10132, "Repository Picker")),
|
|
167
167
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
168
168
|
f1: false,
|
|
169
169
|
menu: {
|
|
@@ -182,7 +182,7 @@ registerAction2(class extends ViewAction {
|
|
|
182
182
|
constructor() {
|
|
183
183
|
super({
|
|
184
184
|
id: PICK_HISTORY_ITEM_REFS_ACTION_ID,
|
|
185
|
-
title: ( localize(
|
|
185
|
+
title: ( localize(10133, "History Item Reference Picker")),
|
|
186
186
|
icon: Codicon.gitBranch,
|
|
187
187
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
188
188
|
precondition: ( ContextKeys.SCMHistoryItemCount.notEqualsTo(0)),
|
|
@@ -202,7 +202,7 @@ registerAction2(class extends ViewAction {
|
|
|
202
202
|
constructor() {
|
|
203
203
|
super({
|
|
204
204
|
id: 'workbench.scm.action.graph.revealCurrentHistoryItem',
|
|
205
|
-
title: ( localize(
|
|
205
|
+
title: ( localize(10134, "Go to Current History Item")),
|
|
206
206
|
icon: Codicon.target,
|
|
207
207
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
208
208
|
precondition: ( ContextKeyExpr.and(( ContextKeys.SCMHistoryItemCount.notEqualsTo(0)), ( ContextKeys.SCMCurrentHistoryItemRefInFilter.isEqualTo(true)))),
|
|
@@ -222,7 +222,7 @@ registerAction2(class extends ViewAction {
|
|
|
222
222
|
constructor() {
|
|
223
223
|
super({
|
|
224
224
|
id: 'workbench.scm.action.graph.refresh',
|
|
225
|
-
title: ( localize(
|
|
225
|
+
title: ( localize(10135, "Refresh")),
|
|
226
226
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
227
227
|
f1: false,
|
|
228
228
|
icon: Codicon.refresh,
|
|
@@ -241,7 +241,7 @@ registerAction2(class extends ViewAction {
|
|
|
241
241
|
constructor() {
|
|
242
242
|
super({
|
|
243
243
|
id: 'workbench.scm.action.graph.setListViewMode',
|
|
244
|
-
title: ( localize(
|
|
244
|
+
title: ( localize(10136, "View as List")),
|
|
245
245
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
246
246
|
toggled: ( ContextKeys.SCMHistoryViewMode.isEqualTo(ViewMode.List)),
|
|
247
247
|
menu: { id: MenuId.SCMHistoryTitle, group: '9_viewmode', order: 1 },
|
|
@@ -256,7 +256,7 @@ registerAction2(class extends ViewAction {
|
|
|
256
256
|
constructor() {
|
|
257
257
|
super({
|
|
258
258
|
id: 'workbench.scm.action.graph.setTreeViewMode',
|
|
259
|
-
title: ( localize(
|
|
259
|
+
title: ( localize(10137, "View as Tree")),
|
|
260
260
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
261
261
|
toggled: ( ContextKeys.SCMHistoryViewMode.isEqualTo(ViewMode.Tree)),
|
|
262
262
|
menu: { id: MenuId.SCMHistoryTitle, group: '9_viewmode', order: 2 },
|
|
@@ -271,7 +271,7 @@ registerAction2(class extends Action2 {
|
|
|
271
271
|
constructor() {
|
|
272
272
|
super({
|
|
273
273
|
id: 'workbench.scm.action.graph.viewChanges',
|
|
274
|
-
title: ( localize(
|
|
274
|
+
title: ( localize(10138, "Open Changes")),
|
|
275
275
|
icon: Codicon.diffMultiple,
|
|
276
276
|
f1: false,
|
|
277
277
|
menu: [
|
|
@@ -307,7 +307,7 @@ registerAction2(class extends Action2 {
|
|
|
307
307
|
const title = historyItems.length === 1 ?
|
|
308
308
|
getHistoryItemEditorTitle(historyItem) :
|
|
309
309
|
( localize(
|
|
310
|
-
|
|
310
|
+
10139,
|
|
311
311
|
"All Changes ({0} ↔ {1})",
|
|
312
312
|
historyItemLast.displayId ?? historyItemLast.id,
|
|
313
313
|
historyItem.displayId ?? historyItem.id
|
|
@@ -320,7 +320,7 @@ registerAction2(class extends Action2 {
|
|
|
320
320
|
constructor() {
|
|
321
321
|
super({
|
|
322
322
|
id: 'workbench.scm.action.graph.openFile',
|
|
323
|
-
title: ( localize(
|
|
323
|
+
title: ( localize(10140, "Open File")),
|
|
324
324
|
icon: Codicon.goToFile,
|
|
325
325
|
f1: false,
|
|
326
326
|
menu: [
|
|
@@ -659,7 +659,7 @@ let HistoryItemLoadMoreRenderer = class HistoryItemLoadMoreRenderer {
|
|
|
659
659
|
templateData.elementDisposables.add(autorun(reader => {
|
|
660
660
|
const isLoadingMore = this._isLoadingMore.read(reader);
|
|
661
661
|
const icon = `$(${isLoadingMore ? 'loading~spin' : 'fold-down'})`;
|
|
662
|
-
templateData.historyItemPlaceholderLabel.setLabel(( localize(
|
|
662
|
+
templateData.historyItemPlaceholderLabel.setLabel(( localize(10141, "{0} Load More...", icon)));
|
|
663
663
|
}));
|
|
664
664
|
}
|
|
665
665
|
}
|
|
@@ -719,7 +719,7 @@ SCMHistoryViewPaneActionRunner = ( __decorate([
|
|
|
719
719
|
], SCMHistoryViewPaneActionRunner));
|
|
720
720
|
class SCMHistoryTreeAccessibilityProvider {
|
|
721
721
|
getWidgetAriaLabel() {
|
|
722
|
-
return localize(
|
|
722
|
+
return localize(10142, "Source Control History");
|
|
723
723
|
}
|
|
724
724
|
getAriaLabel(element) {
|
|
725
725
|
if (isSCMRepository(element)) {
|
|
@@ -1162,8 +1162,8 @@ let RepositoryPicker = class RepositoryPicker {
|
|
|
1162
1162
|
this._quickInputService = _quickInputService;
|
|
1163
1163
|
this._scmViewService = _scmViewService;
|
|
1164
1164
|
this._autoQuickPickItem = {
|
|
1165
|
-
label: ( localize(
|
|
1166
|
-
description: ( localize(
|
|
1165
|
+
label: ( localize(10129, "Auto")),
|
|
1166
|
+
description: ( localize(10143, "Show the source control graph for the active repository")),
|
|
1167
1167
|
repository: 'auto'
|
|
1168
1168
|
};
|
|
1169
1169
|
}
|
|
@@ -1181,7 +1181,7 @@ let RepositoryPicker = class RepositoryPicker {
|
|
|
1181
1181
|
repository: r
|
|
1182
1182
|
}))));
|
|
1183
1183
|
return this._quickInputService.pick(picks, {
|
|
1184
|
-
placeHolder: ( localize(
|
|
1184
|
+
placeHolder: ( localize(10144, "Select the repository to view, type to filter all repositories"))
|
|
1185
1185
|
});
|
|
1186
1186
|
}
|
|
1187
1187
|
};
|
|
@@ -1197,21 +1197,21 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
|
|
|
1197
1197
|
this._quickInputService = _quickInputService;
|
|
1198
1198
|
this._allQuickPickItem = {
|
|
1199
1199
|
id: 'all',
|
|
1200
|
-
label: ( localize(
|
|
1201
|
-
description: ( localize(
|
|
1200
|
+
label: ( localize(10128, "All")),
|
|
1201
|
+
description: ( localize(10131, "All history item references")),
|
|
1202
1202
|
historyItemRef: 'all'
|
|
1203
1203
|
};
|
|
1204
1204
|
this._autoQuickPickItem = {
|
|
1205
1205
|
id: 'auto',
|
|
1206
|
-
label: ( localize(
|
|
1207
|
-
description: ( localize(
|
|
1206
|
+
label: ( localize(10129, "Auto")),
|
|
1207
|
+
description: ( localize(10145, "Current history item reference(s)")),
|
|
1208
1208
|
historyItemRef: 'auto'
|
|
1209
1209
|
};
|
|
1210
1210
|
}
|
|
1211
1211
|
async pickHistoryItemRef() {
|
|
1212
1212
|
const quickPick = this._quickInputService.createQuickPick({ useSeparators: true });
|
|
1213
1213
|
this._store.add(quickPick);
|
|
1214
|
-
quickPick.placeholder = ( localize(
|
|
1214
|
+
quickPick.placeholder = ( localize(10146, "Select one/more history item references to view, type to filter"));
|
|
1215
1215
|
quickPick.canSelectMany = true;
|
|
1216
1216
|
quickPick.hideCheckAll = true;
|
|
1217
1217
|
quickPick.busy = true;
|
|
@@ -1341,7 +1341,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1341
1341
|
container.appendChild(element.root);
|
|
1342
1342
|
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), element.root, {
|
|
1343
1343
|
markdown: {
|
|
1344
|
-
value: ( localize(
|
|
1344
|
+
value: ( localize(10147, "Please refresh the graph using the refresh action ($(refresh)).")),
|
|
1345
1345
|
supportThemeIcons: true
|
|
1346
1346
|
},
|
|
1347
1347
|
markdownNotSupportedFallback: undefined
|
|
@@ -157,7 +157,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
|
|
|
157
157
|
return r.provider.label;
|
|
158
158
|
},
|
|
159
159
|
getWidgetAriaLabel() {
|
|
160
|
-
return localize(
|
|
160
|
+
return localize(10148, "Source Control Repositories");
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
});
|
|
@@ -760,7 +760,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
760
760
|
this.labelService = labelService;
|
|
761
761
|
}
|
|
762
762
|
getWidgetAriaLabel() {
|
|
763
|
-
return localize(
|
|
763
|
+
return localize(10149, "Source Control Management");
|
|
764
764
|
}
|
|
765
765
|
getAriaLabel(element) {
|
|
766
766
|
if (ResourceTree.isResourceNode(element)) {
|
|
@@ -772,17 +772,17 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
772
772
|
else if (isSCMInput(element)) {
|
|
773
773
|
const verbosity = this.configurationService.getValue(AccessibilityVerbositySettingId.SourceControl) === true;
|
|
774
774
|
if (!verbosity || !this.accessibilityService.isScreenReaderOptimized()) {
|
|
775
|
-
return localize(
|
|
775
|
+
return localize(10150, "Source Control Input");
|
|
776
776
|
}
|
|
777
777
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
778
778
|
return kbLabel
|
|
779
779
|
? ( localize(
|
|
780
|
-
|
|
780
|
+
10151,
|
|
781
781
|
"Source Control Input, Use {0} to open Source Control Accessibility Help.",
|
|
782
782
|
kbLabel
|
|
783
783
|
))
|
|
784
784
|
: ( localize(
|
|
785
|
-
|
|
785
|
+
10152,
|
|
786
786
|
"Source Control Input, Run the Open Accessibility Help command for more information."
|
|
787
787
|
));
|
|
788
788
|
}
|
|
@@ -840,14 +840,14 @@ const ContextKeys = {
|
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
842
|
MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
843
|
-
title: ( localize(
|
|
843
|
+
title: ( localize(10153, "View & Sort")),
|
|
844
844
|
submenu: Menus.ViewSort,
|
|
845
845
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', VIEW_PANE_ID)), ( ContextKeys.RepositoryCount.notEqualsTo(0)))),
|
|
846
846
|
group: '0_view&sort',
|
|
847
847
|
order: 1
|
|
848
848
|
});
|
|
849
849
|
MenuRegistry.appendMenuItem(Menus.ViewSort, {
|
|
850
|
-
title: ( localize(
|
|
850
|
+
title: ( localize(10154, "Repositories")),
|
|
851
851
|
submenu: Menus.Repositories,
|
|
852
852
|
when: ContextKeyExpr.greater(ContextKeys.RepositoryCount.key, 1),
|
|
853
853
|
group: '0_repositories'
|
|
@@ -937,7 +937,7 @@ class SetListViewModeAction extends ViewAction {
|
|
|
937
937
|
constructor(id = 'workbench.scm.action.setListViewMode', menu = {}) {
|
|
938
938
|
super({
|
|
939
939
|
id,
|
|
940
|
-
title: ( localize(
|
|
940
|
+
title: ( localize(10155, "View as List")),
|
|
941
941
|
viewId: VIEW_PANE_ID,
|
|
942
942
|
f1: false,
|
|
943
943
|
icon: Codicon.listTree,
|
|
@@ -963,7 +963,7 @@ class SetTreeViewModeAction extends ViewAction {
|
|
|
963
963
|
constructor(id = 'workbench.scm.action.setTreeViewMode', menu = {}) {
|
|
964
964
|
super({
|
|
965
965
|
id,
|
|
966
|
-
title: ( localize(
|
|
966
|
+
title: ( localize(10156, "View as Tree")),
|
|
967
967
|
viewId: VIEW_PANE_ID,
|
|
968
968
|
f1: false,
|
|
969
969
|
icon: Codicon.listFlat,
|
|
@@ -1016,17 +1016,17 @@ class RepositorySortAction extends ViewAction {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
class RepositorySortByDiscoveryTimeAction extends RepositorySortAction {
|
|
1018
1018
|
constructor() {
|
|
1019
|
-
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(
|
|
1019
|
+
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(10157, "Sort by Discovery Time")));
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
class RepositorySortByNameAction extends RepositorySortAction {
|
|
1023
1023
|
constructor() {
|
|
1024
|
-
super(ISCMRepositorySortKey.Name, ( localize(
|
|
1024
|
+
super(ISCMRepositorySortKey.Name, ( localize(10158, "Sort by Name")));
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
class RepositorySortByPathAction extends RepositorySortAction {
|
|
1028
1028
|
constructor() {
|
|
1029
|
-
super(ISCMRepositorySortKey.Path, ( localize(
|
|
1029
|
+
super(ISCMRepositorySortKey.Path, ( localize(10159, "Sort by Path")));
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
1032
|
registerAction2(RepositorySortByDiscoveryTimeAction);
|
|
@@ -1051,17 +1051,17 @@ class SetSortKeyAction extends ViewAction {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
class SetSortByNameAction extends SetSortKeyAction {
|
|
1053
1053
|
constructor() {
|
|
1054
|
-
super(ViewSortKey.Name, ( localize(
|
|
1054
|
+
super(ViewSortKey.Name, ( localize(10160, "Sort Changes by Name")));
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
1057
|
class SetSortByPathAction extends SetSortKeyAction {
|
|
1058
1058
|
constructor() {
|
|
1059
|
-
super(ViewSortKey.Path, ( localize(
|
|
1059
|
+
super(ViewSortKey.Path, ( localize(10161, "Sort Changes by Path")));
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
1062
|
class SetSortByStatusAction extends SetSortKeyAction {
|
|
1063
1063
|
constructor() {
|
|
1064
|
-
super(ViewSortKey.Status, ( localize(
|
|
1064
|
+
super(ViewSortKey.Status, ( localize(10162, "Sort Changes by Status")));
|
|
1065
1065
|
}
|
|
1066
1066
|
}
|
|
1067
1067
|
registerAction2(SetSortByNameAction);
|
|
@@ -1071,7 +1071,7 @@ class CollapseAllRepositoriesAction extends ViewAction {
|
|
|
1071
1071
|
constructor() {
|
|
1072
1072
|
super({
|
|
1073
1073
|
id: `workbench.scm.action.collapseAllRepositories`,
|
|
1074
|
-
title: ( localize(
|
|
1074
|
+
title: ( localize(10163, "Collapse All Repositories")),
|
|
1075
1075
|
viewId: VIEW_PANE_ID,
|
|
1076
1076
|
f1: false,
|
|
1077
1077
|
icon: Codicon.collapseAll,
|
|
@@ -1090,7 +1090,7 @@ class ExpandAllRepositoriesAction extends ViewAction {
|
|
|
1090
1090
|
constructor() {
|
|
1091
1091
|
super({
|
|
1092
1092
|
id: `workbench.scm.action.expandAllRepositories`,
|
|
1093
|
-
title: ( localize(
|
|
1093
|
+
title: ( localize(10164, "Expand All Repositories")),
|
|
1094
1094
|
viewId: VIEW_PANE_ID,
|
|
1095
1095
|
f1: false,
|
|
1096
1096
|
icon: Codicon.expandAll,
|
|
@@ -1120,7 +1120,7 @@ registerAction2(class extends Action2 {
|
|
|
1120
1120
|
constructor() {
|
|
1121
1121
|
super({
|
|
1122
1122
|
id: SCMInputWidgetCommandId.SetupAction,
|
|
1123
|
-
title: ( localize(
|
|
1123
|
+
title: ( localize(10165, "Generate Commit Message")),
|
|
1124
1124
|
icon: Codicon.sparkle,
|
|
1125
1125
|
f1: false,
|
|
1126
1126
|
menu: {
|
|
@@ -1195,10 +1195,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
1195
1195
|
this._onDidChange = ( new Emitter());
|
|
1196
1196
|
this.onDidChange = this._onDidChange.event;
|
|
1197
1197
|
this._disposables = this._register(( new MutableDisposable()));
|
|
1198
|
-
this._dropdownAction = ( new Action('scmInputMoreActions', ( localize(
|
|
1198
|
+
this._dropdownAction = ( new Action('scmInputMoreActions', ( localize(10166, "More Actions...")), 'codicon-chevron-down'));
|
|
1199
1199
|
this._cancelAction = ( new MenuItemAction({
|
|
1200
1200
|
id: SCMInputWidgetCommandId.CancelAction,
|
|
1201
|
-
title: ( localize(
|
|
1201
|
+
title: ( localize(10167, "Cancel")),
|
|
1202
1202
|
icon: Codicon.stopCircle,
|
|
1203
1203
|
}, undefined, undefined, undefined, undefined, contextKeyService, commandService));
|
|
1204
1204
|
}
|
|
@@ -1414,13 +1414,13 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1414
1414
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
1415
1415
|
return kbLabel
|
|
1416
1416
|
? ( localize(
|
|
1417
|
-
|
|
1417
|
+
10168,
|
|
1418
1418
|
"{0}, Use {1} to open Source Control Accessibility Help.",
|
|
1419
1419
|
placeholder,
|
|
1420
1420
|
kbLabel
|
|
1421
1421
|
))
|
|
1422
1422
|
: ( localize(
|
|
1423
|
-
|
|
1423
|
+
10169,
|
|
1424
1424
|
"{0}, Run the Open Accessibility Help command for more information.",
|
|
1425
1425
|
placeholder
|
|
1426
1426
|
));
|
|
@@ -1677,7 +1677,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
const actionsContainer = append(validationContainer, $('.scm-editor-validation-actions'));
|
|
1679
1679
|
const actionbar = ( new ActionBar(actionsContainer));
|
|
1680
|
-
const action = ( new Action('scmInputWidget.validationMessage.close', ( localize(
|
|
1680
|
+
const action = ( new Action('scmInputWidget.validationMessage.close', ( localize(10170, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
1681
1681
|
this.contextViewService.hideContextView();
|
|
1682
1682
|
this.element.style.borderBottomLeftRadius = '2px';
|
|
1683
1683
|
this.element.style.borderBottomRightRadius = '2px';
|
|
@@ -51,7 +51,7 @@ let RepositoryPicker = class RepositoryPicker {
|
|
|
51
51
|
this._quickInputService = _quickInputService;
|
|
52
52
|
this._scmViewService = _scmViewService;
|
|
53
53
|
this._autoQuickPickItem = {
|
|
54
|
-
label: ( localize(
|
|
54
|
+
label: ( localize(10171, "Auto")),
|
|
55
55
|
description: this._autoQuickItemDescription,
|
|
56
56
|
repository: 'auto'
|
|
57
57
|
};
|