@codingame/monaco-vscode-scm-service-override 20.0.0 → 20.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +13 -13
- 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 +81 -81
- 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": "20.
|
|
3
|
+
"version": "20.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - scm service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "20.
|
|
19
|
-
"@codingame/monaco-vscode-27663a0b-1249-58ba-9085-e52d706b50bc-common": "20.
|
|
20
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "20.
|
|
21
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.
|
|
22
|
-
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.
|
|
23
|
-
"@codingame/monaco-vscode-api": "20.
|
|
24
|
-
"@codingame/monaco-vscode-bb83fe45-f4c7-5673-b9f1-5c409a63f19c-common": "20.
|
|
25
|
-
"@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "20.
|
|
26
|
-
"@codingame/monaco-vscode-d0569cfb-4706-5ad6-b0b0-5115ad8685db-common": "20.
|
|
27
|
-
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.
|
|
28
|
-
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "20.
|
|
29
|
-
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "20.
|
|
18
|
+
"@codingame/monaco-vscode-262ed59d-4f76-57cd-9e9f-1877f26ae049-common": "20.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-27663a0b-1249-58ba-9085-e52d706b50bc-common": "20.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "20.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "20.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "20.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-api": "20.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-bb83fe45-f4c7-5673-b9f1-5c409a63f19c-common": "20.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common": "20.1.0",
|
|
26
|
+
"@codingame/monaco-vscode-d0569cfb-4706-5ad6-b0b0-5115ad8685db-common": "20.1.0",
|
|
27
|
+
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "20.1.0",
|
|
28
|
+
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "20.1.0",
|
|
29
|
+
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "20.1.0"
|
|
30
30
|
},
|
|
31
31
|
"main": "index.js",
|
|
32
32
|
"module": "index.js",
|
|
@@ -105,7 +105,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
105
105
|
if (count === 0) {
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
|
-
const badge = ( new NumberBadge(count, num => ( localize(
|
|
108
|
+
const badge = ( new NumberBadge(count, num => ( localize(9723, '{0} pending changes', num))));
|
|
109
109
|
store.add(this.activityService.showViewActivity(VIEW_PANE_ID, { badge }));
|
|
110
110
|
}
|
|
111
111
|
_updateStatusBar(repository, commands, store) {
|
|
@@ -131,7 +131,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
131
131
|
repoAgnosticActionName = '';
|
|
132
132
|
}
|
|
133
133
|
const statusbarEntry = {
|
|
134
|
-
name: ( localize(
|
|
134
|
+
name: ( localize(9724, "Source Control")) + (repoAgnosticActionName ? ` ${repoAgnosticActionName}` : ''),
|
|
135
135
|
text: command.title,
|
|
136
136
|
ariaLabel: tooltip,
|
|
137
137
|
tooltip,
|
|
@@ -146,7 +146,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
146
146
|
? `$(${repository.provider.iconPath.id})`
|
|
147
147
|
: '$(repo)';
|
|
148
148
|
const repositoryStatusbarEntry = {
|
|
149
|
-
name: ( localize(
|
|
149
|
+
name: ( localize(9725, "Source Control Provider")),
|
|
150
150
|
text: `${icon} ${repository.provider.name}`,
|
|
151
151
|
ariaLabel: label,
|
|
152
152
|
tooltip: label,
|
|
@@ -175,8 +175,8 @@ let SCMActiveResourceContextKeyController = class SCMActiveResourceContextKeyCon
|
|
|
175
175
|
this.scmService = scmService;
|
|
176
176
|
this.uriIdentityService = uriIdentityService;
|
|
177
177
|
this._onDidRepositoryChange = ( new Emitter());
|
|
178
|
-
const activeResourceHasChangesContextKey = ( new RawContextKey('scmActiveResourceHasChanges', false, ( localize(
|
|
179
|
-
const activeResourceRepositoryContextKey = ( new RawContextKey('scmActiveResourceRepository', undefined, ( localize(
|
|
178
|
+
const activeResourceHasChangesContextKey = ( new RawContextKey('scmActiveResourceHasChanges', false, ( localize(9726, "Whether the active resource has changes"))));
|
|
179
|
+
const activeResourceRepositoryContextKey = ( new RawContextKey('scmActiveResourceRepository', undefined, ( localize(9727, "The active resource's repository"))));
|
|
180
180
|
this._repositories = observableFromEvent(this, Event.any(this.scmService.onDidAddRepository, this.scmService.onDidRemoveRepository), () => this.scmService.repositories);
|
|
181
181
|
this._store.add(autorunWithStore((reader, store) => {
|
|
182
182
|
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(9728, "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(9729, '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(9730, '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(9731, '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(9732, '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(9733, "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
|
+
9734,
|
|
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
|
+
9735,
|
|
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(9736, "{0} of {1} changes", providerIndex + 1, providerChanges.length))
|
|
239
|
+
: ( localize(9737, "{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(9738, "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(9739, "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(9740, "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(9741, "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(9742, "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(9743, "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(9744, "Previous &&Change"))
|
|
770
770
|
},
|
|
771
771
|
order: 2
|
|
772
772
|
});
|
|
@@ -55,10 +55,10 @@ ModesRegistry.registerLanguage({
|
|
|
55
55
|
( Registry.as(Extensions.Workbench))
|
|
56
56
|
.registerWorkbenchContribution(QuickDiffWorkbenchController, LifecyclePhase.Restored);
|
|
57
57
|
registerEditorContribution(QuickDiffEditorController.ID, QuickDiffEditorController, EditorContributionInstantiation.AfterFirstRender);
|
|
58
|
-
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(
|
|
58
|
+
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(9745, 'View icon of the Source Control view.')));
|
|
59
59
|
const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).registerViewContainer({
|
|
60
60
|
id: VIEWLET_ID,
|
|
61
|
-
title: ( localize2(
|
|
61
|
+
title: ( localize2(9746, 'Source Control')),
|
|
62
62
|
ctorDescriptor: ( new SyncDescriptor(SCMViewPaneContainer)),
|
|
63
63
|
storageId: 'workbench.scm.views.state',
|
|
64
64
|
icon: sourceControlViewIcon,
|
|
@@ -67,25 +67,25 @@ const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).regist
|
|
|
67
67
|
hideIfEmpty: true,
|
|
68
68
|
}, ViewContainerLocation.Sidebar, { doNotRegisterOpenCommand: true });
|
|
69
69
|
const viewsRegistry = ( Registry.as(Extensions$1.ViewsRegistry));
|
|
70
|
-
const containerTitle = ( localize(
|
|
70
|
+
const containerTitle = ( localize(9747, "Source Control"));
|
|
71
71
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
72
|
-
content: ( localize(
|
|
72
|
+
content: ( localize(9748, "No source control providers registered.")),
|
|
73
73
|
when: 'default'
|
|
74
74
|
});
|
|
75
75
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
76
76
|
content: ( localize(
|
|
77
|
-
|
|
77
|
+
9749,
|
|
78
78
|
"None of the registered source control providers work in Restricted Mode."
|
|
79
79
|
)),
|
|
80
80
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scm.providerCount', 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
81
81
|
});
|
|
82
82
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
83
|
-
content: `[${( localize(
|
|
83
|
+
content: `[${( localize(9750, "Manage Workspace Trust"))}](command:${MANAGE_TRUST_COMMAND_ID})`,
|
|
84
84
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scm.providerCount', 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
85
85
|
});
|
|
86
86
|
viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
87
87
|
content: ( localize(
|
|
88
|
-
|
|
88
|
+
9751,
|
|
89
89
|
"The selected source control provider does not have any source control history items."
|
|
90
90
|
)),
|
|
91
91
|
when: ( ContextKeys.SCMHistoryItemCount.isEqualTo(0))
|
|
@@ -93,8 +93,8 @@ viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
|
93
93
|
viewsRegistry.registerViews([{
|
|
94
94
|
id: REPOSITORIES_VIEW_PANE_ID,
|
|
95
95
|
containerTitle,
|
|
96
|
-
name: ( localize2(
|
|
97
|
-
singleViewPaneContainerTitle: ( localize(
|
|
96
|
+
name: ( localize2(9752, "Repositories")),
|
|
97
|
+
singleViewPaneContainerTitle: ( localize(9753, "Source Control Repositories")),
|
|
98
98
|
ctorDescriptor: ( new SyncDescriptor(SCMRepositoriesViewPane)),
|
|
99
99
|
canToggleVisibility: true,
|
|
100
100
|
hideByDefault: true,
|
|
@@ -107,7 +107,7 @@ viewsRegistry.registerViews([{
|
|
|
107
107
|
viewsRegistry.registerViews([{
|
|
108
108
|
id: VIEW_PANE_ID,
|
|
109
109
|
containerTitle,
|
|
110
|
-
name: ( localize2(
|
|
110
|
+
name: ( localize2(9754, 'Changes')),
|
|
111
111
|
singleViewPaneContainerTitle: containerTitle,
|
|
112
112
|
ctorDescriptor: ( new SyncDescriptor(SCMViewPane)),
|
|
113
113
|
canToggleVisibility: true,
|
|
@@ -117,7 +117,7 @@ viewsRegistry.registerViews([{
|
|
|
117
117
|
containerIcon: sourceControlViewIcon,
|
|
118
118
|
openCommandActionDescriptor: {
|
|
119
119
|
id: viewContainer.id,
|
|
120
|
-
mnemonicTitle: ( localize(
|
|
120
|
+
mnemonicTitle: ( localize(9755, "Source &&Control")),
|
|
121
121
|
keybindings: {
|
|
122
122
|
primary: 0,
|
|
123
123
|
win: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyG },
|
|
@@ -130,8 +130,8 @@ viewsRegistry.registerViews([{
|
|
|
130
130
|
viewsRegistry.registerViews([{
|
|
131
131
|
id: HISTORY_VIEW_PANE_ID,
|
|
132
132
|
containerTitle,
|
|
133
|
-
name: ( localize2(
|
|
134
|
-
singleViewPaneContainerTitle: ( localize(
|
|
133
|
+
name: ( localize2(9756, "Graph")),
|
|
134
|
+
singleViewPaneContainerTitle: ( localize(9757, "Source Control Graph")),
|
|
135
135
|
ctorDescriptor: ( new SyncDescriptor(SCMHistoryViewPane)),
|
|
136
136
|
canToggleVisibility: true,
|
|
137
137
|
canMoveView: true,
|
|
@@ -149,7 +149,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
149
149
|
( Registry.as(Extensions$2.Configuration)).registerConfiguration({
|
|
150
150
|
id: 'scm',
|
|
151
151
|
order: 5,
|
|
152
|
-
title: ( localize(
|
|
152
|
+
title: ( localize(9758, "Source Control")),
|
|
153
153
|
type: 'object',
|
|
154
154
|
scope: ConfigurationScope.RESOURCE,
|
|
155
155
|
properties: {
|
|
@@ -157,21 +157,21 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
157
157
|
type: 'string',
|
|
158
158
|
enum: ['all', 'gutter', 'overview', 'minimap', 'none'],
|
|
159
159
|
enumDescriptions: [
|
|
160
|
-
( localize(
|
|
161
|
-
( localize(
|
|
162
|
-
( localize(
|
|
163
|
-
( localize(
|
|
164
|
-
( localize(
|
|
160
|
+
( localize(9759, "Show the diff decorations in all available locations.")),
|
|
161
|
+
( localize(9760, "Show the diff decorations only in the editor gutter.")),
|
|
162
|
+
( localize(9761, "Show the diff decorations only in the overview ruler.")),
|
|
163
|
+
( localize(9762, "Show the diff decorations only in the minimap.")),
|
|
164
|
+
( localize(9763, "Do not show the diff decorations."))
|
|
165
165
|
],
|
|
166
166
|
default: 'all',
|
|
167
|
-
description: ( localize(
|
|
167
|
+
description: ( localize(9764, "Controls diff decorations in the editor."))
|
|
168
168
|
},
|
|
169
169
|
'scm.diffDecorationsGutterWidth': {
|
|
170
170
|
type: 'number',
|
|
171
171
|
enum: [1, 2, 3, 4, 5],
|
|
172
172
|
default: 3,
|
|
173
173
|
description: ( localize(
|
|
174
|
-
|
|
174
|
+
9765,
|
|
175
175
|
"Controls the width(px) of diff decorations in gutter (added & modified)."
|
|
176
176
|
))
|
|
177
177
|
},
|
|
@@ -179,11 +179,11 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
179
179
|
type: 'string',
|
|
180
180
|
enum: ['always', 'hover'],
|
|
181
181
|
enumDescriptions: [
|
|
182
|
-
( localize(
|
|
183
|
-
( localize(
|
|
182
|
+
( localize(9766, "Show the diff decorator in the gutter at all times.")),
|
|
183
|
+
( localize(9767, "Show the diff decorator in the gutter only on hover."))
|
|
184
184
|
],
|
|
185
185
|
description: ( localize(
|
|
186
|
-
|
|
186
|
+
9768,
|
|
187
187
|
"Controls the visibility of the Source Control diff decorator in the gutter."
|
|
188
188
|
)),
|
|
189
189
|
default: 'always'
|
|
@@ -192,27 +192,27 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
192
192
|
type: 'string',
|
|
193
193
|
enum: ['diff', 'none'],
|
|
194
194
|
enumDescriptions: [
|
|
195
|
-
( localize(
|
|
196
|
-
( localize(
|
|
195
|
+
( localize(9769, "Show the inline diff Peek view on click.")),
|
|
196
|
+
( localize(9770, "Do nothing."))
|
|
197
197
|
],
|
|
198
|
-
description: ( localize(
|
|
198
|
+
description: ( localize(9771, "Controls the behavior of Source Control diff gutter decorations.")),
|
|
199
199
|
default: 'diff'
|
|
200
200
|
},
|
|
201
201
|
'scm.diffDecorationsGutterPattern': {
|
|
202
202
|
type: 'object',
|
|
203
203
|
description: ( localize(
|
|
204
|
-
|
|
204
|
+
9772,
|
|
205
205
|
"Controls whether a pattern is used for the diff decorations in gutter."
|
|
206
206
|
)),
|
|
207
207
|
additionalProperties: false,
|
|
208
208
|
properties: {
|
|
209
209
|
'added': {
|
|
210
210
|
type: 'boolean',
|
|
211
|
-
description: ( localize(
|
|
211
|
+
description: ( localize(9773, "Use pattern for the diff decorations in gutter for added lines.")),
|
|
212
212
|
},
|
|
213
213
|
'modified': {
|
|
214
214
|
type: 'boolean',
|
|
215
|
-
description: ( localize(
|
|
215
|
+
description: ( localize(9774, "Use pattern for the diff decorations in gutter for modified lines.")),
|
|
216
216
|
},
|
|
217
217
|
},
|
|
218
218
|
default: {
|
|
@@ -224,12 +224,12 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
224
224
|
type: 'string',
|
|
225
225
|
enum: ['true', 'false', 'inherit'],
|
|
226
226
|
enumDescriptions: [
|
|
227
|
-
( localize(
|
|
228
|
-
( localize(
|
|
229
|
-
( localize(
|
|
227
|
+
( localize(9775, "Ignore leading and trailing whitespace.")),
|
|
228
|
+
( localize(9776, "Do not ignore leading and trailing whitespace.")),
|
|
229
|
+
( localize(9777, "Inherit from `diffEditor.ignoreTrimWhitespace`."))
|
|
230
230
|
],
|
|
231
231
|
description: ( localize(
|
|
232
|
-
|
|
232
|
+
9778,
|
|
233
233
|
"Controls whether leading and trailing whitespace is ignored in Source Control diff gutter decorations."
|
|
234
234
|
)),
|
|
235
235
|
default: 'false'
|
|
@@ -237,7 +237,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
237
237
|
'scm.alwaysShowActions': {
|
|
238
238
|
type: 'boolean',
|
|
239
239
|
description: ( localize(
|
|
240
|
-
|
|
240
|
+
9779,
|
|
241
241
|
"Controls whether inline actions are always visible in the Source Control view."
|
|
242
242
|
)),
|
|
243
243
|
default: false
|
|
@@ -246,12 +246,12 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
246
246
|
type: 'string',
|
|
247
247
|
enum: ['all', 'focused', 'off'],
|
|
248
248
|
enumDescriptions: [
|
|
249
|
-
( localize(
|
|
250
|
-
( localize(
|
|
251
|
-
( localize(
|
|
249
|
+
( localize(9780, "Show the sum of all Source Control Provider count badges.")),
|
|
250
|
+
( localize(9781, "Show the count badge of the focused Source Control Provider.")),
|
|
251
|
+
( localize(9782, "Disable the Source Control count badge."))
|
|
252
252
|
],
|
|
253
253
|
description: ( localize(
|
|
254
|
-
|
|
254
|
+
9783,
|
|
255
255
|
"Controls the count badge on the Source Control icon on the Activity Bar."
|
|
256
256
|
)),
|
|
257
257
|
default: 'all'
|
|
@@ -260,12 +260,12 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
260
260
|
type: 'string',
|
|
261
261
|
enum: ['hidden', 'auto', 'visible'],
|
|
262
262
|
enumDescriptions: [
|
|
263
|
-
( localize(
|
|
264
|
-
( localize(
|
|
265
|
-
( localize(
|
|
263
|
+
( localize(9784, "Hide Source Control Provider count badges.")),
|
|
264
|
+
( localize(9785, "Only show count badge for Source Control Provider when non-zero.")),
|
|
265
|
+
( localize(9786, "Show Source Control Provider count badges."))
|
|
266
266
|
],
|
|
267
267
|
markdownDescription: ( localize(
|
|
268
|
-
|
|
268
|
+
9787,
|
|
269
269
|
"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.",
|
|
270
270
|
'\`#scm.alwaysShowRepositories#\`'
|
|
271
271
|
)),
|
|
@@ -275,22 +275,22 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
275
275
|
type: 'string',
|
|
276
276
|
enum: ['tree', 'list'],
|
|
277
277
|
enumDescriptions: [
|
|
278
|
-
( localize(
|
|
279
|
-
( localize(
|
|
278
|
+
( localize(9788, "Show the repository changes as a tree.")),
|
|
279
|
+
( localize(9789, "Show the repository changes as a list."))
|
|
280
280
|
],
|
|
281
|
-
description: ( localize(
|
|
281
|
+
description: ( localize(9790, "Controls the default Source Control repository view mode.")),
|
|
282
282
|
default: 'list'
|
|
283
283
|
},
|
|
284
284
|
'scm.defaultViewSortKey': {
|
|
285
285
|
type: 'string',
|
|
286
286
|
enum: ['name', 'path', 'status'],
|
|
287
287
|
enumDescriptions: [
|
|
288
|
-
( localize(
|
|
289
|
-
( localize(
|
|
290
|
-
( localize(
|
|
288
|
+
( localize(9791, "Sort the repository changes by file name.")),
|
|
289
|
+
( localize(9792, "Sort the repository changes by path.")),
|
|
290
|
+
( localize(9793, "Sort the repository changes by Source Control status."))
|
|
291
291
|
],
|
|
292
292
|
description: ( localize(
|
|
293
|
-
|
|
293
|
+
9794,
|
|
294
294
|
"Controls the default Source Control repository changes sort order when viewed as a list."
|
|
295
295
|
)),
|
|
296
296
|
default: 'path'
|
|
@@ -298,7 +298,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
298
298
|
'scm.autoReveal': {
|
|
299
299
|
type: 'boolean',
|
|
300
300
|
description: ( localize(
|
|
301
|
-
|
|
301
|
+
9795,
|
|
302
302
|
"Controls whether the Source Control view should automatically reveal and select files when opening them."
|
|
303
303
|
)),
|
|
304
304
|
default: true
|
|
@@ -306,20 +306,20 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
306
306
|
'scm.inputFontFamily': {
|
|
307
307
|
type: 'string',
|
|
308
308
|
markdownDescription: ( localize(
|
|
309
|
-
|
|
309
|
+
9796,
|
|
310
310
|
"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."
|
|
311
311
|
)),
|
|
312
312
|
default: 'default'
|
|
313
313
|
},
|
|
314
314
|
'scm.inputFontSize': {
|
|
315
315
|
type: 'number',
|
|
316
|
-
markdownDescription: ( localize(
|
|
316
|
+
markdownDescription: ( localize(9797, "Controls the font size for the input message in pixels.")),
|
|
317
317
|
default: 13
|
|
318
318
|
},
|
|
319
319
|
'scm.inputMaxLineCount': {
|
|
320
320
|
type: 'number',
|
|
321
321
|
markdownDescription: ( localize(
|
|
322
|
-
|
|
322
|
+
9798,
|
|
323
323
|
"Controls the maximum number of lines that the input will auto-grow to."
|
|
324
324
|
)),
|
|
325
325
|
minimum: 1,
|
|
@@ -329,7 +329,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
329
329
|
'scm.inputMinLineCount': {
|
|
330
330
|
type: 'number',
|
|
331
331
|
markdownDescription: ( localize(
|
|
332
|
-
|
|
332
|
+
9799,
|
|
333
333
|
"Controls the minimum number of lines that the input will auto-grow from."
|
|
334
334
|
)),
|
|
335
335
|
minimum: 1,
|
|
@@ -339,7 +339,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
339
339
|
'scm.alwaysShowRepositories': {
|
|
340
340
|
type: 'boolean',
|
|
341
341
|
markdownDescription: ( localize(
|
|
342
|
-
|
|
342
|
+
9800,
|
|
343
343
|
"Controls whether repositories should always be visible in the Source Control view."
|
|
344
344
|
)),
|
|
345
345
|
default: false
|
|
@@ -349,20 +349,20 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
349
349
|
enum: ['discovery time', 'name', 'path'],
|
|
350
350
|
enumDescriptions: [
|
|
351
351
|
( localize(
|
|
352
|
-
|
|
352
|
+
9801,
|
|
353
353
|
"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."
|
|
354
354
|
)),
|
|
355
355
|
( localize(
|
|
356
|
-
|
|
356
|
+
9802,
|
|
357
357
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
|
|
358
358
|
)),
|
|
359
359
|
( localize(
|
|
360
|
-
|
|
360
|
+
9803,
|
|
361
361
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository path."
|
|
362
362
|
))
|
|
363
363
|
],
|
|
364
364
|
description: ( localize(
|
|
365
|
-
|
|
365
|
+
9804,
|
|
366
366
|
"Controls the sort order of the repositories in the source control repositories view."
|
|
367
367
|
)),
|
|
368
368
|
default: 'discovery time'
|
|
@@ -370,7 +370,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
370
370
|
'scm.repositories.visible': {
|
|
371
371
|
type: 'number',
|
|
372
372
|
description: ( localize(
|
|
373
|
-
|
|
373
|
+
9805,
|
|
374
374
|
"Controls how many repositories are visible in the Source Control Repositories section. Set to 0, to be able to manually resize the view."
|
|
375
375
|
)),
|
|
376
376
|
default: 10
|
|
@@ -378,7 +378,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
378
378
|
'scm.showActionButton': {
|
|
379
379
|
type: 'boolean',
|
|
380
380
|
markdownDescription: ( localize(
|
|
381
|
-
|
|
381
|
+
9806,
|
|
382
382
|
"Controls whether an action button can be shown in the Source Control view."
|
|
383
383
|
)),
|
|
384
384
|
default: true
|
|
@@ -386,7 +386,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
386
386
|
'scm.showInputActionButton': {
|
|
387
387
|
type: 'boolean',
|
|
388
388
|
markdownDescription: ( localize(
|
|
389
|
-
|
|
389
|
+
9807,
|
|
390
390
|
"Controls whether an action button can be shown in the Source Control input."
|
|
391
391
|
)),
|
|
392
392
|
default: true
|
|
@@ -394,7 +394,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
394
394
|
'scm.workingSets.enabled': {
|
|
395
395
|
type: 'boolean',
|
|
396
396
|
description: ( localize(
|
|
397
|
-
|
|
397
|
+
9808,
|
|
398
398
|
"Controls whether to store editor working sets when switching between source control history item groups."
|
|
399
399
|
)),
|
|
400
400
|
default: false
|
|
@@ -404,16 +404,16 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
404
404
|
enum: ['empty', 'current'],
|
|
405
405
|
enumDescriptions: [
|
|
406
406
|
( localize(
|
|
407
|
-
|
|
407
|
+
9809,
|
|
408
408
|
"Use an empty working set when switching to a source control history item group that does not have a working set."
|
|
409
409
|
)),
|
|
410
410
|
( localize(
|
|
411
|
-
|
|
411
|
+
9810,
|
|
412
412
|
"Use the current working set when switching to a source control history item group that does not have a working set."
|
|
413
413
|
))
|
|
414
414
|
],
|
|
415
415
|
description: ( localize(
|
|
416
|
-
|
|
416
|
+
9811,
|
|
417
417
|
"Controls the default working set to use when switching to a source control history item group that does not have a working set."
|
|
418
418
|
)),
|
|
419
419
|
default: 'current'
|
|
@@ -421,7 +421,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
421
421
|
'scm.compactFolders': {
|
|
422
422
|
type: 'boolean',
|
|
423
423
|
description: ( localize(
|
|
424
|
-
|
|
424
|
+
9812,
|
|
425
425
|
"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."
|
|
426
426
|
)),
|
|
427
427
|
default: true
|
|
@@ -429,7 +429,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
429
429
|
'scm.graph.pageOnScroll': {
|
|
430
430
|
type: 'boolean',
|
|
431
431
|
description: ( localize(
|
|
432
|
-
|
|
432
|
+
9813,
|
|
433
433
|
"Controls whether the Source Control Graph view will load the next page of items when you scroll to the end of the list."
|
|
434
434
|
)),
|
|
435
435
|
default: true
|
|
@@ -437,7 +437,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
437
437
|
'scm.graph.pageSize': {
|
|
438
438
|
type: 'number',
|
|
439
439
|
description: ( localize(
|
|
440
|
-
|
|
440
|
+
9814,
|
|
441
441
|
"The number of items to show in the Source Control Graph view by default and when loading more items."
|
|
442
442
|
)),
|
|
443
443
|
minimum: 1,
|
|
@@ -449,16 +449,16 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
449
449
|
enum: ['all', 'filter'],
|
|
450
450
|
enumDescriptions: [
|
|
451
451
|
( localize(
|
|
452
|
-
|
|
452
|
+
9815,
|
|
453
453
|
"Show badges of all history item groups in the Source Control Graph view."
|
|
454
454
|
)),
|
|
455
455
|
( localize(
|
|
456
|
-
|
|
456
|
+
9816,
|
|
457
457
|
"Show only the badges of history item groups used as a filter in the Source Control Graph view."
|
|
458
458
|
))
|
|
459
459
|
],
|
|
460
460
|
description: ( localize(
|
|
461
|
-
|
|
461
|
+
9817,
|
|
462
462
|
"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."
|
|
463
463
|
)),
|
|
464
464
|
default: 'filter'
|
|
@@ -467,7 +467,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
467
467
|
});
|
|
468
468
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
469
469
|
id: 'scm.acceptInput',
|
|
470
|
-
metadata: { description: ( localize(
|
|
470
|
+
metadata: { description: ( localize(9818, "Source Control: Accept Input")), args: [] },
|
|
471
471
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
472
472
|
when: ( ContextKeyExpr.has('scmRepository')),
|
|
473
473
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
@@ -504,7 +504,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
504
504
|
}
|
|
505
505
|
});
|
|
506
506
|
const viewNextCommitCommand = {
|
|
507
|
-
description: { description: ( localize(
|
|
507
|
+
description: { description: ( localize(9819, "Source Control: View Next Commit")), args: [] },
|
|
508
508
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
509
509
|
handler: (accessor) => {
|
|
510
510
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -516,7 +516,7 @@ const viewNextCommitCommand = {
|
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
const viewPreviousCommitCommand = {
|
|
519
|
-
description: { description: ( localize(
|
|
519
|
+
description: { description: ( localize(9820, "Source Control: View Previous Commit")), args: [] },
|
|
520
520
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
521
521
|
handler: (accessor) => {
|
|
522
522
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -584,9 +584,9 @@ CommandsRegistry.registerCommand('scm.openInTerminal', async (accessor, provider
|
|
|
584
584
|
CommandsRegistry.registerCommand('scm.setActiveProvider', async (accessor) => {
|
|
585
585
|
const instantiationService = accessor.get(IInstantiationService);
|
|
586
586
|
const scmViewService = accessor.get(ISCMViewService);
|
|
587
|
-
const placeHolder = ( localize(
|
|
587
|
+
const placeHolder = ( localize(9821, "Select the active repository, type to filter all repositories"));
|
|
588
588
|
const autoQuickItemDescription = ( localize(
|
|
589
|
-
|
|
589
|
+
9822,
|
|
590
590
|
"The active repository is updated based on focused repository/active editor"
|
|
591
591
|
));
|
|
592
592
|
const repositoryPicker = instantiationService.createInstance(RepositoryPicker, placeHolder, autoQuickItemDescription);
|
|
@@ -600,7 +600,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
600
600
|
group: '99_terminal',
|
|
601
601
|
command: {
|
|
602
602
|
id: 'scm.openInTerminal',
|
|
603
|
-
title: ( localize(
|
|
603
|
+
title: ( localize(9823, "Open in External Terminal"))
|
|
604
604
|
},
|
|
605
605
|
when: ( ContextKeyExpr.and(( RemoteNameContext.isEqualTo('')), ( ContextKeyExpr.equals('scmProviderHasRootUri', true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'external')), ( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))))))
|
|
606
606
|
});
|
|
@@ -608,7 +608,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
608
608
|
group: '99_terminal',
|
|
609
609
|
command: {
|
|
610
610
|
id: 'scm.openInIntegratedTerminal',
|
|
611
|
-
title: ( localize(
|
|
611
|
+
title: ( localize(9824, "Open in Integrated Terminal"))
|
|
612
612
|
},
|
|
613
613
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scmProviderHasRootUri', true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'integrated')), ( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))))))
|
|
614
614
|
});
|
|
@@ -659,7 +659,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
659
659
|
}
|
|
660
660
|
});
|
|
661
661
|
MenuRegistry.appendMenuItem(MenuId.EditorLineNumberContext, {
|
|
662
|
-
title: ( localize(
|
|
662
|
+
title: ( localize(9825, "Diff Decorations")),
|
|
663
663
|
submenu: MenuId.SCMQuickDiffDecorations,
|
|
664
664
|
when: ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.scm.diffDecorations', 'all')), ( ContextKeyExpr.equals('config.scm.diffDecorations', 'gutter')))),
|
|
665
665
|
group: '9_quickDiffDecorations'
|
|
@@ -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(9826, "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(9827, "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(9828, "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(9829, "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(9830, "enabled")) : ( localize(9831, "disabled"));
|
|
74
|
+
content.push(( localize(9832, "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(9833, "Resource groups: {0}", resourceGroups.join(', '))));
|
|
82
82
|
}
|
|
83
83
|
content.push(( localize(
|
|
84
|
-
|
|
84
|
+
9834,
|
|
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
|
+
9835,
|
|
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(9836, "Once the Source Control Repositories view is opened you can:")));
|
|
92
92
|
content.push(( localize(
|
|
93
|
-
|
|
93
|
+
9837,
|
|
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(9838, " - Use the Enter or Space keys to select a repository.")));
|
|
97
|
+
content.push(( localize(9839, " - Use Shift + up/down keys to select multiple repositories.")));
|
|
98
98
|
content.push(( localize(
|
|
99
|
-
|
|
99
|
+
9840,
|
|
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
|
+
9841,
|
|
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(9842, "Once the Source Control view is opened you can:")));
|
|
107
107
|
content.push(( localize(
|
|
108
|
-
|
|
108
|
+
9843,
|
|
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(9844, " - Use the Space key to expand or collapse a resource group.")));
|
|
112
112
|
content.push(( localize(
|
|
113
|
-
|
|
113
|
+
9845,
|
|
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
|
+
9846,
|
|
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(9847, "Once the Source Control Graph view is opened you can:")));
|
|
121
121
|
content.push(( localize(
|
|
122
|
-
|
|
122
|
+
9848,
|
|
123
123
|
" - Use the up/down arrow keys to navigate the list of history items."
|
|
124
124
|
)));
|
|
125
125
|
content.push(( localize(
|
|
126
|
-
|
|
126
|
+
9849,
|
|
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(9868, "All"));
|
|
129
129
|
}
|
|
130
130
|
else if (this._historyItemsFilter === 'auto') {
|
|
131
|
-
name.textContent = ( localize(
|
|
131
|
+
name.textContent = ( localize(9869, "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(9870, "{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(9871, "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(9872, "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(9873, "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(9874, "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(9875, "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(9876, "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(9877, "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(9878, "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
|
+
9879,
|
|
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(9880, "Open File")),
|
|
324
324
|
icon: Codicon.goToFile,
|
|
325
325
|
f1: false,
|
|
326
326
|
menu: [
|
|
@@ -654,7 +654,7 @@ let HistoryItemLoadMoreRenderer = class HistoryItemLoadMoreRenderer {
|
|
|
654
654
|
templateData.elementDisposables.add(autorun(reader => {
|
|
655
655
|
const isLoadingMore = this._isLoadingMore.read(reader);
|
|
656
656
|
const icon = `$(${isLoadingMore ? 'loading~spin' : 'fold-down'})`;
|
|
657
|
-
templateData.historyItemPlaceholderLabel.setLabel(( localize(
|
|
657
|
+
templateData.historyItemPlaceholderLabel.setLabel(( localize(9881, "{0} Load More...", icon)));
|
|
658
658
|
}));
|
|
659
659
|
}
|
|
660
660
|
}
|
|
@@ -714,7 +714,7 @@ SCMHistoryViewPaneActionRunner = ( __decorate([
|
|
|
714
714
|
], SCMHistoryViewPaneActionRunner));
|
|
715
715
|
class SCMHistoryTreeAccessibilityProvider {
|
|
716
716
|
getWidgetAriaLabel() {
|
|
717
|
-
return localize(
|
|
717
|
+
return localize(9882, "Source Control History");
|
|
718
718
|
}
|
|
719
719
|
getAriaLabel(element) {
|
|
720
720
|
if (isSCMRepository(element)) {
|
|
@@ -1157,8 +1157,8 @@ let RepositoryPicker = class RepositoryPicker {
|
|
|
1157
1157
|
this._quickInputService = _quickInputService;
|
|
1158
1158
|
this._scmViewService = _scmViewService;
|
|
1159
1159
|
this._autoQuickPickItem = {
|
|
1160
|
-
label: ( localize(
|
|
1161
|
-
description: ( localize(
|
|
1160
|
+
label: ( localize(9869, "Auto")),
|
|
1161
|
+
description: ( localize(9883, "Show the source control graph for the active repository")),
|
|
1162
1162
|
repository: 'auto'
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
@@ -1176,7 +1176,7 @@ let RepositoryPicker = class RepositoryPicker {
|
|
|
1176
1176
|
repository: r
|
|
1177
1177
|
}))));
|
|
1178
1178
|
return this._quickInputService.pick(picks, {
|
|
1179
|
-
placeHolder: ( localize(
|
|
1179
|
+
placeHolder: ( localize(9884, "Select the repository to view, type to filter all repositories"))
|
|
1180
1180
|
});
|
|
1181
1181
|
}
|
|
1182
1182
|
};
|
|
@@ -1192,21 +1192,21 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
|
|
|
1192
1192
|
this._quickInputService = _quickInputService;
|
|
1193
1193
|
this._allQuickPickItem = {
|
|
1194
1194
|
id: 'all',
|
|
1195
|
-
label: ( localize(
|
|
1196
|
-
description: ( localize(
|
|
1195
|
+
label: ( localize(9868, "All")),
|
|
1196
|
+
description: ( localize(9871, "All history item references")),
|
|
1197
1197
|
historyItemRef: 'all'
|
|
1198
1198
|
};
|
|
1199
1199
|
this._autoQuickPickItem = {
|
|
1200
1200
|
id: 'auto',
|
|
1201
|
-
label: ( localize(
|
|
1202
|
-
description: ( localize(
|
|
1201
|
+
label: ( localize(9869, "Auto")),
|
|
1202
|
+
description: ( localize(9885, "Current history item reference(s)")),
|
|
1203
1203
|
historyItemRef: 'auto'
|
|
1204
1204
|
};
|
|
1205
1205
|
}
|
|
1206
1206
|
async pickHistoryItemRef() {
|
|
1207
1207
|
const quickPick = this._quickInputService.createQuickPick({ useSeparators: true });
|
|
1208
1208
|
this._store.add(quickPick);
|
|
1209
|
-
quickPick.placeholder = ( localize(
|
|
1209
|
+
quickPick.placeholder = ( localize(9886, "Select one/more history item references to view, type to filter"));
|
|
1210
1210
|
quickPick.canSelectMany = true;
|
|
1211
1211
|
quickPick.hideCheckAll = true;
|
|
1212
1212
|
quickPick.busy = true;
|
|
@@ -1336,7 +1336,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1336
1336
|
container.appendChild(element.root);
|
|
1337
1337
|
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), element.root, {
|
|
1338
1338
|
markdown: {
|
|
1339
|
-
value: ( localize(
|
|
1339
|
+
value: ( localize(9887, "Please refresh the graph using the refresh action ($(refresh)).")),
|
|
1340
1340
|
supportThemeIcons: true
|
|
1341
1341
|
},
|
|
1342
1342
|
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(9888, "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(9889, "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(9890, "Source Control Input");
|
|
776
776
|
}
|
|
777
777
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
778
778
|
return kbLabel
|
|
779
779
|
? ( localize(
|
|
780
|
-
|
|
780
|
+
9891,
|
|
781
781
|
"Source Control Input, Use {0} to open Source Control Accessibility Help.",
|
|
782
782
|
kbLabel
|
|
783
783
|
))
|
|
784
784
|
: ( localize(
|
|
785
|
-
|
|
785
|
+
9892,
|
|
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(9893, "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(9894, "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(9895, "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(9896, "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(9897, "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(9898, "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(9899, "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(9900, "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(9901, "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(9902, "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(9903, "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(9904, "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(9905, "Generate commit message")),
|
|
1124
1124
|
icon: Codicon.sparkle,
|
|
1125
1125
|
f1: false,
|
|
1126
1126
|
menu: {
|
|
@@ -1197,10 +1197,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
1197
1197
|
this._onDidChange = ( new Emitter());
|
|
1198
1198
|
this.onDidChange = this._onDidChange.event;
|
|
1199
1199
|
this._disposables = this._register(( new MutableDisposable()));
|
|
1200
|
-
this._dropdownAction = ( new Action('scmInputMoreActions', ( localize(
|
|
1200
|
+
this._dropdownAction = ( new Action('scmInputMoreActions', ( localize(9906, "More Actions...")), 'codicon-chevron-down'));
|
|
1201
1201
|
this._cancelAction = ( new MenuItemAction({
|
|
1202
1202
|
id: SCMInputWidgetCommandId.CancelAction,
|
|
1203
|
-
title: ( localize(
|
|
1203
|
+
title: ( localize(9907, "Cancel")),
|
|
1204
1204
|
icon: Codicon.stopCircle,
|
|
1205
1205
|
}, undefined, undefined, undefined, undefined, contextKeyService, commandService));
|
|
1206
1206
|
}
|
|
@@ -1416,13 +1416,13 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1416
1416
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
1417
1417
|
return kbLabel
|
|
1418
1418
|
? ( localize(
|
|
1419
|
-
|
|
1419
|
+
9908,
|
|
1420
1420
|
"{0}, Use {1} to open Source Control Accessibility Help.",
|
|
1421
1421
|
placeholder,
|
|
1422
1422
|
kbLabel
|
|
1423
1423
|
))
|
|
1424
1424
|
: ( localize(
|
|
1425
|
-
|
|
1425
|
+
9909,
|
|
1426
1426
|
"{0}, Run the Open Accessibility Help command for more information.",
|
|
1427
1427
|
placeholder
|
|
1428
1428
|
));
|
|
@@ -1682,7 +1682,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1682
1682
|
}
|
|
1683
1683
|
const actionsContainer = append(validationContainer, $('.scm-editor-validation-actions'));
|
|
1684
1684
|
const actionbar = ( new ActionBar(actionsContainer));
|
|
1685
|
-
const action = ( new Action('scmInputWidget.validationMessage.close', ( localize(
|
|
1685
|
+
const action = ( new Action('scmInputWidget.validationMessage.close', ( localize(9910, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
1686
1686
|
this.contextViewService.hideContextView();
|
|
1687
1687
|
this.element.style.borderBottomLeftRadius = '2px';
|
|
1688
1688
|
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(9911, "Auto")),
|
|
55
55
|
description: this._autoQuickItemDescription,
|
|
56
56
|
repository: 'auto'
|
|
57
57
|
};
|