@codingame/monaco-vscode-scm-service-override 36.2.7 → 37.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/index.js +1 -1
- 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/media/dirtydiffDecorator.css +173 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/media/scm.css +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiff.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiff.contribution.js +105 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffDecorator.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffDecorator.js +430 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffModel.js +3 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffWidget.d.ts +80 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffWidget.js +933 -0
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +71 -71
- 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/scmInput.js +6 -6
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +21 -21
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +1 -1
|
@@ -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(15797, "All"));
|
|
134
134
|
} else if (this._historyItemsFilter === "auto") {
|
|
135
|
-
name.textContent = ( localize(
|
|
135
|
+
name.textContent = ( localize(15798, "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(15799, "{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(15800, "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(15801, "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(15802, "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(15803, "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(15804, "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(15805, "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(15806, "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(15807, "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(15808, "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(15809, "Incoming Changes"));
|
|
363
363
|
} else if (historyItem.id === SCMOutgoingHistoryItemId) {
|
|
364
|
-
version = ( localize(
|
|
364
|
+
version = ( localize(15810, "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(15811, "{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(15812, "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(15798, "Auto")),
|
|
1289
|
+
description: ( localize(15813, "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(15814, "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(15797, "All")),
|
|
1318
|
+
description: ( localize(15800, "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(15798, "Auto")),
|
|
1324
|
+
description: ( localize(15815, "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(15816, "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;
|
|
@@ -1485,7 +1485,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1485
1485
|
showPointer: true
|
|
1486
1486
|
},
|
|
1487
1487
|
content: ( new MarkdownString(( localize(
|
|
1488
|
-
|
|
1488
|
+
15817,
|
|
1489
1489
|
"Please refresh the graph using the refresh action ({0}).",
|
|
1490
1490
|
"$(refresh)"
|
|
1491
1491
|
)), {
|
|
@@ -1758,7 +1758,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1758
1758
|
} else if (isSCMHistoryItemChangeViewModelTreeElement(e.element)) {
|
|
1759
1759
|
const historyItemChange = e.element.historyItemChange;
|
|
1760
1760
|
const historyItem = e.element.historyItemViewModel.historyItem;
|
|
1761
|
-
const historyItemDisplayId = historyItem.id === SCMIncomingHistoryItemId ? ( localize(
|
|
1761
|
+
const historyItemDisplayId = historyItem.id === SCMIncomingHistoryItemId ? ( localize(15809, "Incoming Changes")) : historyItem.id === SCMOutgoingHistoryItemId ? ( localize(15810, "Outgoing Changes")) : historyItem.displayId ?? historyItem.id;
|
|
1762
1762
|
const historyItemParentId = historyItem.parentIds.length > 0 ? historyItem.parentIds[0] : undefined;
|
|
1763
1763
|
const historyItemParentDisplayId = historyItemParentId && historyItem.displayId ? historyItemParentId.substring(0, historyItem.displayId.length) : historyItemParentId;
|
|
1764
1764
|
if (historyItemChange.originalUri && historyItemChange.modifiedUri) {
|
|
@@ -168,10 +168,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
168
168
|
this._onDidChange = this._register(( new Emitter()));
|
|
169
169
|
this.onDidChange = this._onDidChange.event;
|
|
170
170
|
this._disposables = this._register(( new MutableDisposable()));
|
|
171
|
-
this._dropdownAction = ( new Action("scmInputMoreActions", ( localize(
|
|
171
|
+
this._dropdownAction = ( new Action("scmInputMoreActions", ( localize(15818, "More Actions...")), "codicon-chevron-down"));
|
|
172
172
|
this._cancelAction = ( new MenuItemAction({
|
|
173
173
|
id: SCMInputWidgetCommandId.CancelAction,
|
|
174
|
-
title: ( localize(
|
|
174
|
+
title: ( localize(15819, "Cancel")),
|
|
175
175
|
icon: Codicon.stopCircle
|
|
176
176
|
}, undefined, undefined, undefined, undefined, contextKeyService, commandService));
|
|
177
177
|
}
|
|
@@ -429,12 +429,12 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
429
429
|
}
|
|
430
430
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
431
431
|
return kbLabel ? ( localize(
|
|
432
|
-
|
|
432
|
+
15820,
|
|
433
433
|
"{0}, Use {1} to open Source Control Accessibility Help.",
|
|
434
434
|
placeholder,
|
|
435
435
|
kbLabel
|
|
436
436
|
)) : ( localize(
|
|
437
|
-
|
|
437
|
+
15821,
|
|
438
438
|
"{0}, Run the Open Accessibility Help command for more information.",
|
|
439
439
|
placeholder
|
|
440
440
|
));
|
|
@@ -757,7 +757,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
757
757
|
}
|
|
758
758
|
const actionsContainer = append(validationContainer, $(".scm-editor-validation-actions"));
|
|
759
759
|
const actionbar = ( new ActionBar(actionsContainer));
|
|
760
|
-
const action = ( new Action("scmInputWidget.validationMessage.close", ( localize(
|
|
760
|
+
const action = ( new Action("scmInputWidget.validationMessage.close", ( localize(15822, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
761
761
|
this.contextViewService.hideContextView();
|
|
762
762
|
this.element.style.borderBottomLeftRadius = "2px";
|
|
763
763
|
this.element.style.borderBottomRightRadius = "2px";
|
|
@@ -804,7 +804,7 @@ registerAction2(class extends Action2 {
|
|
|
804
804
|
constructor() {
|
|
805
805
|
super({
|
|
806
806
|
id: SCMInputWidgetCommandId.SetupAction,
|
|
807
|
-
title: ( localize(
|
|
807
|
+
title: ( localize(15823, "Generate Commit Message")),
|
|
808
808
|
icon: Codicon.sparkle,
|
|
809
809
|
f1: false,
|
|
810
810
|
menu: {
|
|
@@ -517,7 +517,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
|
|
|
517
517
|
}
|
|
518
518
|
},
|
|
519
519
|
getWidgetAriaLabel() {
|
|
520
|
-
return localize(
|
|
520
|
+
return localize(15824, "Source Control Repositories");
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
}
|
|
@@ -785,7 +785,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
785
785
|
this.labelService = labelService;
|
|
786
786
|
}
|
|
787
787
|
getWidgetAriaLabel() {
|
|
788
|
-
return localize(
|
|
788
|
+
return localize(15825, "Source Control Management");
|
|
789
789
|
}
|
|
790
790
|
getAriaLabel(element) {
|
|
791
791
|
if (ResourceTree.isResourceNode(element)) {
|
|
@@ -798,15 +798,15 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
798
798
|
} else if (isSCMInput(element)) {
|
|
799
799
|
const verbosity = this.configurationService.getValue(AccessibilityVerbositySettingId.SourceControl) === true;
|
|
800
800
|
if (!verbosity || !this.accessibilityService.isScreenReaderOptimized()) {
|
|
801
|
-
return localize(
|
|
801
|
+
return localize(15826, "Source Control Input");
|
|
802
802
|
}
|
|
803
803
|
const kbLabel = this.keybindingService.lookupKeybinding(AccessibilityCommandId.OpenAccessibilityHelp)?.getLabel();
|
|
804
804
|
return kbLabel ? ( localize(
|
|
805
|
-
|
|
805
|
+
15827,
|
|
806
806
|
"Source Control Input, Use {0} to open Source Control Accessibility Help.",
|
|
807
807
|
kbLabel
|
|
808
808
|
)) : ( localize(
|
|
809
|
-
|
|
809
|
+
15828,
|
|
810
810
|
"Source Control Input, Run the Open Accessibility Help command for more information."
|
|
811
811
|
));
|
|
812
812
|
} else if (isSCMActionButton(element)) {
|
|
@@ -860,14 +860,14 @@ const ContextKeys = {
|
|
|
860
860
|
}
|
|
861
861
|
};
|
|
862
862
|
MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
863
|
-
title: ( localize(
|
|
863
|
+
title: ( localize(15829, "View & Sort")),
|
|
864
864
|
submenu: Menus.ViewSort,
|
|
865
865
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals("view", VIEW_PANE_ID)), ( ContextKeys.RepositoryCount.notEqualsTo(0)))),
|
|
866
866
|
group: "0_view&sort",
|
|
867
867
|
order: 1
|
|
868
868
|
});
|
|
869
869
|
MenuRegistry.appendMenuItem(Menus.ViewSort, {
|
|
870
|
-
title: ( localize(
|
|
870
|
+
title: ( localize(15830, "Repositories")),
|
|
871
871
|
submenu: Menus.Repositories,
|
|
872
872
|
when: ContextKeyExpr.greater(ContextKeys.RepositoryCount.key, 1),
|
|
873
873
|
group: "0_repositories"
|
|
@@ -959,7 +959,7 @@ class SetListViewModeAction extends ViewAction {
|
|
|
959
959
|
constructor(id = "workbench.scm.action.setListViewMode", menu = {}) {
|
|
960
960
|
super({
|
|
961
961
|
id,
|
|
962
|
-
title: ( localize(
|
|
962
|
+
title: ( localize(15831, "View as List")),
|
|
963
963
|
viewId: VIEW_PANE_ID,
|
|
964
964
|
f1: false,
|
|
965
965
|
icon: Codicon.listTree,
|
|
@@ -990,7 +990,7 @@ class SetTreeViewModeAction extends ViewAction {
|
|
|
990
990
|
constructor(id = "workbench.scm.action.setTreeViewMode", menu = {}) {
|
|
991
991
|
super({
|
|
992
992
|
id,
|
|
993
|
-
title: ( localize(
|
|
993
|
+
title: ( localize(15832, "View as Tree")),
|
|
994
994
|
viewId: VIEW_PANE_ID,
|
|
995
995
|
f1: false,
|
|
996
996
|
icon: Codicon.listFlat,
|
|
@@ -1044,17 +1044,17 @@ class RepositorySortAction extends Action2 {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
class RepositorySortByDiscoveryTimeAction extends RepositorySortAction {
|
|
1046
1046
|
constructor() {
|
|
1047
|
-
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(
|
|
1047
|
+
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(15833, "Sort by Discovery Time")));
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
class RepositorySortByNameAction extends RepositorySortAction {
|
|
1051
1051
|
constructor() {
|
|
1052
|
-
super(ISCMRepositorySortKey.Name, ( localize(
|
|
1052
|
+
super(ISCMRepositorySortKey.Name, ( localize(15834, "Sort by Name")));
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
1055
|
class RepositorySortByPathAction extends RepositorySortAction {
|
|
1056
1056
|
constructor() {
|
|
1057
|
-
super(ISCMRepositorySortKey.Path, ( localize(
|
|
1057
|
+
super(ISCMRepositorySortKey.Path, ( localize(15835, "Sort by Path")));
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
registerAction2(RepositorySortByDiscoveryTimeAction);
|
|
@@ -1087,12 +1087,12 @@ class RepositorySelectionModeAction extends Action2 {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
class RepositorySingleSelectionModeAction extends RepositorySelectionModeAction {
|
|
1089
1089
|
constructor() {
|
|
1090
|
-
super(ISCMRepositorySelectionMode.Single, ( localize(
|
|
1090
|
+
super(ISCMRepositorySelectionMode.Single, ( localize(15836, "Select Single Repository")), 1);
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
1093
|
class RepositoryMultiSelectionModeAction extends RepositorySelectionModeAction {
|
|
1094
1094
|
constructor() {
|
|
1095
|
-
super(ISCMRepositorySelectionMode.Multiple, ( localize(
|
|
1095
|
+
super(ISCMRepositorySelectionMode.Multiple, ( localize(15837, "Select Multiple Repositories")), 2);
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
registerAction2(RepositorySingleSelectionModeAction);
|
|
@@ -1119,17 +1119,17 @@ class SetSortKeyAction extends ViewAction {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
class SetSortByNameAction extends SetSortKeyAction {
|
|
1121
1121
|
constructor() {
|
|
1122
|
-
super(ViewSortKey.Name, ( localize(
|
|
1122
|
+
super(ViewSortKey.Name, ( localize(15838, "Sort Changes by Name")));
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
class SetSortByPathAction extends SetSortKeyAction {
|
|
1126
1126
|
constructor() {
|
|
1127
|
-
super(ViewSortKey.Path, ( localize(
|
|
1127
|
+
super(ViewSortKey.Path, ( localize(15839, "Sort Changes by Path")));
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
class SetSortByStatusAction extends SetSortKeyAction {
|
|
1131
1131
|
constructor() {
|
|
1132
|
-
super(ViewSortKey.Status, ( localize(
|
|
1132
|
+
super(ViewSortKey.Status, ( localize(15840, "Sort Changes by Status")));
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
1135
|
registerAction2(SetSortByNameAction);
|
|
@@ -1139,7 +1139,7 @@ class CollapseAllRepositoriesAction extends ViewAction {
|
|
|
1139
1139
|
constructor() {
|
|
1140
1140
|
super({
|
|
1141
1141
|
id: `workbench.scm.action.collapseAllRepositories`,
|
|
1142
|
-
title: ( localize(
|
|
1142
|
+
title: ( localize(15841, "Collapse All Repositories")),
|
|
1143
1143
|
viewId: VIEW_PANE_ID,
|
|
1144
1144
|
f1: false,
|
|
1145
1145
|
icon: Codicon.collapseAll,
|
|
@@ -1158,7 +1158,7 @@ class ExpandAllRepositoriesAction extends ViewAction {
|
|
|
1158
1158
|
constructor() {
|
|
1159
1159
|
super({
|
|
1160
1160
|
id: `workbench.scm.action.expandAllRepositories`,
|
|
1161
|
-
title: ( localize(
|
|
1161
|
+
title: ( localize(15842, "Expand All Repositories")),
|
|
1162
1162
|
viewId: VIEW_PANE_ID,
|
|
1163
1163
|
f1: false,
|
|
1164
1164
|
icon: Codicon.expandAll,
|
|
@@ -1179,7 +1179,7 @@ class CollapseAllAction extends ViewAction {
|
|
|
1179
1179
|
constructor() {
|
|
1180
1180
|
super({
|
|
1181
1181
|
id: `workbench.scm.action.collapseAll`,
|
|
1182
|
-
title: ( localize(
|
|
1182
|
+
title: ( localize(15843, "Collapse All")),
|
|
1183
1183
|
viewId: VIEW_PANE_ID,
|
|
1184
1184
|
f1: false,
|
|
1185
1185
|
icon: Codicon.collapseAll,
|
|
@@ -1433,13 +1433,13 @@ let SCMViewPane = class SCMViewPane extends ViewPane {
|
|
|
1433
1433
|
getActionViewItemProvider(this.instantiationService),
|
|
1434
1434
|
resourceActionRunner
|
|
1435
1435
|
),
|
|
1436
|
-
this.instantiationService.createInstance(
|
|
1436
|
+
this.disposables.add(this.instantiationService.createInstance(
|
|
1437
1437
|
ResourceRenderer,
|
|
1438
1438
|
() => this.viewMode,
|
|
1439
1439
|
this.listLabels,
|
|
1440
1440
|
getActionViewItemProvider(this.instantiationService),
|
|
1441
1441
|
resourceActionRunner
|
|
1442
|
-
)
|
|
1442
|
+
))
|
|
1443
1443
|
],
|
|
1444
1444
|
treeDataSource,
|
|
1445
1445
|
{
|
|
@@ -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(15844, "Auto")),
|
|
64
64
|
description: this._autoQuickItemDescription,
|
|
65
65
|
repository: "auto"
|
|
66
66
|
};
|