@codingame/monaco-vscode-scm-service-override 10.1.2 → 10.1.4
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 +3 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +4 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +17 -17
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-scm-service-override",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.4",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git@github.com
|
|
12
|
+
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
13
13
|
},
|
|
14
14
|
"type": "module",
|
|
15
15
|
"private": false,
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@10.1.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@10.1.4"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -101,7 +101,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
101
101
|
if (count === 0) {
|
|
102
102
|
return;
|
|
103
103
|
}
|
|
104
|
-
const badge = ( (new NumberBadge(count, num => ( localize(
|
|
104
|
+
const badge = ( (new NumberBadge(count, num => ( localize(6309, '{0} pending changes', num)))));
|
|
105
105
|
store.add(this.activityService.showViewActivity(VIEW_PANE_ID, { badge }));
|
|
106
106
|
}
|
|
107
107
|
_updateStatusBar(repository, commands, store) {
|
|
@@ -127,7 +127,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
127
127
|
repoAgnosticActionName = '';
|
|
128
128
|
}
|
|
129
129
|
const statusbarEntry = {
|
|
130
|
-
name: ( localize(
|
|
130
|
+
name: ( localize(6310, "Source Control")) + (repoAgnosticActionName ? ` ${repoAgnosticActionName}` : ''),
|
|
131
131
|
text: command.title,
|
|
132
132
|
ariaLabel: tooltip,
|
|
133
133
|
tooltip,
|
|
@@ -159,8 +159,8 @@ let SCMActiveResourceContextKeyController = class SCMActiveResourceContextKeyCon
|
|
|
159
159
|
this.uriIdentityService = uriIdentityService;
|
|
160
160
|
this._repositories = observableFromEvent(this, Event.any(this.scmService.onDidAddRepository, this.scmService.onDidRemoveRepository), () => this.scmService.repositories);
|
|
161
161
|
this._onDidRepositoryChange = ( (new Emitter()));
|
|
162
|
-
const activeResourceHasChangesContextKey = ( (new RawContextKey('scmActiveResourceHasChanges', false, ( localize(
|
|
163
|
-
const activeResourceRepositoryContextKey = ( (new RawContextKey('scmActiveResourceRepository', undefined, ( localize(
|
|
162
|
+
const activeResourceHasChangesContextKey = ( (new RawContextKey('scmActiveResourceHasChanges', false, ( localize(6311, "Whether the active resource has changes")))));
|
|
163
|
+
const activeResourceRepositoryContextKey = ( (new RawContextKey('scmActiveResourceRepository', undefined, ( localize(6312, "The active resource's repository")))));
|
|
164
164
|
this._store.add(autorunWithStore((reader, store) => {
|
|
165
165
|
for (const repository of this._repositories.read(reader)) {
|
|
166
166
|
store.add(Event.runAndSubscribe(repository.provider.onDidChangeResources, () => {
|
|
@@ -58,7 +58,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
|
|
|
58
58
|
return r.provider.label;
|
|
59
59
|
},
|
|
60
60
|
getWidgetAriaLabel() {
|
|
61
|
-
return ( localize(
|
|
61
|
+
return ( localize(6331, "Source Control Repositories"));
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
});
|
|
@@ -714,7 +714,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
714
714
|
this.labelService = labelService;
|
|
715
715
|
}
|
|
716
716
|
getWidgetAriaLabel() {
|
|
717
|
-
return ( localize(
|
|
717
|
+
return ( localize(6314, "Source Control Management"));
|
|
718
718
|
}
|
|
719
719
|
getAriaLabel(element) {
|
|
720
720
|
if (ResourceTree.isResourceNode(element)) {
|
|
@@ -724,7 +724,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
724
724
|
return `${element.provider.name} ${element.provider.label}`;
|
|
725
725
|
}
|
|
726
726
|
else if (isSCMInput(element)) {
|
|
727
|
-
return ( localize(
|
|
727
|
+
return ( localize(6315, "Source Control Input"));
|
|
728
728
|
}
|
|
729
729
|
else if (isSCMActionButton(element)) {
|
|
730
730
|
return element.button?.command.title ?? '';
|
|
@@ -772,7 +772,7 @@ const ContextKeys = {
|
|
|
772
772
|
}
|
|
773
773
|
};
|
|
774
774
|
MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
775
|
-
title: ( localize(
|
|
775
|
+
title: ( localize(6316, "View & Sort")),
|
|
776
776
|
submenu: Menus.ViewSort,
|
|
777
777
|
when: ( (ContextKeyExpr.and(
|
|
778
778
|
(ContextKeyExpr.equals('view', VIEW_PANE_ID)),
|
|
@@ -782,7 +782,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
|
782
782
|
order: 1
|
|
783
783
|
});
|
|
784
784
|
MenuRegistry.appendMenuItem(Menus.ViewSort, {
|
|
785
|
-
title: ( localize(
|
|
785
|
+
title: ( localize(6317, "Repositories")),
|
|
786
786
|
submenu: Menus.Repositories,
|
|
787
787
|
when: ContextKeyExpr.greater(ContextKeys.RepositoryCount.key, 1),
|
|
788
788
|
group: '0_repositories'
|
|
@@ -875,7 +875,7 @@ class SetListViewModeAction extends ViewAction {
|
|
|
875
875
|
constructor(id = 'workbench.scm.action.setListViewMode', menu = {}) {
|
|
876
876
|
super({
|
|
877
877
|
id,
|
|
878
|
-
title: ( localize(
|
|
878
|
+
title: ( localize(6318, "View as List")),
|
|
879
879
|
viewId: VIEW_PANE_ID,
|
|
880
880
|
f1: false,
|
|
881
881
|
icon: Codicon.listTree,
|
|
@@ -905,7 +905,7 @@ class SetTreeViewModeAction extends ViewAction {
|
|
|
905
905
|
constructor(id = 'workbench.scm.action.setTreeViewMode', menu = {}) {
|
|
906
906
|
super({
|
|
907
907
|
id,
|
|
908
|
-
title: ( localize(
|
|
908
|
+
title: ( localize(6319, "View as Tree")),
|
|
909
909
|
viewId: VIEW_PANE_ID,
|
|
910
910
|
f1: false,
|
|
911
911
|
icon: Codicon.listFlat,
|
|
@@ -962,17 +962,17 @@ class RepositorySortAction extends ViewAction {
|
|
|
962
962
|
}
|
|
963
963
|
class RepositorySortByDiscoveryTimeAction extends RepositorySortAction {
|
|
964
964
|
constructor() {
|
|
965
|
-
super("discoveryTime" , ( localize(
|
|
965
|
+
super("discoveryTime" , ( localize(6320, "Sort by Discovery Time")));
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
class RepositorySortByNameAction extends RepositorySortAction {
|
|
969
969
|
constructor() {
|
|
970
|
-
super("name" , ( localize(
|
|
970
|
+
super("name" , ( localize(6321, "Sort by Name")));
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
973
|
class RepositorySortByPathAction extends RepositorySortAction {
|
|
974
974
|
constructor() {
|
|
975
|
-
super("path" , ( localize(
|
|
975
|
+
super("path" , ( localize(6322, "Sort by Path")));
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
registerAction2(RepositorySortByDiscoveryTimeAction);
|
|
@@ -997,17 +997,17 @@ class SetSortKeyAction extends ViewAction {
|
|
|
997
997
|
}
|
|
998
998
|
class SetSortByNameAction extends SetSortKeyAction {
|
|
999
999
|
constructor() {
|
|
1000
|
-
super("name" , ( localize(
|
|
1000
|
+
super("name" , ( localize(6323, "Sort Changes by Name")));
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
1003
|
class SetSortByPathAction extends SetSortKeyAction {
|
|
1004
1004
|
constructor() {
|
|
1005
|
-
super("path" , ( localize(
|
|
1005
|
+
super("path" , ( localize(6324, "Sort Changes by Path")));
|
|
1006
1006
|
}
|
|
1007
1007
|
}
|
|
1008
1008
|
class SetSortByStatusAction extends SetSortKeyAction {
|
|
1009
1009
|
constructor() {
|
|
1010
|
-
super("status" , ( localize(
|
|
1010
|
+
super("status" , ( localize(6325, "Sort Changes by Status")));
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
registerAction2(SetSortByNameAction);
|
|
@@ -1017,7 +1017,7 @@ class CollapseAllRepositoriesAction extends ViewAction {
|
|
|
1017
1017
|
constructor() {
|
|
1018
1018
|
super({
|
|
1019
1019
|
id: `workbench.scm.action.collapseAllRepositories`,
|
|
1020
|
-
title: ( localize(
|
|
1020
|
+
title: ( localize(6326, "Collapse All Repositories")),
|
|
1021
1021
|
viewId: VIEW_PANE_ID,
|
|
1022
1022
|
f1: false,
|
|
1023
1023
|
icon: Codicon.collapseAll,
|
|
@@ -1040,7 +1040,7 @@ class ExpandAllRepositoriesAction extends ViewAction {
|
|
|
1040
1040
|
constructor() {
|
|
1041
1041
|
super({
|
|
1042
1042
|
id: `workbench.scm.action.expandAllRepositories`,
|
|
1043
|
-
title: ( localize(
|
|
1043
|
+
title: ( localize(6327, "Expand All Repositories")),
|
|
1044
1044
|
viewId: VIEW_PANE_ID,
|
|
1045
1045
|
f1: false,
|
|
1046
1046
|
icon: Codicon.expandAll,
|
|
@@ -1111,10 +1111,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
1111
1111
|
this._onDidChange = ( (new Emitter()));
|
|
1112
1112
|
this.onDidChange = this._onDidChange.event;
|
|
1113
1113
|
this._disposables = this._register(( (new MutableDisposable())));
|
|
1114
|
-
this._dropdownAction = ( (new Action('scmInputMoreActions', ( localize(
|
|
1114
|
+
this._dropdownAction = ( (new Action('scmInputMoreActions', ( localize(6328, "More Actions...")), 'codicon-chevron-down')));
|
|
1115
1115
|
this._cancelAction = ( (new MenuItemAction({
|
|
1116
1116
|
id: "scm.input.cancelAction" ,
|
|
1117
|
-
title: ( localize(
|
|
1117
|
+
title: ( localize(6329, "Cancel")),
|
|
1118
1118
|
icon: Codicon.debugStop,
|
|
1119
1119
|
}, undefined, undefined, undefined, undefined, contextKeyService, commandService)));
|
|
1120
1120
|
}
|
|
@@ -1564,7 +1564,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
const actionsContainer = append(validationContainer, $('.scm-editor-validation-actions'));
|
|
1566
1566
|
const actionbar = ( (new ActionBar(actionsContainer)));
|
|
1567
|
-
const action = ( (new Action('scmInputWidget.validationMessage.close', ( localize(
|
|
1567
|
+
const action = ( (new Action('scmInputWidget.validationMessage.close', ( localize(6330, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
1568
1568
|
this.contextViewService.hideContextView();
|
|
1569
1569
|
this.element.style.borderBottomLeftRadius = '2px';
|
|
1570
1570
|
this.element.style.borderBottomRightRadius = '2px';
|
|
@@ -36,7 +36,7 @@ let SCMViewPaneContainer = class SCMViewPaneContainer extends ViewPaneContainer
|
|
|
36
36
|
return super.getTitle();
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
return ( localize(
|
|
39
|
+
return ( localize(6313, "Source Control"));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
SCMViewPaneContainer = ( (__decorate([
|