@codingame/monaco-vscode-scm-service-override 26.0.1 → 26.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +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 +12 -12
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +72 -72
- package/vscode/src/vs/workbench/contrib/scm/browser/scmAccessibilityHelp.js +23 -23
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.js +26 -26
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +25 -25
- 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": "26.
|
|
3
|
+
"version": "26.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - scm service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "26.
|
|
18
|
+
"@codingame/monaco-vscode-api": "26.1.1"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -127,7 +127,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
127
127
|
if (count === 0) {
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
const badge = ( new NumberBadge(count, num => ( localize(
|
|
130
|
+
const badge = ( new NumberBadge(count, num => ( localize(10755, "{0} pending changes", num))));
|
|
131
131
|
store.add(this.activityService.showViewActivity(VIEW_PANE_ID, {
|
|
132
132
|
badge
|
|
133
133
|
}));
|
|
@@ -142,7 +142,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
142
142
|
const tooltip = `${label}${command.tooltip ? ` - ${command.tooltip}` : ""}`;
|
|
143
143
|
const genericCommandName = getStatusBarCommandGenericName(command);
|
|
144
144
|
const statusbarEntry = {
|
|
145
|
-
name: ( localize(
|
|
145
|
+
name: ( localize(10756, "Source Control")) + (genericCommandName ? ` ${genericCommandName}` : ""),
|
|
146
146
|
text: command.title,
|
|
147
147
|
ariaLabel: tooltip,
|
|
148
148
|
tooltip,
|
|
@@ -170,7 +170,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
170
170
|
if (this.scmViewService.repositories.length > 1) {
|
|
171
171
|
const icon = getSCMRepositoryIcon(activeRepository, activeRepository.repository);
|
|
172
172
|
const repositoryStatusbarEntry = {
|
|
173
|
-
name: ( localize(
|
|
173
|
+
name: ( localize(10757, "Source Control Provider")),
|
|
174
174
|
text: `$(${icon.id}) ${activeRepository.repository.provider.name}`,
|
|
175
175
|
ariaLabel: label,
|
|
176
176
|
tooltip: label,
|
|
@@ -203,8 +203,8 @@ let SCMActiveResourceContextKeyController = class SCMActiveResourceContextKeyCon
|
|
|
203
203
|
this.scmService = scmService;
|
|
204
204
|
this.uriIdentityService = uriIdentityService;
|
|
205
205
|
this._onDidRepositoryChange = ( new Emitter());
|
|
206
|
-
const activeResourceHasChangesContextKey = ( new RawContextKey("scmActiveResourceHasChanges", false, ( localize(
|
|
207
|
-
const activeResourceRepositoryContextKey = ( new RawContextKey("scmActiveResourceRepository", undefined, ( localize(
|
|
206
|
+
const activeResourceHasChangesContextKey = ( new RawContextKey("scmActiveResourceHasChanges", false, ( localize(10758, "Whether the active resource has changes"))));
|
|
207
|
+
const activeResourceRepositoryContextKey = ( new RawContextKey("scmActiveResourceRepository", undefined, ( localize(10759, "The active resource's repository"))));
|
|
208
208
|
this._repositories = observableFromEvent(
|
|
209
209
|
this,
|
|
210
210
|
Event.any(this.scmService.onDidAddRepository, this.scmService.onDidRemoveRepository),
|
|
@@ -313,7 +313,7 @@ let SCMMenus = class SCMMenus {
|
|
|
313
313
|
};
|
|
314
314
|
SCMMenus = ( __decorate([( __param(0, ISCMService)), ( __param(1, IInstantiationService))], SCMMenus));
|
|
315
315
|
MenuRegistry.appendMenuItem(MenuId.SCMResourceContext, {
|
|
316
|
-
title: ( localize(
|
|
316
|
+
title: ( localize(10760, "Share")),
|
|
317
317
|
submenu: MenuId.SCMResourceContextShare,
|
|
318
318
|
group: "45_share",
|
|
319
319
|
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(10761, "Added lines"));
|
|
65
65
|
const diffAddedOptions = {
|
|
66
66
|
gutter,
|
|
67
67
|
overview: {
|
|
@@ -78,7 +78,7 @@ let QuickDiffDecorator = QuickDiffDecorator_1 = class QuickDiffDecorator extends
|
|
|
78
78
|
this.addedPatternOptions = QuickDiffDecorator_1.createDecoration("dirty-diff-added primary pattern", diffAdded, diffAddedOptions);
|
|
79
79
|
this.addedSecondaryOptions = QuickDiffDecorator_1.createDecoration("dirty-diff-added secondary", diffAdded, diffAddedOptions);
|
|
80
80
|
this.addedSecondaryPatternOptions = QuickDiffDecorator_1.createDecoration("dirty-diff-added secondary pattern", diffAdded, diffAddedOptions);
|
|
81
|
-
const diffModified = ( localize(
|
|
81
|
+
const diffModified = ( localize(10762, "Changed lines"));
|
|
82
82
|
const diffModifiedOptions = {
|
|
83
83
|
gutter,
|
|
84
84
|
overview: {
|
|
@@ -95,7 +95,7 @@ let QuickDiffDecorator = QuickDiffDecorator_1 = class QuickDiffDecorator extends
|
|
|
95
95
|
this.modifiedPatternOptions = QuickDiffDecorator_1.createDecoration("dirty-diff-modified primary pattern", diffModified, diffModifiedOptions);
|
|
96
96
|
this.modifiedSecondaryOptions = QuickDiffDecorator_1.createDecoration("dirty-diff-modified secondary", diffModified, diffModifiedOptions);
|
|
97
97
|
this.modifiedSecondaryPatternOptions = QuickDiffDecorator_1.createDecoration("dirty-diff-modified secondary pattern", diffModified, diffModifiedOptions);
|
|
98
|
-
const diffDeleted = ( localize(
|
|
98
|
+
const diffDeleted = ( localize(10763, "Removed lines"));
|
|
99
99
|
const diffDeletedOptions = {
|
|
100
100
|
gutter,
|
|
101
101
|
overview: {
|
|
@@ -71,7 +71,7 @@ let QuickDiffPickerViewItem = class QuickDiffPickerViewItem extends SelectAction
|
|
|
71
71
|
const opaqueTitleColor = peekTitleColor?.makeOpaque(editorBackgroundColor) ?? editorBackgroundColor;
|
|
72
72
|
styles.selectBackground = ( ( opaqueTitleColor.lighten(.6)).toString());
|
|
73
73
|
super(null, action, [], 0, contextViewService, styles, {
|
|
74
|
-
ariaLabel: ( localize(
|
|
74
|
+
ariaLabel: ( localize(10764, "Switch quick diff base")),
|
|
75
75
|
useCustomDrawn: !hasNativeContextMenu(configurationService)
|
|
76
76
|
});
|
|
77
77
|
this.optionsItems = [];
|
|
@@ -98,7 +98,7 @@ class QuickDiffPickerBaseAction extends Action {
|
|
|
98
98
|
this.ID = "quickDiff.base.switch";
|
|
99
99
|
}
|
|
100
100
|
static {
|
|
101
|
-
this.LABEL = ( localize(
|
|
101
|
+
this.LABEL = ( localize(10765, "Switch Quick Diff Base"));
|
|
102
102
|
}
|
|
103
103
|
constructor(callback) {
|
|
104
104
|
super(
|
|
@@ -245,13 +245,13 @@ let QuickDiffWidget = class QuickDiffWidget extends PeekViewWidget {
|
|
|
245
245
|
if (!this.shouldUseDropdown()) {
|
|
246
246
|
const label = this.model.quickDiffs.find(quickDiff => quickDiff.id === this._providerId)?.label ?? "";
|
|
247
247
|
detail = this.model.changes.length > 1 ? ( localize(
|
|
248
|
-
|
|
248
|
+
10766,
|
|
249
249
|
"{0} - {1} of {2} changes",
|
|
250
250
|
label,
|
|
251
251
|
providerIndex + 1,
|
|
252
252
|
providerChanges.length
|
|
253
253
|
)) : ( localize(
|
|
254
|
-
|
|
254
|
+
10767,
|
|
255
255
|
"{0} - {1} of {2} change",
|
|
256
256
|
label,
|
|
257
257
|
providerIndex + 1,
|
|
@@ -259,7 +259,7 @@ let QuickDiffWidget = class QuickDiffWidget extends PeekViewWidget {
|
|
|
259
259
|
));
|
|
260
260
|
this.dropdownContainer.style.display = "none";
|
|
261
261
|
} else {
|
|
262
|
-
detail = this.model.changes.length > 1 ? ( localize(
|
|
262
|
+
detail = this.model.changes.length > 1 ? ( localize(10768, "{0} of {1} changes", providerIndex + 1, providerChanges.length)) : ( localize(10769, "{0} of {1} change", providerIndex + 1, providerChanges.length));
|
|
263
263
|
this.dropdownContainer.style.display = "inherit";
|
|
264
264
|
}
|
|
265
265
|
this.setTitle(this.title, detail);
|
|
@@ -318,7 +318,7 @@ let QuickDiffWidget = class QuickDiffWidget extends PeekViewWidget {
|
|
|
318
318
|
label: false,
|
|
319
319
|
icon: true
|
|
320
320
|
});
|
|
321
|
-
this._actionbarWidget.push(this._disposables.add(( new Action("peekview.close", ( localize(
|
|
321
|
+
this._actionbarWidget.push(this._disposables.add(( new Action("peekview.close", ( localize(10770, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => this.dispose()))), {
|
|
322
322
|
label: false,
|
|
323
323
|
icon: true
|
|
324
324
|
});
|
|
@@ -700,7 +700,7 @@ class ShowPreviousChangeAction extends EditorAction {
|
|
|
700
700
|
constructor(outerEditor) {
|
|
701
701
|
super({
|
|
702
702
|
id: "editor.action.dirtydiff.previous",
|
|
703
|
-
label: ( localize2(
|
|
703
|
+
label: ( localize2(10771, "Show Previous Change")),
|
|
704
704
|
precondition: ( TextCompareEditorActiveContext.toNegated()),
|
|
705
705
|
kbOpts: {
|
|
706
706
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -730,7 +730,7 @@ class ShowNextChangeAction extends EditorAction {
|
|
|
730
730
|
constructor(outerEditor) {
|
|
731
731
|
super({
|
|
732
732
|
id: "editor.action.dirtydiff.next",
|
|
733
|
-
label: ( localize2(
|
|
733
|
+
label: ( localize2(10772, "Show Next Change")),
|
|
734
734
|
precondition: ( TextCompareEditorActiveContext.toNegated()),
|
|
735
735
|
kbOpts: {
|
|
736
736
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -760,7 +760,7 @@ class GotoPreviousChangeAction extends EditorAction {
|
|
|
760
760
|
constructor() {
|
|
761
761
|
super({
|
|
762
762
|
id: "workbench.action.editor.previousChange",
|
|
763
|
-
label: ( localize2(
|
|
763
|
+
label: ( localize2(10773, "Go to Previous Change")),
|
|
764
764
|
precondition: ( ContextKeyExpr.and(( TextCompareEditorActiveContext.toNegated()), ( quickDiffDecorationCount.notEqualsTo(0)))),
|
|
765
765
|
kbOpts: {
|
|
766
766
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -798,7 +798,7 @@ class GotoNextChangeAction extends EditorAction {
|
|
|
798
798
|
constructor() {
|
|
799
799
|
super({
|
|
800
800
|
id: "workbench.action.editor.nextChange",
|
|
801
|
-
label: ( localize2(
|
|
801
|
+
label: ( localize2(10774, "Go to Next Change")),
|
|
802
802
|
precondition: ( ContextKeyExpr.and(( TextCompareEditorActiveContext.toNegated()), ( quickDiffDecorationCount.notEqualsTo(0)))),
|
|
803
803
|
kbOpts: {
|
|
804
804
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -836,7 +836,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
836
836
|
group: "7_change_nav",
|
|
837
837
|
command: {
|
|
838
838
|
id: "editor.action.dirtydiff.next",
|
|
839
|
-
title: ( localize(
|
|
839
|
+
title: ( localize(10775, "Next &&Change"))
|
|
840
840
|
},
|
|
841
841
|
order: 1
|
|
842
842
|
});
|
|
@@ -844,7 +844,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
844
844
|
group: "7_change_nav",
|
|
845
845
|
command: {
|
|
846
846
|
id: "editor.action.dirtydiff.previous",
|
|
847
|
-
title: ( localize(
|
|
847
|
+
title: ( localize(10776, "Previous &&Change"))
|
|
848
848
|
},
|
|
849
849
|
order: 2
|
|
850
850
|
});
|
|
@@ -62,10 +62,10 @@ registerEditorContribution(
|
|
|
62
62
|
QuickDiffEditorController,
|
|
63
63
|
EditorContributionInstantiation.AfterFirstRender
|
|
64
64
|
);
|
|
65
|
-
const sourceControlViewIcon = registerIcon("source-control-view-icon", Codicon.sourceControl, ( localize(
|
|
65
|
+
const sourceControlViewIcon = registerIcon("source-control-view-icon", Codicon.sourceControl, ( localize(10777, "View icon of the Source Control view.")));
|
|
66
66
|
const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).registerViewContainer({
|
|
67
67
|
id: VIEWLET_ID,
|
|
68
|
-
title: ( localize2(
|
|
68
|
+
title: ( localize2(10778, "Source Control")),
|
|
69
69
|
ctorDescriptor: ( new SyncDescriptor(SCMViewPaneContainer)),
|
|
70
70
|
storageId: "workbench.scm.views.state",
|
|
71
71
|
icon: sourceControlViewIcon,
|
|
@@ -76,25 +76,25 @@ const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).regist
|
|
|
76
76
|
doNotRegisterOpenCommand: true
|
|
77
77
|
});
|
|
78
78
|
const viewsRegistry = ( Registry.as(Extensions$1.ViewsRegistry));
|
|
79
|
-
const containerTitle = ( localize(
|
|
79
|
+
const containerTitle = ( localize(10779, "Source Control"));
|
|
80
80
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
81
|
-
content: ( localize(
|
|
81
|
+
content: ( localize(10780, "No source control providers registered.")),
|
|
82
82
|
when: "default"
|
|
83
83
|
});
|
|
84
84
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
85
85
|
content: ( localize(
|
|
86
|
-
|
|
86
|
+
10781,
|
|
87
87
|
"None of the registered source control providers work in Restricted Mode."
|
|
88
88
|
)),
|
|
89
89
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("scm.providerCount", 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
90
90
|
});
|
|
91
91
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
92
|
-
content: `[${( localize(
|
|
92
|
+
content: `[${( localize(10782, "Manage Workspace Trust"))}](command:${MANAGE_TRUST_COMMAND_ID})`,
|
|
93
93
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("scm.providerCount", 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
94
94
|
});
|
|
95
95
|
viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
96
96
|
content: ( localize(
|
|
97
|
-
|
|
97
|
+
10783,
|
|
98
98
|
"The selected source control provider does not have any source control history items."
|
|
99
99
|
)),
|
|
100
100
|
when: ( ContextKeys.SCMHistoryItemCount.isEqualTo(0))
|
|
@@ -102,8 +102,8 @@ viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
|
102
102
|
viewsRegistry.registerViews([{
|
|
103
103
|
id: REPOSITORIES_VIEW_PANE_ID,
|
|
104
104
|
containerTitle,
|
|
105
|
-
name: ( localize2(
|
|
106
|
-
singleViewPaneContainerTitle: ( localize(
|
|
105
|
+
name: ( localize2(10784, "Repositories")),
|
|
106
|
+
singleViewPaneContainerTitle: ( localize(10785, "Source Control Repositories")),
|
|
107
107
|
ctorDescriptor: ( new SyncDescriptor(SCMRepositoriesViewPane)),
|
|
108
108
|
canToggleVisibility: true,
|
|
109
109
|
hideByDefault: true,
|
|
@@ -116,7 +116,7 @@ viewsRegistry.registerViews([{
|
|
|
116
116
|
viewsRegistry.registerViews([{
|
|
117
117
|
id: VIEW_PANE_ID,
|
|
118
118
|
containerTitle,
|
|
119
|
-
name: ( localize2(
|
|
119
|
+
name: ( localize2(10786, "Changes")),
|
|
120
120
|
singleViewPaneContainerTitle: containerTitle,
|
|
121
121
|
ctorDescriptor: ( new SyncDescriptor(SCMViewPane)),
|
|
122
122
|
canToggleVisibility: true,
|
|
@@ -126,7 +126,7 @@ viewsRegistry.registerViews([{
|
|
|
126
126
|
containerIcon: sourceControlViewIcon,
|
|
127
127
|
openCommandActionDescriptor: {
|
|
128
128
|
id: viewContainer.id,
|
|
129
|
-
mnemonicTitle: ( localize(
|
|
129
|
+
mnemonicTitle: ( localize(10787, "Source &&Control")),
|
|
130
130
|
keybindings: {
|
|
131
131
|
primary: 0,
|
|
132
132
|
win: {
|
|
@@ -145,8 +145,8 @@ viewsRegistry.registerViews([{
|
|
|
145
145
|
viewsRegistry.registerViews([{
|
|
146
146
|
id: HISTORY_VIEW_PANE_ID,
|
|
147
147
|
containerTitle,
|
|
148
|
-
name: ( localize2(
|
|
149
|
-
singleViewPaneContainerTitle: ( localize(
|
|
148
|
+
name: ( localize2(10788, "Graph")),
|
|
149
|
+
singleViewPaneContainerTitle: ( localize(10789, "Source Control Graph")),
|
|
150
150
|
ctorDescriptor: ( new SyncDescriptor(SCMHistoryViewPane)),
|
|
151
151
|
canToggleVisibility: true,
|
|
152
152
|
canMoveView: true,
|
|
@@ -170,32 +170,32 @@ registerWorkbenchContribution2(
|
|
|
170
170
|
( Registry.as(Extensions$2.Configuration)).registerConfiguration({
|
|
171
171
|
id: "scm",
|
|
172
172
|
order: 5,
|
|
173
|
-
title: ( localize(
|
|
173
|
+
title: ( localize(10790, "Source Control")),
|
|
174
174
|
type: "object",
|
|
175
175
|
scope: ConfigurationScope.RESOURCE,
|
|
176
176
|
properties: {
|
|
177
177
|
"scm.diffDecorations": {
|
|
178
178
|
type: "string",
|
|
179
179
|
enum: ["all", "gutter", "overview", "minimap", "none"],
|
|
180
|
-
enumDescriptions: [( localize(
|
|
180
|
+
enumDescriptions: [( localize(10791, "Show the diff decorations in all available locations.")), ( localize(10792, "Show the diff decorations only in the editor gutter.")), ( localize(10793, "Show the diff decorations only in the overview ruler.")), ( localize(10794, "Show the diff decorations only in the minimap.")), ( localize(10795, "Do not show the diff decorations."))],
|
|
181
181
|
default: "all",
|
|
182
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(10796, "Controls diff decorations in the editor."))
|
|
183
183
|
},
|
|
184
184
|
"scm.diffDecorationsGutterWidth": {
|
|
185
185
|
type: "number",
|
|
186
186
|
enum: [1, 2, 3, 4, 5],
|
|
187
187
|
default: 3,
|
|
188
188
|
description: ( localize(
|
|
189
|
-
|
|
189
|
+
10797,
|
|
190
190
|
"Controls the width(px) of diff decorations in gutter (added & modified)."
|
|
191
191
|
))
|
|
192
192
|
},
|
|
193
193
|
"scm.diffDecorationsGutterVisibility": {
|
|
194
194
|
type: "string",
|
|
195
195
|
enum: ["always", "hover"],
|
|
196
|
-
enumDescriptions: [( localize(
|
|
196
|
+
enumDescriptions: [( localize(10798, "Show the diff decorator in the gutter at all times.")), ( localize(10799, "Show the diff decorator in the gutter only on hover."))],
|
|
197
197
|
description: ( localize(
|
|
198
|
-
|
|
198
|
+
10800,
|
|
199
199
|
"Controls the visibility of the Source Control diff decorator in the gutter."
|
|
200
200
|
)),
|
|
201
201
|
default: "always"
|
|
@@ -203,26 +203,26 @@ registerWorkbenchContribution2(
|
|
|
203
203
|
"scm.diffDecorationsGutterAction": {
|
|
204
204
|
type: "string",
|
|
205
205
|
enum: ["diff", "none"],
|
|
206
|
-
enumDescriptions: [( localize(
|
|
207
|
-
description: ( localize(
|
|
206
|
+
enumDescriptions: [( localize(10801, "Show the inline diff Peek view on click.")), ( localize(10802, "Do nothing."))],
|
|
207
|
+
description: ( localize(10803, "Controls the behavior of Source Control diff gutter decorations.")),
|
|
208
208
|
default: "diff"
|
|
209
209
|
},
|
|
210
210
|
"scm.diffDecorationsGutterPattern": {
|
|
211
211
|
type: "object",
|
|
212
212
|
description: ( localize(
|
|
213
|
-
|
|
213
|
+
10804,
|
|
214
214
|
"Controls whether a pattern is used for the diff decorations in gutter."
|
|
215
215
|
)),
|
|
216
216
|
additionalProperties: false,
|
|
217
217
|
properties: {
|
|
218
218
|
"added": {
|
|
219
219
|
type: "boolean",
|
|
220
|
-
description: ( localize(
|
|
220
|
+
description: ( localize(10805, "Use pattern for the diff decorations in gutter for added lines."))
|
|
221
221
|
},
|
|
222
222
|
"modified": {
|
|
223
223
|
type: "boolean",
|
|
224
224
|
description: ( localize(
|
|
225
|
-
|
|
225
|
+
10806,
|
|
226
226
|
"Use pattern for the diff decorations in gutter for modified lines."
|
|
227
227
|
))
|
|
228
228
|
}
|
|
@@ -235,9 +235,9 @@ registerWorkbenchContribution2(
|
|
|
235
235
|
"scm.diffDecorationsIgnoreTrimWhitespace": {
|
|
236
236
|
type: "string",
|
|
237
237
|
enum: ["true", "false", "inherit"],
|
|
238
|
-
enumDescriptions: [( localize(
|
|
238
|
+
enumDescriptions: [( localize(10807, "Ignore leading and trailing whitespace.")), ( localize(10808, "Do not ignore leading and trailing whitespace.")), ( localize(10809, "Inherit from `diffEditor.ignoreTrimWhitespace`."))],
|
|
239
239
|
description: ( localize(
|
|
240
|
-
|
|
240
|
+
10810,
|
|
241
241
|
"Controls whether leading and trailing whitespace is ignored in Source Control diff gutter decorations."
|
|
242
242
|
)),
|
|
243
243
|
default: "false"
|
|
@@ -245,7 +245,7 @@ registerWorkbenchContribution2(
|
|
|
245
245
|
"scm.alwaysShowActions": {
|
|
246
246
|
type: "boolean",
|
|
247
247
|
description: ( localize(
|
|
248
|
-
|
|
248
|
+
10811,
|
|
249
249
|
"Controls whether inline actions are always visible in the Source Control view."
|
|
250
250
|
)),
|
|
251
251
|
default: false
|
|
@@ -253,9 +253,9 @@ registerWorkbenchContribution2(
|
|
|
253
253
|
"scm.countBadge": {
|
|
254
254
|
type: "string",
|
|
255
255
|
enum: ["all", "focused", "off"],
|
|
256
|
-
enumDescriptions: [( localize(
|
|
256
|
+
enumDescriptions: [( localize(10812, "Show the sum of all Source Control Provider count badges.")), ( localize(10813, "Show the count badge of the focused Source Control Provider.")), ( localize(10814, "Disable the Source Control count badge."))],
|
|
257
257
|
description: ( localize(
|
|
258
|
-
|
|
258
|
+
10815,
|
|
259
259
|
"Controls the count badge on the Source Control icon on the Activity Bar."
|
|
260
260
|
)),
|
|
261
261
|
default: "all"
|
|
@@ -263,9 +263,9 @@ registerWorkbenchContribution2(
|
|
|
263
263
|
"scm.providerCountBadge": {
|
|
264
264
|
type: "string",
|
|
265
265
|
enum: ["hidden", "auto", "visible"],
|
|
266
|
-
enumDescriptions: [( localize(
|
|
266
|
+
enumDescriptions: [( localize(10816, "Hide Source Control Provider count badges.")), ( localize(10817, "Only show count badge for Source Control Provider when non-zero.")), ( localize(10818, "Show Source Control Provider count badges."))],
|
|
267
267
|
markdownDescription: ( localize(
|
|
268
|
-
|
|
268
|
+
10819,
|
|
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
|
)),
|
|
@@ -274,16 +274,16 @@ registerWorkbenchContribution2(
|
|
|
274
274
|
"scm.defaultViewMode": {
|
|
275
275
|
type: "string",
|
|
276
276
|
enum: ["tree", "list"],
|
|
277
|
-
enumDescriptions: [( localize(
|
|
278
|
-
description: ( localize(
|
|
277
|
+
enumDescriptions: [( localize(10820, "Show the repository changes as a tree.")), ( localize(10821, "Show the repository changes as a list."))],
|
|
278
|
+
description: ( localize(10822, "Controls the default Source Control repository view mode.")),
|
|
279
279
|
default: "list"
|
|
280
280
|
},
|
|
281
281
|
"scm.defaultViewSortKey": {
|
|
282
282
|
type: "string",
|
|
283
283
|
enum: ["name", "path", "status"],
|
|
284
|
-
enumDescriptions: [( localize(
|
|
284
|
+
enumDescriptions: [( localize(10823, "Sort the repository changes by file name.")), ( localize(10824, "Sort the repository changes by path.")), ( localize(10825, "Sort the repository changes by Source Control status."))],
|
|
285
285
|
description: ( localize(
|
|
286
|
-
|
|
286
|
+
10826,
|
|
287
287
|
"Controls the default Source Control repository changes sort order when viewed as a list."
|
|
288
288
|
)),
|
|
289
289
|
default: "path"
|
|
@@ -291,7 +291,7 @@ registerWorkbenchContribution2(
|
|
|
291
291
|
"scm.autoReveal": {
|
|
292
292
|
type: "boolean",
|
|
293
293
|
description: ( localize(
|
|
294
|
-
|
|
294
|
+
10827,
|
|
295
295
|
"Controls whether the Source Control view should automatically reveal and select files when opening them."
|
|
296
296
|
)),
|
|
297
297
|
default: true
|
|
@@ -299,20 +299,20 @@ registerWorkbenchContribution2(
|
|
|
299
299
|
"scm.inputFontFamily": {
|
|
300
300
|
type: "string",
|
|
301
301
|
markdownDescription: ( localize(
|
|
302
|
-
|
|
302
|
+
10828,
|
|
303
303
|
"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."
|
|
304
304
|
)),
|
|
305
305
|
default: "default"
|
|
306
306
|
},
|
|
307
307
|
"scm.inputFontSize": {
|
|
308
308
|
type: "number",
|
|
309
|
-
markdownDescription: ( localize(
|
|
309
|
+
markdownDescription: ( localize(10829, "Controls the font size for the input message in pixels.")),
|
|
310
310
|
default: 13
|
|
311
311
|
},
|
|
312
312
|
"scm.inputMaxLineCount": {
|
|
313
313
|
type: "number",
|
|
314
314
|
markdownDescription: ( localize(
|
|
315
|
-
|
|
315
|
+
10830,
|
|
316
316
|
"Controls the maximum number of lines that the input will auto-grow to."
|
|
317
317
|
)),
|
|
318
318
|
minimum: 1,
|
|
@@ -322,7 +322,7 @@ registerWorkbenchContribution2(
|
|
|
322
322
|
"scm.inputMinLineCount": {
|
|
323
323
|
type: "number",
|
|
324
324
|
markdownDescription: ( localize(
|
|
325
|
-
|
|
325
|
+
10831,
|
|
326
326
|
"Controls the minimum number of lines that the input will auto-grow from."
|
|
327
327
|
)),
|
|
328
328
|
minimum: 1,
|
|
@@ -332,7 +332,7 @@ registerWorkbenchContribution2(
|
|
|
332
332
|
"scm.alwaysShowRepositories": {
|
|
333
333
|
type: "boolean",
|
|
334
334
|
markdownDescription: ( localize(
|
|
335
|
-
|
|
335
|
+
10832,
|
|
336
336
|
"Controls whether repositories should always be visible in the Source Control view."
|
|
337
337
|
)),
|
|
338
338
|
default: false
|
|
@@ -341,17 +341,17 @@ registerWorkbenchContribution2(
|
|
|
341
341
|
type: "string",
|
|
342
342
|
enum: ["discovery time", "name", "path"],
|
|
343
343
|
enumDescriptions: [( localize(
|
|
344
|
-
|
|
344
|
+
10833,
|
|
345
345
|
"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."
|
|
346
346
|
)), ( localize(
|
|
347
|
-
|
|
347
|
+
10834,
|
|
348
348
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
|
|
349
349
|
)), ( localize(
|
|
350
|
-
|
|
350
|
+
10835,
|
|
351
351
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository path."
|
|
352
352
|
))],
|
|
353
353
|
description: ( localize(
|
|
354
|
-
|
|
354
|
+
10836,
|
|
355
355
|
"Controls the sort order of the repositories in the source control repositories view."
|
|
356
356
|
)),
|
|
357
357
|
default: "discovery time"
|
|
@@ -359,7 +359,7 @@ registerWorkbenchContribution2(
|
|
|
359
359
|
"scm.repositories.visible": {
|
|
360
360
|
type: "number",
|
|
361
361
|
description: ( localize(
|
|
362
|
-
|
|
362
|
+
10837,
|
|
363
363
|
"Controls how many repositories are visible in the Source Control Repositories section. Set to 0, to be able to manually resize the view."
|
|
364
364
|
)),
|
|
365
365
|
default: 10
|
|
@@ -367,9 +367,9 @@ registerWorkbenchContribution2(
|
|
|
367
367
|
"scm.repositories.selectionMode": {
|
|
368
368
|
type: "string",
|
|
369
369
|
enum: ["multiple", "single"],
|
|
370
|
-
enumDescriptions: [( localize(
|
|
370
|
+
enumDescriptions: [( localize(10838, "Multiple repositories can be selected at the same time.")), ( localize(10839, "Only one repository can be selected at a time."))],
|
|
371
371
|
description: ( localize(
|
|
372
|
-
|
|
372
|
+
10840,
|
|
373
373
|
"Controls the selection mode of the repositories in the Source Control Repositories view."
|
|
374
374
|
)),
|
|
375
375
|
default: "multiple"
|
|
@@ -377,7 +377,7 @@ registerWorkbenchContribution2(
|
|
|
377
377
|
"scm.repositories.explorer": {
|
|
378
378
|
type: "boolean",
|
|
379
379
|
markdownDescription: ( localize(
|
|
380
|
-
|
|
380
|
+
10841,
|
|
381
381
|
"Controls whether to show repository artifacts in the Source Control Repositories view. This feature is experimental and only works when {0} is set to `{1}`.",
|
|
382
382
|
"`#scm.repositories.selectionMode#`",
|
|
383
383
|
"single"
|
|
@@ -388,7 +388,7 @@ registerWorkbenchContribution2(
|
|
|
388
388
|
"scm.showActionButton": {
|
|
389
389
|
type: "boolean",
|
|
390
390
|
markdownDescription: ( localize(
|
|
391
|
-
|
|
391
|
+
10842,
|
|
392
392
|
"Controls whether an action button can be shown in the Source Control view."
|
|
393
393
|
)),
|
|
394
394
|
default: true
|
|
@@ -396,7 +396,7 @@ registerWorkbenchContribution2(
|
|
|
396
396
|
"scm.showInputActionButton": {
|
|
397
397
|
type: "boolean",
|
|
398
398
|
markdownDescription: ( localize(
|
|
399
|
-
|
|
399
|
+
10843,
|
|
400
400
|
"Controls whether an action button can be shown in the Source Control input."
|
|
401
401
|
)),
|
|
402
402
|
default: true
|
|
@@ -404,7 +404,7 @@ registerWorkbenchContribution2(
|
|
|
404
404
|
"scm.workingSets.enabled": {
|
|
405
405
|
type: "boolean",
|
|
406
406
|
description: ( localize(
|
|
407
|
-
|
|
407
|
+
10844,
|
|
408
408
|
"Controls whether to store editor working sets when switching between source control history item groups."
|
|
409
409
|
)),
|
|
410
410
|
default: false
|
|
@@ -413,14 +413,14 @@ registerWorkbenchContribution2(
|
|
|
413
413
|
type: "string",
|
|
414
414
|
enum: ["empty", "current"],
|
|
415
415
|
enumDescriptions: [( localize(
|
|
416
|
-
|
|
416
|
+
10845,
|
|
417
417
|
"Use an empty working set when switching to a source control history item group that does not have a working set."
|
|
418
418
|
)), ( localize(
|
|
419
|
-
|
|
419
|
+
10846,
|
|
420
420
|
"Use the current working set when switching to a source control history item group that does not have a working set."
|
|
421
421
|
))],
|
|
422
422
|
description: ( localize(
|
|
423
|
-
|
|
423
|
+
10847,
|
|
424
424
|
"Controls the default working set to use when switching to a source control history item group that does not have a working set."
|
|
425
425
|
)),
|
|
426
426
|
default: "current"
|
|
@@ -428,7 +428,7 @@ registerWorkbenchContribution2(
|
|
|
428
428
|
"scm.compactFolders": {
|
|
429
429
|
type: "boolean",
|
|
430
430
|
description: ( localize(
|
|
431
|
-
|
|
431
|
+
10848,
|
|
432
432
|
"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."
|
|
433
433
|
)),
|
|
434
434
|
default: true
|
|
@@ -436,7 +436,7 @@ registerWorkbenchContribution2(
|
|
|
436
436
|
"scm.graph.pageOnScroll": {
|
|
437
437
|
type: "boolean",
|
|
438
438
|
description: ( localize(
|
|
439
|
-
|
|
439
|
+
10849,
|
|
440
440
|
"Controls whether the Source Control Graph view will load the next page of items when you scroll to the end of the list."
|
|
441
441
|
)),
|
|
442
442
|
default: true
|
|
@@ -444,7 +444,7 @@ registerWorkbenchContribution2(
|
|
|
444
444
|
"scm.graph.pageSize": {
|
|
445
445
|
type: "number",
|
|
446
446
|
description: ( localize(
|
|
447
|
-
|
|
447
|
+
10850,
|
|
448
448
|
"The number of items to show in the Source Control Graph view by default and when loading more items."
|
|
449
449
|
)),
|
|
450
450
|
minimum: 1,
|
|
@@ -455,14 +455,14 @@ registerWorkbenchContribution2(
|
|
|
455
455
|
type: "string",
|
|
456
456
|
enum: ["all", "filter"],
|
|
457
457
|
enumDescriptions: [( localize(
|
|
458
|
-
|
|
458
|
+
10851,
|
|
459
459
|
"Show badges of all history item groups in the Source Control Graph view."
|
|
460
460
|
)), ( localize(
|
|
461
|
-
|
|
461
|
+
10852,
|
|
462
462
|
"Show only the badges of history item groups used as a filter in the Source Control Graph view."
|
|
463
463
|
))],
|
|
464
464
|
description: ( localize(
|
|
465
|
-
|
|
465
|
+
10853,
|
|
466
466
|
"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."
|
|
467
467
|
)),
|
|
468
468
|
default: "filter"
|
|
@@ -470,7 +470,7 @@ registerWorkbenchContribution2(
|
|
|
470
470
|
"scm.graph.showIncomingChanges": {
|
|
471
471
|
type: "boolean",
|
|
472
472
|
description: ( localize(
|
|
473
|
-
|
|
473
|
+
10854,
|
|
474
474
|
"Controls whether to show incoming changes in the Source Control Graph view."
|
|
475
475
|
)),
|
|
476
476
|
default: true
|
|
@@ -478,7 +478,7 @@ registerWorkbenchContribution2(
|
|
|
478
478
|
"scm.graph.showOutgoingChanges": {
|
|
479
479
|
type: "boolean",
|
|
480
480
|
description: ( localize(
|
|
481
|
-
|
|
481
|
+
10855,
|
|
482
482
|
"Controls whether to show outgoing changes in the Source Control Graph view."
|
|
483
483
|
)),
|
|
484
484
|
default: true
|
|
@@ -488,7 +488,7 @@ registerWorkbenchContribution2(
|
|
|
488
488
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
489
489
|
id: "scm.acceptInput",
|
|
490
490
|
metadata: {
|
|
491
|
-
description: ( localize(
|
|
491
|
+
description: ( localize(10856, "Source Control: Accept Input")),
|
|
492
492
|
args: []
|
|
493
493
|
},
|
|
494
494
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -538,7 +538,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
538
538
|
});
|
|
539
539
|
const viewNextCommitCommand = {
|
|
540
540
|
description: {
|
|
541
|
-
description: ( localize(
|
|
541
|
+
description: ( localize(10857, "Source Control: View Next Commit")),
|
|
542
542
|
args: []
|
|
543
543
|
},
|
|
544
544
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -553,7 +553,7 @@ const viewNextCommitCommand = {
|
|
|
553
553
|
};
|
|
554
554
|
const viewPreviousCommitCommand = {
|
|
555
555
|
description: {
|
|
556
|
-
description: ( localize(
|
|
556
|
+
description: ( localize(10858, "Source Control: View Previous Commit")),
|
|
557
557
|
args: []
|
|
558
558
|
},
|
|
559
559
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -623,8 +623,8 @@ CommandsRegistry.registerCommand("scm.openInTerminal", async (accessor, provider
|
|
|
623
623
|
CommandsRegistry.registerCommand("scm.setActiveProvider", async accessor => {
|
|
624
624
|
const instantiationService = accessor.get(IInstantiationService);
|
|
625
625
|
const scmViewService = accessor.get(ISCMViewService);
|
|
626
|
-
const placeHolder = ( localize(
|
|
627
|
-
const autoQuickItemDescription = ( localize(
|
|
626
|
+
const placeHolder = ( localize(10859, "Select the active repository, type to filter all repositories"));
|
|
627
|
+
const autoQuickItemDescription = ( localize(10860, "The active repository is updated based on active editor"));
|
|
628
628
|
const repositoryPicker = instantiationService.createInstance(RepositoryPicker, placeHolder, autoQuickItemDescription);
|
|
629
629
|
const result = await repositoryPicker.pickRepository();
|
|
630
630
|
if (result?.repository) {
|
|
@@ -636,7 +636,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
636
636
|
group: "99_terminal",
|
|
637
637
|
command: {
|
|
638
638
|
id: "scm.openInTerminal",
|
|
639
|
-
title: ( localize(
|
|
639
|
+
title: ( localize(10861, "Open in External Terminal"))
|
|
640
640
|
},
|
|
641
641
|
when: ( ContextKeyExpr.and(( RemoteNameContext.isEqualTo("")), ( ContextKeyExpr.equals("scmProviderHasRootUri", true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals("config.terminal.sourceControlRepositoriesKind", "external")), ( ContextKeyExpr.equals("config.terminal.sourceControlRepositoriesKind", "both"))))))
|
|
642
642
|
});
|
|
@@ -644,7 +644,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
644
644
|
group: "99_terminal",
|
|
645
645
|
command: {
|
|
646
646
|
id: "scm.openInIntegratedTerminal",
|
|
647
|
-
title: ( localize(
|
|
647
|
+
title: ( localize(10862, "Open in Integrated Terminal"))
|
|
648
648
|
},
|
|
649
649
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("scmProviderHasRootUri", true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals("config.terminal.sourceControlRepositoriesKind", "integrated")), ( ContextKeyExpr.equals("config.terminal.sourceControlRepositoriesKind", "both"))))))
|
|
650
650
|
});
|
|
@@ -695,7 +695,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
695
695
|
}
|
|
696
696
|
});
|
|
697
697
|
MenuRegistry.appendMenuItem(MenuId.EditorLineNumberContext, {
|
|
698
|
-
title: ( localize(
|
|
698
|
+
title: ( localize(10863, "Diff Decorations")),
|
|
699
699
|
submenu: MenuId.SCMQuickDiffDecorations,
|
|
700
700
|
when: ( ContextKeyExpr.or(( ContextKeyExpr.equals("config.scm.diffDecorations", "all")), ( ContextKeyExpr.equals("config.scm.diffDecorations", "gutter")))),
|
|
701
701
|
group: "9_quickDiffDecorations"
|
|
@@ -704,7 +704,7 @@ registerAction2(class extends Action2 {
|
|
|
704
704
|
constructor() {
|
|
705
705
|
super({
|
|
706
706
|
id: "scm.editor.triggerSetup",
|
|
707
|
-
title: ( localize(
|
|
707
|
+
title: ( localize(10864, "Resolve Conflicts with AI")),
|
|
708
708
|
icon: Codicon.chatSparkle,
|
|
709
709
|
f1: false,
|
|
710
710
|
menu: {
|
|
@@ -57,75 +57,75 @@ let SCMAccessibilityHelpContentProvider = class SCMAccessibilityHelpContentProvi
|
|
|
57
57
|
const content = [];
|
|
58
58
|
if (this._scmViewService.visibleRepositories.length > 1) {
|
|
59
59
|
const repositoryList = ( this._scmViewService.visibleRepositories.map(r => r.provider.name)).join(", ");
|
|
60
|
-
content.push(( localize(
|
|
60
|
+
content.push(( localize(10865, "Visible repositories: {0}", repositoryList)));
|
|
61
61
|
}
|
|
62
62
|
const focusedRepository = this._scmViewService.focusedRepository;
|
|
63
63
|
if (focusedRepository) {
|
|
64
|
-
content.push(( localize(
|
|
64
|
+
content.push(( localize(10866, "Repository: {0}", focusedRepository.provider.name)));
|
|
65
65
|
const currentHistoryItemRef = focusedRepository.provider.historyProvider.get()?.historyItemRef.get();
|
|
66
66
|
if (currentHistoryItemRef) {
|
|
67
|
-
content.push(( localize(
|
|
67
|
+
content.push(( localize(10867, "History item reference: {0}", currentHistoryItemRef.name)));
|
|
68
68
|
}
|
|
69
69
|
if (focusedRepository.input.visible && focusedRepository.input.enabled && focusedRepository.input.value !== "") {
|
|
70
|
-
content.push(( localize(
|
|
70
|
+
content.push(( localize(10868, "Commit message: {0}", focusedRepository.input.value)));
|
|
71
71
|
}
|
|
72
72
|
const actionButton = focusedRepository.provider.actionButton.get();
|
|
73
73
|
if (actionButton) {
|
|
74
74
|
const label = actionButton.command.tooltip ?? actionButton.command.title;
|
|
75
|
-
const enablementLabel = actionButton.enabled ? ( localize(
|
|
76
|
-
content.push(( localize(
|
|
75
|
+
const enablementLabel = actionButton.enabled ? ( localize(10869, "enabled")) : ( localize(10870, "disabled"));
|
|
76
|
+
content.push(( localize(10871, "Action button: {0}, {1}", label, enablementLabel)));
|
|
77
77
|
}
|
|
78
78
|
const resourceGroups = [];
|
|
79
79
|
for (const resourceGroup of focusedRepository.provider.groups) {
|
|
80
80
|
resourceGroups.push(`${resourceGroup.label} (${resourceGroup.resources.length} resource(s))`);
|
|
81
81
|
}
|
|
82
82
|
( focusedRepository.provider.groups.map(g => g.label)).join(", ");
|
|
83
|
-
content.push(( localize(
|
|
83
|
+
content.push(( localize(10872, "Resource groups: {0}", resourceGroups.join(", "))));
|
|
84
84
|
}
|
|
85
85
|
content.push(( localize(
|
|
86
|
-
|
|
86
|
+
10873,
|
|
87
87
|
"Use the \"Source Control: Focus on Source Control Repositories View\" command to open the Source Control Repositories view."
|
|
88
88
|
)));
|
|
89
89
|
content.push(( localize(
|
|
90
|
-
|
|
90
|
+
10874,
|
|
91
91
|
"The Source Control Repositories view lists all repositories from the workspace and is only shown when the workspace contains more than one repository."
|
|
92
92
|
)));
|
|
93
|
-
content.push(( localize(
|
|
93
|
+
content.push(( localize(10875, "Once the Source Control Repositories view is opened you can:")));
|
|
94
94
|
content.push(( localize(
|
|
95
|
-
|
|
95
|
+
10876,
|
|
96
96
|
" - Use the up/down arrow keys to navigate the list of repositories."
|
|
97
97
|
)));
|
|
98
|
-
content.push(( localize(
|
|
99
|
-
content.push(( localize(
|
|
98
|
+
content.push(( localize(10877, " - Use the Enter or Space keys to select a repository.")));
|
|
99
|
+
content.push(( localize(10878, " - Use Shift + up/down keys to select multiple repositories.")));
|
|
100
100
|
content.push(( localize(
|
|
101
|
-
|
|
101
|
+
10879,
|
|
102
102
|
"Use the \"Source Control: Focus on Source Control View\" command to open the Source Control view."
|
|
103
103
|
)));
|
|
104
104
|
content.push(( localize(
|
|
105
|
-
|
|
105
|
+
10880,
|
|
106
106
|
"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."
|
|
107
107
|
)));
|
|
108
|
-
content.push(( localize(
|
|
108
|
+
content.push(( localize(10881, "Once the Source Control view is opened you can:")));
|
|
109
109
|
content.push(( localize(
|
|
110
|
-
|
|
110
|
+
10882,
|
|
111
111
|
" - Use the up/down arrow keys to navigate the list of repositories, resource groups and resources."
|
|
112
112
|
)));
|
|
113
|
-
content.push(( localize(
|
|
113
|
+
content.push(( localize(10883, " - Use the Space key to expand or collapse a resource group.")));
|
|
114
114
|
content.push(( localize(
|
|
115
|
-
|
|
115
|
+
10884,
|
|
116
116
|
"Use the \"Source Control: Focus on Source Control Graph View\" command to open the Source Control Graph view."
|
|
117
117
|
)));
|
|
118
118
|
content.push(( localize(
|
|
119
|
-
|
|
119
|
+
10885,
|
|
120
120
|
"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."
|
|
121
121
|
)));
|
|
122
|
-
content.push(( localize(
|
|
122
|
+
content.push(( localize(10886, "Once the Source Control Graph view is opened you can:")));
|
|
123
123
|
content.push(( localize(
|
|
124
|
-
|
|
124
|
+
10887,
|
|
125
125
|
" - Use the up/down arrow keys to navigate the list of history items."
|
|
126
126
|
)));
|
|
127
127
|
content.push(( localize(
|
|
128
|
-
|
|
128
|
+
10888,
|
|
129
129
|
" - Use the Space key to open the history item details in the multi-file diff editor."
|
|
130
130
|
)));
|
|
131
131
|
return content.join("\n");
|
|
@@ -130,20 +130,20 @@ class SCMHistoryItemRefsActionViewItem extends ActionViewItem {
|
|
|
130
130
|
icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.gitBranch));
|
|
131
131
|
const name = $(".name");
|
|
132
132
|
if (this._historyItemsFilter === "all") {
|
|
133
|
-
name.textContent = ( localize(
|
|
133
|
+
name.textContent = ( localize(10909, "All"));
|
|
134
134
|
} else if (this._historyItemsFilter === "auto") {
|
|
135
|
-
name.textContent = ( localize(
|
|
135
|
+
name.textContent = ( localize(10910, "Auto"));
|
|
136
136
|
} else if (this._historyItemsFilter.length === 1) {
|
|
137
137
|
name.textContent = this._historyItemsFilter[0].name;
|
|
138
138
|
} else {
|
|
139
|
-
name.textContent = ( localize(
|
|
139
|
+
name.textContent = ( localize(10911, "{0} Items", this._historyItemsFilter.length));
|
|
140
140
|
}
|
|
141
141
|
reset(this.label, icon, name);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
getTooltip() {
|
|
145
145
|
if (this._historyItemsFilter === "all") {
|
|
146
|
-
return localize(
|
|
146
|
+
return localize(10912, "All history item references");
|
|
147
147
|
} else if (this._historyItemsFilter === "auto") {
|
|
148
148
|
const historyProvider = this._repository.provider.historyProvider.get();
|
|
149
149
|
return [
|
|
@@ -162,7 +162,7 @@ registerAction2(class extends ViewAction {
|
|
|
162
162
|
constructor() {
|
|
163
163
|
super({
|
|
164
164
|
id: PICK_REPOSITORY_ACTION_ID,
|
|
165
|
-
title: ( localize(
|
|
165
|
+
title: ( localize(10913, "Repository Picker")),
|
|
166
166
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
167
167
|
f1: false,
|
|
168
168
|
menu: {
|
|
@@ -181,7 +181,7 @@ registerAction2(class extends ViewAction {
|
|
|
181
181
|
constructor() {
|
|
182
182
|
super({
|
|
183
183
|
id: PICK_HISTORY_ITEM_REFS_ACTION_ID,
|
|
184
|
-
title: ( localize(
|
|
184
|
+
title: ( localize(10914, "History Item Reference Picker")),
|
|
185
185
|
icon: Codicon.gitBranch,
|
|
186
186
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
187
187
|
precondition: ( ContextKeys.SCMHistoryItemCount.notEqualsTo(0)),
|
|
@@ -201,7 +201,7 @@ registerAction2(class extends ViewAction {
|
|
|
201
201
|
constructor() {
|
|
202
202
|
super({
|
|
203
203
|
id: "workbench.scm.action.graph.revealCurrentHistoryItem",
|
|
204
|
-
title: ( localize(
|
|
204
|
+
title: ( localize(10915, "Go to Current History Item")),
|
|
205
205
|
icon: Codicon.target,
|
|
206
206
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
207
207
|
precondition: ( ContextKeyExpr.and(( ContextKeys.SCMHistoryItemCount.notEqualsTo(0)), ( ContextKeys.SCMCurrentHistoryItemRefInFilter.isEqualTo(true)))),
|
|
@@ -221,7 +221,7 @@ registerAction2(class extends ViewAction {
|
|
|
221
221
|
constructor() {
|
|
222
222
|
super({
|
|
223
223
|
id: "workbench.scm.action.graph.refresh",
|
|
224
|
-
title: ( localize(
|
|
224
|
+
title: ( localize(10916, "Refresh")),
|
|
225
225
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
226
226
|
f1: false,
|
|
227
227
|
icon: Codicon.refresh,
|
|
@@ -240,7 +240,7 @@ registerAction2(class extends ViewAction {
|
|
|
240
240
|
constructor() {
|
|
241
241
|
super({
|
|
242
242
|
id: "workbench.scm.action.graph.setListViewMode",
|
|
243
|
-
title: ( localize(
|
|
243
|
+
title: ( localize(10917, "View as List")),
|
|
244
244
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
245
245
|
toggled: ( ContextKeys.SCMHistoryViewMode.isEqualTo(ViewMode.List)),
|
|
246
246
|
menu: {
|
|
@@ -259,7 +259,7 @@ registerAction2(class extends ViewAction {
|
|
|
259
259
|
constructor() {
|
|
260
260
|
super({
|
|
261
261
|
id: "workbench.scm.action.graph.setTreeViewMode",
|
|
262
|
-
title: ( localize(
|
|
262
|
+
title: ( localize(10918, "View as Tree")),
|
|
263
263
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
264
264
|
toggled: ( ContextKeys.SCMHistoryViewMode.isEqualTo(ViewMode.Tree)),
|
|
265
265
|
menu: {
|
|
@@ -278,7 +278,7 @@ registerAction2(class extends Action2 {
|
|
|
278
278
|
constructor() {
|
|
279
279
|
super({
|
|
280
280
|
id: "workbench.scm.action.graph.viewChanges",
|
|
281
|
-
title: ( localize(
|
|
281
|
+
title: ( localize(10919, "Open Changes")),
|
|
282
282
|
icon: Codicon.diffMultiple,
|
|
283
283
|
f1: false,
|
|
284
284
|
menu: [{
|
|
@@ -338,7 +338,7 @@ registerAction2(class extends Action2 {
|
|
|
338
338
|
constructor() {
|
|
339
339
|
super({
|
|
340
340
|
id: "workbench.scm.action.graph.openFile",
|
|
341
|
-
title: ( localize(
|
|
341
|
+
title: ( localize(10920, "Open File")),
|
|
342
342
|
icon: Codicon.goToFile,
|
|
343
343
|
f1: false,
|
|
344
344
|
menu: [{
|
|
@@ -359,9 +359,9 @@ registerAction2(class extends Action2 {
|
|
|
359
359
|
}
|
|
360
360
|
let version;
|
|
361
361
|
if (historyItem.id === SCMIncomingHistoryItemId) {
|
|
362
|
-
version = ( localize(
|
|
362
|
+
version = ( localize(10921, "Incoming Changes"));
|
|
363
363
|
} else if (historyItem.id === SCMOutgoingHistoryItemId) {
|
|
364
|
-
version = ( localize(
|
|
364
|
+
version = ( localize(10922, "Outgoing Changes"));
|
|
365
365
|
} else {
|
|
366
366
|
version = historyItem.displayId ?? historyItem.id;
|
|
367
367
|
}
|
|
@@ -765,7 +765,7 @@ let HistoryItemLoadMoreRenderer = class HistoryItemLoadMoreRenderer {
|
|
|
765
765
|
templateData.elementDisposables.add(autorun(reader => {
|
|
766
766
|
const isLoadingMore = this._isLoadingMore.read(reader);
|
|
767
767
|
const icon = `$(${isLoadingMore ? "loading~spin" : "fold-down"})`;
|
|
768
|
-
templateData.historyItemPlaceholderLabel.setLabel(( localize(
|
|
768
|
+
templateData.historyItemPlaceholderLabel.setLabel(( localize(10923, "{0} Load More...", icon)));
|
|
769
769
|
}));
|
|
770
770
|
}
|
|
771
771
|
}
|
|
@@ -795,7 +795,7 @@ let SCMHistoryViewPaneActionRunner = class SCMHistoryViewPaneActionRunner extend
|
|
|
795
795
|
SCMHistoryViewPaneActionRunner = ( __decorate([( __param(0, IProgressService))], SCMHistoryViewPaneActionRunner));
|
|
796
796
|
class SCMHistoryTreeAccessibilityProvider {
|
|
797
797
|
getWidgetAriaLabel() {
|
|
798
|
-
return localize(
|
|
798
|
+
return localize(10924, "Source Control History");
|
|
799
799
|
}
|
|
800
800
|
getAriaLabel(element) {
|
|
801
801
|
if (isSCMRepository(element)) {
|
|
@@ -1285,8 +1285,8 @@ let RepositoryPicker = class RepositoryPicker {
|
|
|
1285
1285
|
this._quickInputService = _quickInputService;
|
|
1286
1286
|
this._scmViewService = _scmViewService;
|
|
1287
1287
|
this._autoQuickPickItem = {
|
|
1288
|
-
label: ( localize(
|
|
1289
|
-
description: ( localize(
|
|
1288
|
+
label: ( localize(10910, "Auto")),
|
|
1289
|
+
description: ( localize(10925, "Show the source control graph for the active repository")),
|
|
1290
1290
|
repository: "auto"
|
|
1291
1291
|
};
|
|
1292
1292
|
}
|
|
@@ -1301,7 +1301,7 @@ let RepositoryPicker = class RepositoryPicker {
|
|
|
1301
1301
|
repository: r
|
|
1302
1302
|
}))));
|
|
1303
1303
|
return this._quickInputService.pick(picks, {
|
|
1304
|
-
placeHolder: ( localize(
|
|
1304
|
+
placeHolder: ( localize(10926, "Select the repository to view, type to filter all repositories"))
|
|
1305
1305
|
});
|
|
1306
1306
|
}
|
|
1307
1307
|
};
|
|
@@ -1314,14 +1314,14 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
|
|
|
1314
1314
|
this._quickInputService = _quickInputService;
|
|
1315
1315
|
this._allQuickPickItem = {
|
|
1316
1316
|
id: "all",
|
|
1317
|
-
label: ( localize(
|
|
1318
|
-
description: ( localize(
|
|
1317
|
+
label: ( localize(10909, "All")),
|
|
1318
|
+
description: ( localize(10912, "All history item references")),
|
|
1319
1319
|
historyItemRef: "all"
|
|
1320
1320
|
};
|
|
1321
1321
|
this._autoQuickPickItem = {
|
|
1322
1322
|
id: "auto",
|
|
1323
|
-
label: ( localize(
|
|
1324
|
-
description: ( localize(
|
|
1323
|
+
label: ( localize(10910, "Auto")),
|
|
1324
|
+
description: ( localize(10927, "Current history item reference(s)")),
|
|
1325
1325
|
historyItemRef: "auto"
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
@@ -1330,7 +1330,7 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
|
|
|
1330
1330
|
useSeparators: true
|
|
1331
1331
|
});
|
|
1332
1332
|
this._store.add(quickPick);
|
|
1333
|
-
quickPick.placeholder = ( localize(
|
|
1333
|
+
quickPick.placeholder = ( localize(10928, "Select one/more history item references to view, type to filter"));
|
|
1334
1334
|
quickPick.canSelectMany = true;
|
|
1335
1335
|
quickPick.hideCheckAll = true;
|
|
1336
1336
|
quickPick.busy = true;
|
|
@@ -1484,7 +1484,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1484
1484
|
compact: true,
|
|
1485
1485
|
showPointer: true
|
|
1486
1486
|
},
|
|
1487
|
-
content: ( new MarkdownString(( localize(
|
|
1487
|
+
content: ( new MarkdownString(( localize(10929, "Please refresh the graph using the refresh action ($(refresh)).")), {
|
|
1488
1488
|
supportThemeIcons: true
|
|
1489
1489
|
})),
|
|
1490
1490
|
position: {
|
|
@@ -1754,7 +1754,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1754
1754
|
} else if (isSCMHistoryItemChangeViewModelTreeElement(e.element)) {
|
|
1755
1755
|
const historyItemChange = e.element.historyItemChange;
|
|
1756
1756
|
const historyItem = e.element.historyItemViewModel.historyItem;
|
|
1757
|
-
const historyItemDisplayId = historyItem.id === SCMIncomingHistoryItemId ? ( localize(
|
|
1757
|
+
const historyItemDisplayId = historyItem.id === SCMIncomingHistoryItemId ? ( localize(10921, "Incoming Changes")) : historyItem.id === SCMOutgoingHistoryItemId ? ( localize(10922, "Outgoing Changes")) : historyItem.displayId ?? historyItem.id;
|
|
1758
1758
|
const historyItemParentId = historyItem.parentIds.length > 0 ? historyItem.parentIds[0] : undefined;
|
|
1759
1759
|
const historyItemParentDisplayId = historyItemParentId && historyItem.displayId ? historyItemParentId.substring(0, historyItem.displayId.length) : historyItemParentId;
|
|
1760
1760
|
if (historyItemChange.originalUri && historyItemChange.modifiedUri) {
|
|
@@ -517,7 +517,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
|
|
|
517
517
|
}
|
|
518
518
|
},
|
|
519
519
|
getWidgetAriaLabel() {
|
|
520
|
-
return localize(
|
|
520
|
+
return localize(10930, "Source Control Repositories");
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
}
|
|
@@ -823,7 +823,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
823
823
|
this.labelService = labelService;
|
|
824
824
|
}
|
|
825
825
|
getWidgetAriaLabel() {
|
|
826
|
-
return localize(
|
|
826
|
+
return localize(10931, "Source Control Management");
|
|
827
827
|
}
|
|
828
828
|
getAriaLabel(element) {
|
|
829
829
|
if (ResourceTree.isResourceNode(element)) {
|
|
@@ -836,15 +836,15 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
836
836
|
} else if (isSCMInput(element)) {
|
|
837
837
|
const verbosity = this.configurationService.getValue(AccessibilityVerbositySettingId.SourceControl) === true;
|
|
838
838
|
if (!verbosity || !this.accessibilityService.isScreenReaderOptimized()) {
|
|
839
|
-
return localize(
|
|
839
|
+
return localize(10932, "Source Control Input");
|
|
840
840
|
}
|
|
841
841
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
842
842
|
return kbLabel ? ( localize(
|
|
843
|
-
|
|
843
|
+
10933,
|
|
844
844
|
"Source Control Input, Use {0} to open Source Control Accessibility Help.",
|
|
845
845
|
kbLabel
|
|
846
846
|
)) : ( localize(
|
|
847
|
-
|
|
847
|
+
10934,
|
|
848
848
|
"Source Control Input, Run the Open Accessibility Help command for more information."
|
|
849
849
|
));
|
|
850
850
|
} else if (isSCMActionButton(element)) {
|
|
@@ -899,14 +899,14 @@ const ContextKeys = {
|
|
|
899
899
|
}
|
|
900
900
|
};
|
|
901
901
|
MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
902
|
-
title: ( localize(
|
|
902
|
+
title: ( localize(10935, "View & Sort")),
|
|
903
903
|
submenu: Menus.ViewSort,
|
|
904
904
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", VIEW_PANE_ID)), ( ContextKeys.RepositoryCount.notEqualsTo(0)))),
|
|
905
905
|
group: "0_view&sort",
|
|
906
906
|
order: 1
|
|
907
907
|
});
|
|
908
908
|
MenuRegistry.appendMenuItem(Menus.ViewSort, {
|
|
909
|
-
title: ( localize(
|
|
909
|
+
title: ( localize(10936, "Repositories")),
|
|
910
910
|
submenu: Menus.Repositories,
|
|
911
911
|
when: ContextKeyExpr.greater(ContextKeys.RepositoryCount.key, 1),
|
|
912
912
|
group: "0_repositories"
|
|
@@ -998,7 +998,7 @@ class SetListViewModeAction extends ViewAction {
|
|
|
998
998
|
constructor(id = "workbench.scm.action.setListViewMode", menu = {}) {
|
|
999
999
|
super({
|
|
1000
1000
|
id,
|
|
1001
|
-
title: ( localize(
|
|
1001
|
+
title: ( localize(10937, "View as List")),
|
|
1002
1002
|
viewId: VIEW_PANE_ID,
|
|
1003
1003
|
f1: false,
|
|
1004
1004
|
icon: Codicon.listTree,
|
|
@@ -1029,7 +1029,7 @@ class SetTreeViewModeAction extends ViewAction {
|
|
|
1029
1029
|
constructor(id = "workbench.scm.action.setTreeViewMode", menu = {}) {
|
|
1030
1030
|
super({
|
|
1031
1031
|
id,
|
|
1032
|
-
title: ( localize(
|
|
1032
|
+
title: ( localize(10938, "View as Tree")),
|
|
1033
1033
|
viewId: VIEW_PANE_ID,
|
|
1034
1034
|
f1: false,
|
|
1035
1035
|
icon: Codicon.listFlat,
|
|
@@ -1083,17 +1083,17 @@ class RepositorySortAction extends Action2 {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
class RepositorySortByDiscoveryTimeAction extends RepositorySortAction {
|
|
1085
1085
|
constructor() {
|
|
1086
|
-
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(
|
|
1086
|
+
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(10939, "Sort by Discovery Time")));
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
class RepositorySortByNameAction extends RepositorySortAction {
|
|
1090
1090
|
constructor() {
|
|
1091
|
-
super(ISCMRepositorySortKey.Name, ( localize(
|
|
1091
|
+
super(ISCMRepositorySortKey.Name, ( localize(10940, "Sort by Name")));
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
class RepositorySortByPathAction extends RepositorySortAction {
|
|
1095
1095
|
constructor() {
|
|
1096
|
-
super(ISCMRepositorySortKey.Path, ( localize(
|
|
1096
|
+
super(ISCMRepositorySortKey.Path, ( localize(10941, "Sort by Path")));
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
1099
|
registerAction2(RepositorySortByDiscoveryTimeAction);
|
|
@@ -1126,12 +1126,12 @@ class RepositorySelectionModeAction extends Action2 {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
class RepositorySingleSelectionModeAction extends RepositorySelectionModeAction {
|
|
1128
1128
|
constructor() {
|
|
1129
|
-
super(ISCMRepositorySelectionMode.Single, ( localize(
|
|
1129
|
+
super(ISCMRepositorySelectionMode.Single, ( localize(10942, "Select Single Repository")), 1);
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
class RepositoryMultiSelectionModeAction extends RepositorySelectionModeAction {
|
|
1133
1133
|
constructor() {
|
|
1134
|
-
super(ISCMRepositorySelectionMode.Multiple, ( localize(
|
|
1134
|
+
super(ISCMRepositorySelectionMode.Multiple, ( localize(10943, "Select Multiple Repositories")), 2);
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
registerAction2(RepositorySingleSelectionModeAction);
|
|
@@ -1158,17 +1158,17 @@ class SetSortKeyAction extends ViewAction {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
class SetSortByNameAction extends SetSortKeyAction {
|
|
1160
1160
|
constructor() {
|
|
1161
|
-
super(ViewSortKey.Name, ( localize(
|
|
1161
|
+
super(ViewSortKey.Name, ( localize(10944, "Sort Changes by Name")));
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
class SetSortByPathAction extends SetSortKeyAction {
|
|
1165
1165
|
constructor() {
|
|
1166
|
-
super(ViewSortKey.Path, ( localize(
|
|
1166
|
+
super(ViewSortKey.Path, ( localize(10945, "Sort Changes by Path")));
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
class SetSortByStatusAction extends SetSortKeyAction {
|
|
1170
1170
|
constructor() {
|
|
1171
|
-
super(ViewSortKey.Status, ( localize(
|
|
1171
|
+
super(ViewSortKey.Status, ( localize(10946, "Sort Changes by Status")));
|
|
1172
1172
|
}
|
|
1173
1173
|
}
|
|
1174
1174
|
registerAction2(SetSortByNameAction);
|
|
@@ -1178,7 +1178,7 @@ class CollapseAllRepositoriesAction extends ViewAction {
|
|
|
1178
1178
|
constructor() {
|
|
1179
1179
|
super({
|
|
1180
1180
|
id: `workbench.scm.action.collapseAllRepositories`,
|
|
1181
|
-
title: ( localize(
|
|
1181
|
+
title: ( localize(10947, "Collapse All Repositories")),
|
|
1182
1182
|
viewId: VIEW_PANE_ID,
|
|
1183
1183
|
f1: false,
|
|
1184
1184
|
icon: Codicon.collapseAll,
|
|
@@ -1197,7 +1197,7 @@ class ExpandAllRepositoriesAction extends ViewAction {
|
|
|
1197
1197
|
constructor() {
|
|
1198
1198
|
super({
|
|
1199
1199
|
id: `workbench.scm.action.expandAllRepositories`,
|
|
1200
|
-
title: ( localize(
|
|
1200
|
+
title: ( localize(10948, "Expand All Repositories")),
|
|
1201
1201
|
viewId: VIEW_PANE_ID,
|
|
1202
1202
|
f1: false,
|
|
1203
1203
|
icon: Codicon.expandAll,
|
|
@@ -1218,7 +1218,7 @@ class CollapseAllAction extends ViewAction {
|
|
|
1218
1218
|
constructor() {
|
|
1219
1219
|
super({
|
|
1220
1220
|
id: `workbench.scm.action.collapseAll`,
|
|
1221
|
-
title: ( localize(
|
|
1221
|
+
title: ( localize(10949, "Collapse All")),
|
|
1222
1222
|
viewId: VIEW_PANE_ID,
|
|
1223
1223
|
f1: false,
|
|
1224
1224
|
icon: Codicon.collapseAll,
|
|
@@ -1249,7 +1249,7 @@ registerAction2(class extends Action2 {
|
|
|
1249
1249
|
constructor() {
|
|
1250
1250
|
super({
|
|
1251
1251
|
id: SCMInputWidgetCommandId.SetupAction,
|
|
1252
|
-
title: ( localize(
|
|
1252
|
+
title: ( localize(10950, "Generate Commit Message")),
|
|
1253
1253
|
icon: Codicon.sparkle,
|
|
1254
1254
|
f1: false,
|
|
1255
1255
|
menu: {
|
|
@@ -1349,10 +1349,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
1349
1349
|
this._onDidChange = ( new Emitter());
|
|
1350
1350
|
this.onDidChange = this._onDidChange.event;
|
|
1351
1351
|
this._disposables = this._register(( new MutableDisposable()));
|
|
1352
|
-
this._dropdownAction = ( new Action("scmInputMoreActions", ( localize(
|
|
1352
|
+
this._dropdownAction = ( new Action("scmInputMoreActions", ( localize(10951, "More Actions...")), "codicon-chevron-down"));
|
|
1353
1353
|
this._cancelAction = ( new MenuItemAction({
|
|
1354
1354
|
id: SCMInputWidgetCommandId.CancelAction,
|
|
1355
|
-
title: ( localize(
|
|
1355
|
+
title: ( localize(10952, "Cancel")),
|
|
1356
1356
|
icon: Codicon.stopCircle
|
|
1357
1357
|
}, undefined, undefined, undefined, undefined, contextKeyService, commandService));
|
|
1358
1358
|
}
|
|
@@ -1607,12 +1607,12 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1607
1607
|
}
|
|
1608
1608
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
1609
1609
|
return kbLabel ? ( localize(
|
|
1610
|
-
|
|
1610
|
+
10953,
|
|
1611
1611
|
"{0}, Use {1} to open Source Control Accessibility Help.",
|
|
1612
1612
|
placeholder,
|
|
1613
1613
|
kbLabel
|
|
1614
1614
|
)) : ( localize(
|
|
1615
|
-
|
|
1615
|
+
10954,
|
|
1616
1616
|
"{0}, Run the Open Accessibility Help command for more information.",
|
|
1617
1617
|
placeholder
|
|
1618
1618
|
));
|
|
@@ -1935,7 +1935,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
const actionsContainer = append(validationContainer, $(".scm-editor-validation-actions"));
|
|
1937
1937
|
const actionbar = ( new ActionBar(actionsContainer));
|
|
1938
|
-
const action = ( new Action("scmInputWidget.validationMessage.close", ( localize(
|
|
1938
|
+
const action = ( new Action("scmInputWidget.validationMessage.close", ( localize(10955, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
1939
1939
|
this.contextViewService.hideContextView();
|
|
1940
1940
|
this.element.style.borderBottomLeftRadius = "2px";
|
|
1941
1941
|
this.element.style.borderBottomRightRadius = "2px";
|
|
@@ -60,7 +60,7 @@ let RepositoryPicker = class RepositoryPicker {
|
|
|
60
60
|
this._quickInputService = _quickInputService;
|
|
61
61
|
this._scmViewService = _scmViewService;
|
|
62
62
|
this._autoQuickPickItem = {
|
|
63
|
-
label: ( localize(
|
|
63
|
+
label: ( localize(10956, "Auto")),
|
|
64
64
|
description: this._autoQuickItemDescription,
|
|
65
65
|
repository: "auto"
|
|
66
66
|
};
|