@codingame/monaco-vscode-scm-service-override 13.0.0 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -15
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +4 -4
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +75 -75
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.js +29 -29
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +18 -18
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/workingSet.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-scm-service-override",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - scm service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,21 +15,18 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-27663a0b-1249-58ba-9085-e52d706b50bc-common": "13.
|
|
19
|
-
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "13.
|
|
20
|
-
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "13.
|
|
21
|
-
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "13.
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
23
|
-
"@codingame/monaco-vscode-
|
|
24
|
-
"@codingame/monaco-vscode-
|
|
25
|
-
"@codingame/monaco-vscode-
|
|
26
|
-
"@codingame/monaco-vscode-
|
|
27
|
-
"@codingame/monaco-vscode-
|
|
18
|
+
"@codingame/monaco-vscode-27663a0b-1249-58ba-9085-e52d706b50bc-common": "13.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "13.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common": "13.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "13.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-api": "13.1.0",
|
|
23
|
+
"@codingame/monaco-vscode-b4efa70b-52b9-5670-ab5c-f10b10b6834e-common": "13.1.0",
|
|
24
|
+
"@codingame/monaco-vscode-be8ddbb5-094a-5657-b1cc-fe106c94c632-common": "13.1.0",
|
|
25
|
+
"@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common": "13.1.0",
|
|
26
|
+
"@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "13.1.0",
|
|
27
|
+
"@codingame/monaco-vscode-f99b74f5-fcb7-512f-8c6c-35f5a107577d-common": "13.1.0",
|
|
28
|
+
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "13.1.0"
|
|
28
29
|
},
|
|
29
|
-
"peerDependencies": {
|
|
30
|
-
"@codingame/monaco-vscode-api": "13.0.0"
|
|
31
|
-
},
|
|
32
|
-
"peerDependenciesMeta": {},
|
|
33
30
|
"main": "index.js",
|
|
34
31
|
"module": "index.js",
|
|
35
32
|
"types": "index.d.ts",
|
|
@@ -103,7 +103,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
103
103
|
if (count === 0) {
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
const badge = ( new NumberBadge(count, num => ( localize(
|
|
106
|
+
const badge = ( new NumberBadge(count, num => ( localize(8423, '{0} pending changes', num))));
|
|
107
107
|
store.add(this.activityService.showViewActivity(VIEW_PANE_ID, { badge }));
|
|
108
108
|
}
|
|
109
109
|
_updateStatusBar(repository, commands, store) {
|
|
@@ -129,7 +129,7 @@ let SCMActiveRepositoryController = class SCMActiveRepositoryController extends
|
|
|
129
129
|
repoAgnosticActionName = '';
|
|
130
130
|
}
|
|
131
131
|
const statusbarEntry = {
|
|
132
|
-
name: ( localize(
|
|
132
|
+
name: ( localize(8424, "Source Control")) + (repoAgnosticActionName ? ` ${repoAgnosticActionName}` : ''),
|
|
133
133
|
text: command.title,
|
|
134
134
|
ariaLabel: tooltip,
|
|
135
135
|
tooltip,
|
|
@@ -161,8 +161,8 @@ let SCMActiveResourceContextKeyController = class SCMActiveResourceContextKeyCon
|
|
|
161
161
|
this.uriIdentityService = uriIdentityService;
|
|
162
162
|
this._repositories = observableFromEvent(this, Event.any(this.scmService.onDidAddRepository, this.scmService.onDidRemoveRepository), () => this.scmService.repositories);
|
|
163
163
|
this._onDidRepositoryChange = ( new Emitter());
|
|
164
|
-
const activeResourceHasChangesContextKey = ( new RawContextKey('scmActiveResourceHasChanges', false, ( localize(
|
|
165
|
-
const activeResourceRepositoryContextKey = ( new RawContextKey('scmActiveResourceRepository', undefined, ( localize(
|
|
164
|
+
const activeResourceHasChangesContextKey = ( new RawContextKey('scmActiveResourceHasChanges', false, ( localize(8425, "Whether the active resource has changes"))));
|
|
165
|
+
const activeResourceRepositoryContextKey = ( new RawContextKey('scmActiveResourceRepository', undefined, ( localize(8426, "The active resource's repository"))));
|
|
166
166
|
this._store.add(autorunWithStore((reader, store) => {
|
|
167
167
|
for (const repository of this._repositories.read(reader)) {
|
|
168
168
|
store.add(Event.runAndSubscribe(repository.provider.onDidChangeResources, () => {
|
|
@@ -208,7 +208,7 @@ SCMMenus = ( __decorate([
|
|
|
208
208
|
( __param(1, IInstantiationService))
|
|
209
209
|
], SCMMenus));
|
|
210
210
|
MenuRegistry.appendMenuItem(MenuId.SCMResourceContext, {
|
|
211
|
-
title: ( localize(
|
|
211
|
+
title: ( localize(8452, "Share")),
|
|
212
212
|
submenu: MenuId.SCMResourceContextShare,
|
|
213
213
|
group: '45_share',
|
|
214
214
|
order: 3,
|
|
@@ -48,10 +48,10 @@ ModesRegistry.registerLanguage({
|
|
|
48
48
|
});
|
|
49
49
|
( Registry.as(Extensions.Workbench))
|
|
50
50
|
.registerWorkbenchContribution(DirtyDiffWorkbenchController, LifecyclePhase.Restored);
|
|
51
|
-
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(
|
|
51
|
+
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(8453, 'View icon of the Source Control view.')));
|
|
52
52
|
const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).registerViewContainer({
|
|
53
53
|
id: VIEWLET_ID,
|
|
54
|
-
title: ( localize2(
|
|
54
|
+
title: ( localize2(8454, 'Source Control')),
|
|
55
55
|
ctorDescriptor: ( new SyncDescriptor(SCMViewPaneContainer)),
|
|
56
56
|
storageId: 'workbench.scm.views.state',
|
|
57
57
|
icon: sourceControlViewIcon,
|
|
@@ -61,30 +61,30 @@ const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).regist
|
|
|
61
61
|
}, ViewContainerLocation.Sidebar, { doNotRegisterOpenCommand: true });
|
|
62
62
|
const viewsRegistry = ( Registry.as(Extensions$1.ViewsRegistry));
|
|
63
63
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
64
|
-
content: ( localize(
|
|
64
|
+
content: ( localize(8455, "No source control providers registered.")),
|
|
65
65
|
when: 'default'
|
|
66
66
|
});
|
|
67
67
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
68
68
|
content: ( localize(
|
|
69
|
-
|
|
69
|
+
8456,
|
|
70
70
|
"None of the registered source control providers work in Restricted Mode."
|
|
71
71
|
)),
|
|
72
72
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scm.providerCount', 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
73
73
|
});
|
|
74
74
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
75
|
-
content: `[${( localize(
|
|
75
|
+
content: `[${( localize(8457, "Manage Workspace Trust"))}](command:${MANAGE_TRUST_COMMAND_ID})`,
|
|
76
76
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scm.providerCount', 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
77
77
|
});
|
|
78
78
|
viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
79
79
|
content: ( localize(
|
|
80
|
-
|
|
80
|
+
8458,
|
|
81
81
|
"The selected source control provider does not have any source control history items."
|
|
82
82
|
)),
|
|
83
83
|
when: ( ContextKeys.SCMHistoryItemCount.isEqualTo(0))
|
|
84
84
|
});
|
|
85
85
|
viewsRegistry.registerViews([{
|
|
86
86
|
id: REPOSITORIES_VIEW_PANE_ID,
|
|
87
|
-
name: ( localize2(
|
|
87
|
+
name: ( localize2(8459, "Source Control Repositories")),
|
|
88
88
|
ctorDescriptor: ( new SyncDescriptor(SCMRepositoriesViewPane)),
|
|
89
89
|
canToggleVisibility: true,
|
|
90
90
|
hideByDefault: true,
|
|
@@ -96,7 +96,7 @@ viewsRegistry.registerViews([{
|
|
|
96
96
|
}], viewContainer);
|
|
97
97
|
viewsRegistry.registerViews([{
|
|
98
98
|
id: VIEW_PANE_ID,
|
|
99
|
-
name: ( localize2(
|
|
99
|
+
name: ( localize2(8454, 'Source Control')),
|
|
100
100
|
ctorDescriptor: ( new SyncDescriptor(SCMViewPane)),
|
|
101
101
|
canToggleVisibility: true,
|
|
102
102
|
canMoveView: true,
|
|
@@ -105,7 +105,7 @@ viewsRegistry.registerViews([{
|
|
|
105
105
|
containerIcon: sourceControlViewIcon,
|
|
106
106
|
openCommandActionDescriptor: {
|
|
107
107
|
id: viewContainer.id,
|
|
108
|
-
mnemonicTitle: ( localize(
|
|
108
|
+
mnemonicTitle: ( localize(8460, "Source &&Control")),
|
|
109
109
|
keybindings: {
|
|
110
110
|
primary: 0,
|
|
111
111
|
win: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyG },
|
|
@@ -117,7 +117,7 @@ viewsRegistry.registerViews([{
|
|
|
117
117
|
}], viewContainer);
|
|
118
118
|
viewsRegistry.registerViews([{
|
|
119
119
|
id: HISTORY_VIEW_PANE_ID,
|
|
120
|
-
name: ( localize2(
|
|
120
|
+
name: ( localize2(8461, "Source Control Graph")),
|
|
121
121
|
ctorDescriptor: ( new SyncDescriptor(SCMHistoryViewPane)),
|
|
122
122
|
canToggleVisibility: true,
|
|
123
123
|
canMoveView: true,
|
|
@@ -136,7 +136,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
136
136
|
( Registry.as(Extensions$2.Configuration)).registerConfiguration({
|
|
137
137
|
id: 'scm',
|
|
138
138
|
order: 5,
|
|
139
|
-
title: ( localize(
|
|
139
|
+
title: ( localize(8462, "Source Control")),
|
|
140
140
|
type: 'object',
|
|
141
141
|
scope: ConfigurationScope.RESOURCE,
|
|
142
142
|
properties: {
|
|
@@ -144,21 +144,21 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
144
144
|
type: 'string',
|
|
145
145
|
enum: ['all', 'gutter', 'overview', 'minimap', 'none'],
|
|
146
146
|
enumDescriptions: [
|
|
147
|
-
( localize(
|
|
148
|
-
( localize(
|
|
149
|
-
( localize(
|
|
150
|
-
( localize(
|
|
151
|
-
( localize(
|
|
147
|
+
( localize(8463, "Show the diff decorations in all available locations.")),
|
|
148
|
+
( localize(8464, "Show the diff decorations only in the editor gutter.")),
|
|
149
|
+
( localize(8465, "Show the diff decorations only in the overview ruler.")),
|
|
150
|
+
( localize(8466, "Show the diff decorations only in the minimap.")),
|
|
151
|
+
( localize(8467, "Do not show the diff decorations."))
|
|
152
152
|
],
|
|
153
153
|
default: 'all',
|
|
154
|
-
description: ( localize(
|
|
154
|
+
description: ( localize(8468, "Controls diff decorations in the editor."))
|
|
155
155
|
},
|
|
156
156
|
'scm.diffDecorationsGutterWidth': {
|
|
157
157
|
type: 'number',
|
|
158
158
|
enum: [1, 2, 3, 4, 5],
|
|
159
159
|
default: 3,
|
|
160
160
|
description: ( localize(
|
|
161
|
-
|
|
161
|
+
8469,
|
|
162
162
|
"Controls the width(px) of diff decorations in gutter (added & modified)."
|
|
163
163
|
))
|
|
164
164
|
},
|
|
@@ -166,11 +166,11 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
166
166
|
type: 'string',
|
|
167
167
|
enum: ['always', 'hover'],
|
|
168
168
|
enumDescriptions: [
|
|
169
|
-
( localize(
|
|
170
|
-
( localize(
|
|
169
|
+
( localize(8470, "Show the diff decorator in the gutter at all times.")),
|
|
170
|
+
( localize(8471, "Show the diff decorator in the gutter only on hover."))
|
|
171
171
|
],
|
|
172
172
|
description: ( localize(
|
|
173
|
-
|
|
173
|
+
8472,
|
|
174
174
|
"Controls the visibility of the Source Control diff decorator in the gutter."
|
|
175
175
|
)),
|
|
176
176
|
default: 'always'
|
|
@@ -179,27 +179,27 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
179
179
|
type: 'string',
|
|
180
180
|
enum: ['diff', 'none'],
|
|
181
181
|
enumDescriptions: [
|
|
182
|
-
( localize(
|
|
183
|
-
( localize(
|
|
182
|
+
( localize(8473, "Show the inline diff Peek view on click.")),
|
|
183
|
+
( localize(8474, "Do nothing."))
|
|
184
184
|
],
|
|
185
|
-
description: ( localize(
|
|
185
|
+
description: ( localize(8475, "Controls the behavior of Source Control diff gutter decorations.")),
|
|
186
186
|
default: 'diff'
|
|
187
187
|
},
|
|
188
188
|
'scm.diffDecorationsGutterPattern': {
|
|
189
189
|
type: 'object',
|
|
190
190
|
description: ( localize(
|
|
191
|
-
|
|
191
|
+
8476,
|
|
192
192
|
"Controls whether a pattern is used for the diff decorations in gutter."
|
|
193
193
|
)),
|
|
194
194
|
additionalProperties: false,
|
|
195
195
|
properties: {
|
|
196
196
|
'added': {
|
|
197
197
|
type: 'boolean',
|
|
198
|
-
description: ( localize(
|
|
198
|
+
description: ( localize(8477, "Use pattern for the diff decorations in gutter for added lines.")),
|
|
199
199
|
},
|
|
200
200
|
'modified': {
|
|
201
201
|
type: 'boolean',
|
|
202
|
-
description: ( localize(
|
|
202
|
+
description: ( localize(8478, "Use pattern for the diff decorations in gutter for modified lines.")),
|
|
203
203
|
},
|
|
204
204
|
},
|
|
205
205
|
default: {
|
|
@@ -211,12 +211,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
211
211
|
type: 'string',
|
|
212
212
|
enum: ['true', 'false', 'inherit'],
|
|
213
213
|
enumDescriptions: [
|
|
214
|
-
( localize(
|
|
215
|
-
( localize(
|
|
216
|
-
( localize(
|
|
214
|
+
( localize(8479, "Ignore leading and trailing whitespace.")),
|
|
215
|
+
( localize(8480, "Do not ignore leading and trailing whitespace.")),
|
|
216
|
+
( localize(8481, "Inherit from `diffEditor.ignoreTrimWhitespace`."))
|
|
217
217
|
],
|
|
218
218
|
description: ( localize(
|
|
219
|
-
|
|
219
|
+
8482,
|
|
220
220
|
"Controls whether leading and trailing whitespace is ignored in Source Control diff gutter decorations."
|
|
221
221
|
)),
|
|
222
222
|
default: 'false'
|
|
@@ -224,7 +224,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
224
224
|
'scm.alwaysShowActions': {
|
|
225
225
|
type: 'boolean',
|
|
226
226
|
description: ( localize(
|
|
227
|
-
|
|
227
|
+
8483,
|
|
228
228
|
"Controls whether inline actions are always visible in the Source Control view."
|
|
229
229
|
)),
|
|
230
230
|
default: false
|
|
@@ -233,12 +233,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
233
233
|
type: 'string',
|
|
234
234
|
enum: ['all', 'focused', 'off'],
|
|
235
235
|
enumDescriptions: [
|
|
236
|
-
( localize(
|
|
237
|
-
( localize(
|
|
238
|
-
( localize(
|
|
236
|
+
( localize(8484, "Show the sum of all Source Control Provider count badges.")),
|
|
237
|
+
( localize(8485, "Show the count badge of the focused Source Control Provider.")),
|
|
238
|
+
( localize(8486, "Disable the Source Control count badge."))
|
|
239
239
|
],
|
|
240
240
|
description: ( localize(
|
|
241
|
-
|
|
241
|
+
8487,
|
|
242
242
|
"Controls the count badge on the Source Control icon on the Activity Bar."
|
|
243
243
|
)),
|
|
244
244
|
default: 'all'
|
|
@@ -247,12 +247,12 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
247
247
|
type: 'string',
|
|
248
248
|
enum: ['hidden', 'auto', 'visible'],
|
|
249
249
|
enumDescriptions: [
|
|
250
|
-
( localize(
|
|
251
|
-
( localize(
|
|
252
|
-
( localize(
|
|
250
|
+
( localize(8488, "Hide Source Control Provider count badges.")),
|
|
251
|
+
( localize(8489, "Only show count badge for Source Control Provider when non-zero.")),
|
|
252
|
+
( localize(8490, "Show Source Control Provider count badges."))
|
|
253
253
|
],
|
|
254
254
|
markdownDescription: ( localize(
|
|
255
|
-
|
|
255
|
+
8491,
|
|
256
256
|
"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.",
|
|
257
257
|
'\`#scm.alwaysShowRepositories#\`'
|
|
258
258
|
)),
|
|
@@ -262,22 +262,22 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
262
262
|
type: 'string',
|
|
263
263
|
enum: ['tree', 'list'],
|
|
264
264
|
enumDescriptions: [
|
|
265
|
-
( localize(
|
|
266
|
-
( localize(
|
|
265
|
+
( localize(8492, "Show the repository changes as a tree.")),
|
|
266
|
+
( localize(8493, "Show the repository changes as a list."))
|
|
267
267
|
],
|
|
268
|
-
description: ( localize(
|
|
268
|
+
description: ( localize(8494, "Controls the default Source Control repository view mode.")),
|
|
269
269
|
default: 'list'
|
|
270
270
|
},
|
|
271
271
|
'scm.defaultViewSortKey': {
|
|
272
272
|
type: 'string',
|
|
273
273
|
enum: ['name', 'path', 'status'],
|
|
274
274
|
enumDescriptions: [
|
|
275
|
-
( localize(
|
|
276
|
-
( localize(
|
|
277
|
-
( localize(
|
|
275
|
+
( localize(8495, "Sort the repository changes by file name.")),
|
|
276
|
+
( localize(8496, "Sort the repository changes by path.")),
|
|
277
|
+
( localize(8497, "Sort the repository changes by Source Control status."))
|
|
278
278
|
],
|
|
279
279
|
description: ( localize(
|
|
280
|
-
|
|
280
|
+
8498,
|
|
281
281
|
"Controls the default Source Control repository changes sort order when viewed as a list."
|
|
282
282
|
)),
|
|
283
283
|
default: 'path'
|
|
@@ -285,7 +285,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
285
285
|
'scm.autoReveal': {
|
|
286
286
|
type: 'boolean',
|
|
287
287
|
description: ( localize(
|
|
288
|
-
|
|
288
|
+
8499,
|
|
289
289
|
"Controls whether the Source Control view should automatically reveal and select files when opening them."
|
|
290
290
|
)),
|
|
291
291
|
default: true
|
|
@@ -293,20 +293,20 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
293
293
|
'scm.inputFontFamily': {
|
|
294
294
|
type: 'string',
|
|
295
295
|
markdownDescription: ( localize(
|
|
296
|
-
|
|
296
|
+
8500,
|
|
297
297
|
"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."
|
|
298
298
|
)),
|
|
299
299
|
default: 'default'
|
|
300
300
|
},
|
|
301
301
|
'scm.inputFontSize': {
|
|
302
302
|
type: 'number',
|
|
303
|
-
markdownDescription: ( localize(
|
|
303
|
+
markdownDescription: ( localize(8501, "Controls the font size for the input message in pixels.")),
|
|
304
304
|
default: 13
|
|
305
305
|
},
|
|
306
306
|
'scm.inputMaxLineCount': {
|
|
307
307
|
type: 'number',
|
|
308
308
|
markdownDescription: ( localize(
|
|
309
|
-
|
|
309
|
+
8502,
|
|
310
310
|
"Controls the maximum number of lines that the input will auto-grow to."
|
|
311
311
|
)),
|
|
312
312
|
minimum: 1,
|
|
@@ -316,7 +316,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
316
316
|
'scm.inputMinLineCount': {
|
|
317
317
|
type: 'number',
|
|
318
318
|
markdownDescription: ( localize(
|
|
319
|
-
|
|
319
|
+
8503,
|
|
320
320
|
"Controls the minimum number of lines that the input will auto-grow from."
|
|
321
321
|
)),
|
|
322
322
|
minimum: 1,
|
|
@@ -326,7 +326,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
326
326
|
'scm.alwaysShowRepositories': {
|
|
327
327
|
type: 'boolean',
|
|
328
328
|
markdownDescription: ( localize(
|
|
329
|
-
|
|
329
|
+
8504,
|
|
330
330
|
"Controls whether repositories should always be visible in the Source Control view."
|
|
331
331
|
)),
|
|
332
332
|
default: false
|
|
@@ -336,20 +336,20 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
336
336
|
enum: ['discovery time', 'name', 'path'],
|
|
337
337
|
enumDescriptions: [
|
|
338
338
|
( localize(
|
|
339
|
-
|
|
339
|
+
8505,
|
|
340
340
|
"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."
|
|
341
341
|
)),
|
|
342
342
|
( localize(
|
|
343
|
-
|
|
343
|
+
8506,
|
|
344
344
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
|
|
345
345
|
)),
|
|
346
346
|
( localize(
|
|
347
|
-
|
|
347
|
+
8507,
|
|
348
348
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository path."
|
|
349
349
|
))
|
|
350
350
|
],
|
|
351
351
|
description: ( localize(
|
|
352
|
-
|
|
352
|
+
8508,
|
|
353
353
|
"Controls the sort order of the repositories in the source control repositories view."
|
|
354
354
|
)),
|
|
355
355
|
default: 'discovery time'
|
|
@@ -357,7 +357,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
357
357
|
'scm.repositories.visible': {
|
|
358
358
|
type: 'number',
|
|
359
359
|
description: ( localize(
|
|
360
|
-
|
|
360
|
+
8509,
|
|
361
361
|
"Controls how many repositories are visible in the Source Control Repositories section. Set to 0, to be able to manually resize the view."
|
|
362
362
|
)),
|
|
363
363
|
default: 10
|
|
@@ -365,7 +365,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
365
365
|
'scm.showActionButton': {
|
|
366
366
|
type: 'boolean',
|
|
367
367
|
markdownDescription: ( localize(
|
|
368
|
-
|
|
368
|
+
8510,
|
|
369
369
|
"Controls whether an action button can be shown in the Source Control view."
|
|
370
370
|
)),
|
|
371
371
|
default: true
|
|
@@ -373,7 +373,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
373
373
|
'scm.showInputActionButton': {
|
|
374
374
|
type: 'boolean',
|
|
375
375
|
markdownDescription: ( localize(
|
|
376
|
-
|
|
376
|
+
8511,
|
|
377
377
|
"Controls whether an action button can be shown in the Source Control input."
|
|
378
378
|
)),
|
|
379
379
|
default: true
|
|
@@ -381,7 +381,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
381
381
|
'scm.workingSets.enabled': {
|
|
382
382
|
type: 'boolean',
|
|
383
383
|
description: ( localize(
|
|
384
|
-
|
|
384
|
+
8512,
|
|
385
385
|
"Controls whether to store editor working sets when switching between source control history item groups."
|
|
386
386
|
)),
|
|
387
387
|
default: false
|
|
@@ -391,16 +391,16 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
391
391
|
enum: ['empty', 'current'],
|
|
392
392
|
enumDescriptions: [
|
|
393
393
|
( localize(
|
|
394
|
-
|
|
394
|
+
8513,
|
|
395
395
|
"Use an empty working set when switching to a source control history item group that does not have a working set."
|
|
396
396
|
)),
|
|
397
397
|
( localize(
|
|
398
|
-
|
|
398
|
+
8514,
|
|
399
399
|
"Use the current working set when switching to a source control history item group that does not have a working set."
|
|
400
400
|
))
|
|
401
401
|
],
|
|
402
402
|
description: ( localize(
|
|
403
|
-
|
|
403
|
+
8515,
|
|
404
404
|
"Controls the default working set to use when switching to a source control history item group that does not have a working set."
|
|
405
405
|
)),
|
|
406
406
|
default: 'current'
|
|
@@ -408,7 +408,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
408
408
|
'scm.compactFolders': {
|
|
409
409
|
type: 'boolean',
|
|
410
410
|
description: ( localize(
|
|
411
|
-
|
|
411
|
+
8516,
|
|
412
412
|
"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."
|
|
413
413
|
)),
|
|
414
414
|
default: true
|
|
@@ -416,7 +416,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
416
416
|
'scm.graph.pageOnScroll': {
|
|
417
417
|
type: 'boolean',
|
|
418
418
|
description: ( localize(
|
|
419
|
-
|
|
419
|
+
8517,
|
|
420
420
|
"Controls whether the Source Control Graph view will load the next page of items when you scroll to the end of the list."
|
|
421
421
|
)),
|
|
422
422
|
default: true
|
|
@@ -424,7 +424,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
424
424
|
'scm.graph.pageSize': {
|
|
425
425
|
type: 'number',
|
|
426
426
|
description: ( localize(
|
|
427
|
-
|
|
427
|
+
8518,
|
|
428
428
|
"The number of items to show in the Source Control Graph view by default and when loading more items."
|
|
429
429
|
)),
|
|
430
430
|
minimum: 1,
|
|
@@ -436,16 +436,16 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
436
436
|
enum: ['all', 'filter'],
|
|
437
437
|
enumDescriptions: [
|
|
438
438
|
( localize(
|
|
439
|
-
|
|
439
|
+
8519,
|
|
440
440
|
"Show badges of all history item groups in the Source Control Graph view."
|
|
441
441
|
)),
|
|
442
442
|
( localize(
|
|
443
|
-
|
|
443
|
+
8520,
|
|
444
444
|
"Show only the badges of history item groups used as a filter in the Source Control Graph view."
|
|
445
445
|
))
|
|
446
446
|
],
|
|
447
447
|
description: ( localize(
|
|
448
|
-
|
|
448
|
+
8521,
|
|
449
449
|
"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."
|
|
450
450
|
)),
|
|
451
451
|
default: 'filter'
|
|
@@ -454,7 +454,7 @@ registerWorkbenchContribution2(SCMWorkingSetController.ID, SCMWorkingSetControll
|
|
|
454
454
|
});
|
|
455
455
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
456
456
|
id: 'scm.acceptInput',
|
|
457
|
-
metadata: { description: ( localize(
|
|
457
|
+
metadata: { description: ( localize(8522, "Source Control: Accept Input")), args: [] },
|
|
458
458
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
459
459
|
when: ( ContextKeyExpr.has('scmRepository')),
|
|
460
460
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
@@ -491,7 +491,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
491
491
|
}
|
|
492
492
|
});
|
|
493
493
|
const viewNextCommitCommand = {
|
|
494
|
-
description: { description: ( localize(
|
|
494
|
+
description: { description: ( localize(8523, "Source Control: View Next Commit")), args: [] },
|
|
495
495
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
496
496
|
handler: (accessor) => {
|
|
497
497
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -503,7 +503,7 @@ const viewNextCommitCommand = {
|
|
|
503
503
|
}
|
|
504
504
|
};
|
|
505
505
|
const viewPreviousCommitCommand = {
|
|
506
|
-
description: { description: ( localize(
|
|
506
|
+
description: { description: ( localize(8524, "Source Control: View Previous Commit")), args: [] },
|
|
507
507
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
508
508
|
handler: (accessor) => {
|
|
509
509
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -572,7 +572,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
572
572
|
group: '100_end',
|
|
573
573
|
command: {
|
|
574
574
|
id: 'scm.openInTerminal',
|
|
575
|
-
title: ( localize(
|
|
575
|
+
title: ( localize(8525, "Open in External Terminal"))
|
|
576
576
|
},
|
|
577
577
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scmProviderHasRootUri', true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'external')), ( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))))))
|
|
578
578
|
});
|
|
@@ -580,7 +580,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
580
580
|
group: '100_end',
|
|
581
581
|
command: {
|
|
582
582
|
id: 'scm.openInIntegratedTerminal',
|
|
583
|
-
title: ( localize(
|
|
583
|
+
title: ( localize(8526, "Open in Integrated Terminal"))
|
|
584
584
|
},
|
|
585
585
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scmProviderHasRootUri', true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'integrated')), ( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))))))
|
|
586
586
|
});
|
|
@@ -48,7 +48,7 @@ import { getHistoryItemEditorTitle, isSCMHistoryItemViewModelTreeElement, isSCMH
|
|
|
48
48
|
import { HISTORY_VIEW_PANE_ID } from '@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common/vscode/vs/workbench/contrib/scm/common/scm';
|
|
49
49
|
import { ISCMService, ISCMViewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
50
50
|
import { stripIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/common/iconLabels';
|
|
51
|
-
import { Position } from '@codingame/monaco-vscode-
|
|
51
|
+
import { Position } from '@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
52
52
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
53
53
|
import { HoverPosition } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverWidget';
|
|
54
54
|
import { registerAction2, MenuId, Action2, MenuItemAction } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
@@ -109,23 +109,23 @@ class SCMHistoryItemRefsActionViewItem extends ActionViewItem {
|
|
|
109
109
|
icon.classList.add(...ThemeIcon.asClassNameArray(Codicon.gitBranch));
|
|
110
110
|
const name = $('.name');
|
|
111
111
|
if (this._historyItemsFilter === 'all') {
|
|
112
|
-
name.textContent = ( localize(
|
|
112
|
+
name.textContent = ( localize(8540, "All"));
|
|
113
113
|
}
|
|
114
114
|
else if (this._historyItemsFilter === 'auto') {
|
|
115
|
-
name.textContent = ( localize(
|
|
115
|
+
name.textContent = ( localize(8541, "Auto"));
|
|
116
116
|
}
|
|
117
117
|
else if (this._historyItemsFilter.length === 1) {
|
|
118
118
|
name.textContent = this._historyItemsFilter[0].name;
|
|
119
119
|
}
|
|
120
120
|
else {
|
|
121
|
-
name.textContent = ( localize(
|
|
121
|
+
name.textContent = ( localize(8542, "{0} Items", this._historyItemsFilter.length));
|
|
122
122
|
}
|
|
123
123
|
reset(this.label, icon, name);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
getTooltip() {
|
|
127
127
|
if (this._historyItemsFilter === 'all') {
|
|
128
|
-
return localize(
|
|
128
|
+
return localize(8543, "All history item references");
|
|
129
129
|
}
|
|
130
130
|
else if (this._historyItemsFilter === 'auto') {
|
|
131
131
|
const historyProvider = this._repository.provider.historyProvider.get();
|
|
@@ -147,7 +147,7 @@ registerAction2(class extends ViewAction {
|
|
|
147
147
|
constructor() {
|
|
148
148
|
super({
|
|
149
149
|
id: PICK_REPOSITORY_ACTION_ID,
|
|
150
|
-
title: ( localize(
|
|
150
|
+
title: ( localize(8544, "Repository Picker")),
|
|
151
151
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
152
152
|
f1: false,
|
|
153
153
|
menu: {
|
|
@@ -166,7 +166,7 @@ registerAction2(class extends ViewAction {
|
|
|
166
166
|
constructor() {
|
|
167
167
|
super({
|
|
168
168
|
id: PICK_HISTORY_ITEM_REFS_ACTION_ID,
|
|
169
|
-
title: ( localize(
|
|
169
|
+
title: ( localize(8545, "History Item Reference Picker")),
|
|
170
170
|
icon: Codicon.gitBranch,
|
|
171
171
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
172
172
|
precondition: ( ContextKeys.SCMHistoryItemCount.notEqualsTo(0)),
|
|
@@ -186,7 +186,7 @@ registerAction2(class extends ViewAction {
|
|
|
186
186
|
constructor() {
|
|
187
187
|
super({
|
|
188
188
|
id: 'workbench.scm.action.graph.revealCurrentHistoryItem',
|
|
189
|
-
title: ( localize(
|
|
189
|
+
title: ( localize(8546, "Go to Current History Item")),
|
|
190
190
|
icon: Codicon.target,
|
|
191
191
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
192
192
|
precondition: ( ContextKeyExpr.and(( ContextKeys.SCMHistoryItemCount.notEqualsTo(0)), ( ContextKeys.SCMCurrentHistoryItemRefInFilter.isEqualTo(true)))),
|
|
@@ -206,7 +206,7 @@ registerAction2(class extends ViewAction {
|
|
|
206
206
|
constructor() {
|
|
207
207
|
super({
|
|
208
208
|
id: 'workbench.scm.action.graph.refresh',
|
|
209
|
-
title: ( localize(
|
|
209
|
+
title: ( localize(8547, "Refresh")),
|
|
210
210
|
viewId: HISTORY_VIEW_PANE_ID,
|
|
211
211
|
f1: false,
|
|
212
212
|
icon: Codicon.refresh,
|
|
@@ -225,7 +225,7 @@ registerAction2(class extends Action2 {
|
|
|
225
225
|
constructor() {
|
|
226
226
|
super({
|
|
227
227
|
id: 'workbench.scm.action.graph.viewChanges',
|
|
228
|
-
title: ( localize(
|
|
228
|
+
title: ( localize(8548, "View Changes")),
|
|
229
229
|
f1: false,
|
|
230
230
|
menu: [
|
|
231
231
|
{
|
|
@@ -258,7 +258,7 @@ registerAction2(class extends Action2 {
|
|
|
258
258
|
const title = historyItems.length === 1 ?
|
|
259
259
|
getHistoryItemEditorTitle(historyItem) :
|
|
260
260
|
( localize(
|
|
261
|
-
|
|
261
|
+
8549,
|
|
262
262
|
"All Changes ({0} ↔ {1})",
|
|
263
263
|
historyItemLast.displayId ?? historyItemLast.id,
|
|
264
264
|
historyItem.displayId ?? historyItem.id
|
|
@@ -392,7 +392,7 @@ let HistoryItemRenderer = class HistoryItemRenderer {
|
|
|
392
392
|
{
|
|
393
393
|
commandId: 'workbench.scm.action.graph.copyHistoryItemMessage',
|
|
394
394
|
iconClass: 'codicon.codicon-copy',
|
|
395
|
-
label: ( localize(
|
|
395
|
+
label: ( localize(8550, "Message")),
|
|
396
396
|
run: () => this._clipboardService.writeText(historyItem.message)
|
|
397
397
|
}
|
|
398
398
|
];
|
|
@@ -413,19 +413,19 @@ let HistoryItemRenderer = class HistoryItemRenderer {
|
|
|
413
413
|
if (historyItem.statistics) {
|
|
414
414
|
markdown.appendMarkdown(`---\n\n`);
|
|
415
415
|
markdown.appendMarkdown(`<span>${historyItem.statistics.files === 1 ?
|
|
416
|
-
( localize(
|
|
417
|
-
( localize(
|
|
416
|
+
( localize(8551, "{0} file changed", historyItem.statistics.files)) :
|
|
417
|
+
( localize(8552, "{0} files changed", historyItem.statistics.files))}</span>`);
|
|
418
418
|
if (historyItem.statistics.insertions) {
|
|
419
419
|
const additionsForegroundColor = colorTheme.getColor(historyItemHoverAdditionsForeground);
|
|
420
420
|
markdown.appendMarkdown(`, <span style="color:${additionsForegroundColor};">${historyItem.statistics.insertions === 1 ?
|
|
421
|
-
( localize(
|
|
422
|
-
( localize(
|
|
421
|
+
( localize(8553, "{0} insertion{1}", historyItem.statistics.insertions, '(+)')) :
|
|
422
|
+
( localize(8554, "{0} insertions{1}", historyItem.statistics.insertions, '(+)'))}</span>`);
|
|
423
423
|
}
|
|
424
424
|
if (historyItem.statistics.deletions) {
|
|
425
425
|
const deletionsForegroundColor = colorTheme.getColor(historyItemHoverDeletionsForeground);
|
|
426
426
|
markdown.appendMarkdown(`, <span style="color:${deletionsForegroundColor};">${historyItem.statistics.deletions === 1 ?
|
|
427
|
-
( localize(
|
|
428
|
-
( localize(
|
|
427
|
+
( localize(8555, "{0} deletion{1}", historyItem.statistics.deletions, '(-)')) :
|
|
428
|
+
( localize(8556, "{0} deletions{1}", historyItem.statistics.deletions, '(-)'))}</span>`);
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
if ((historyItem.references ?? []).length > 0) {
|
|
@@ -492,7 +492,7 @@ let HistoryItemLoadMoreRenderer = class HistoryItemLoadMoreRenderer {
|
|
|
492
492
|
templateData.elementDisposables.add(autorun(reader => {
|
|
493
493
|
const isLoadingMore = this._isLoadingMore.read(reader);
|
|
494
494
|
const icon = `$(${isLoadingMore ? 'loading~spin' : 'fold-down'})`;
|
|
495
|
-
templateData.historyItemPlaceholderLabel.setLabel(( localize(
|
|
495
|
+
templateData.historyItemPlaceholderLabel.setLabel(( localize(8557, "{0} Load More...", icon)));
|
|
496
496
|
}));
|
|
497
497
|
}
|
|
498
498
|
}
|
|
@@ -546,7 +546,7 @@ SCMHistoryViewPaneActionRunner = ( __decorate([
|
|
|
546
546
|
], SCMHistoryViewPaneActionRunner));
|
|
547
547
|
class SCMHistoryTreeAccessibilityProvider {
|
|
548
548
|
getWidgetAriaLabel() {
|
|
549
|
-
return localize(
|
|
549
|
+
return localize(8558, "Source Control History");
|
|
550
550
|
}
|
|
551
551
|
getAriaLabel(element) {
|
|
552
552
|
if (isSCMRepository(element)) {
|
|
@@ -848,8 +848,8 @@ let RepositoryPicker = class RepositoryPicker extends Disposable {
|
|
|
848
848
|
this._quickInputService = _quickInputService;
|
|
849
849
|
this._scmViewService = _scmViewService;
|
|
850
850
|
this._autoQuickPickItem = {
|
|
851
|
-
label: ( localize(
|
|
852
|
-
description: ( localize(
|
|
851
|
+
label: ( localize(8541, "Auto")),
|
|
852
|
+
description: ( localize(8559, "Show the source control graph for the active repository")),
|
|
853
853
|
repository: 'auto'
|
|
854
854
|
};
|
|
855
855
|
}
|
|
@@ -865,7 +865,7 @@ let RepositoryPicker = class RepositoryPicker extends Disposable {
|
|
|
865
865
|
repository: r
|
|
866
866
|
}))));
|
|
867
867
|
return this._quickInputService.pick(picks, {
|
|
868
|
-
placeHolder: ( localize(
|
|
868
|
+
placeHolder: ( localize(8560, "Select the repository to view, type to filter all repositories"))
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
};
|
|
@@ -881,21 +881,21 @@ let HistoryItemRefPicker = class HistoryItemRefPicker extends Disposable {
|
|
|
881
881
|
this._quickInputService = _quickInputService;
|
|
882
882
|
this._allQuickPickItem = {
|
|
883
883
|
id: 'all',
|
|
884
|
-
label: ( localize(
|
|
885
|
-
description: ( localize(
|
|
884
|
+
label: ( localize(8540, "All")),
|
|
885
|
+
description: ( localize(8543, "All history item references")),
|
|
886
886
|
historyItemRef: 'all'
|
|
887
887
|
};
|
|
888
888
|
this._autoQuickPickItem = {
|
|
889
889
|
id: 'auto',
|
|
890
|
-
label: ( localize(
|
|
891
|
-
description: ( localize(
|
|
890
|
+
label: ( localize(8541, "Auto")),
|
|
891
|
+
description: ( localize(8561, "Current history item reference(s)")),
|
|
892
892
|
historyItemRef: 'auto'
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
async pickHistoryItemRef() {
|
|
896
896
|
const quickPick = this._quickInputService.createQuickPick({ useSeparators: true });
|
|
897
897
|
this._store.add(quickPick);
|
|
898
|
-
quickPick.placeholder = ( localize(
|
|
898
|
+
quickPick.placeholder = ( localize(8562, "Select one/more history item references to view, type to filter"));
|
|
899
899
|
quickPick.canSelectMany = true;
|
|
900
900
|
quickPick.hideCheckAll = true;
|
|
901
901
|
quickPick.busy = true;
|
|
@@ -1024,7 +1024,7 @@ let SCMHistoryViewPane = class SCMHistoryViewPane extends ViewPane {
|
|
|
1024
1024
|
container.appendChild(element.root);
|
|
1025
1025
|
this._register(this.hoverService.setupManagedHover(getDefaultHoverDelegate('mouse'), element.root, {
|
|
1026
1026
|
markdown: {
|
|
1027
|
-
value: ( localize(
|
|
1027
|
+
value: ( localize(8563, "Please refresh the graph using the refresh action ($(refresh)).")),
|
|
1028
1028
|
supportThemeIcons: true
|
|
1029
1029
|
},
|
|
1030
1030
|
markdownNotSupportedFallback: undefined
|
|
@@ -60,7 +60,7 @@ let SCMRepositoriesViewPane = class SCMRepositoriesViewPane extends ViewPane {
|
|
|
60
60
|
return r.provider.label;
|
|
61
61
|
},
|
|
62
62
|
getWidgetAriaLabel() {
|
|
63
|
-
return localize(
|
|
63
|
+
return localize(8564, "Source Control Repositories");
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
});
|
|
@@ -77,7 +77,7 @@ import { defaultCountBadgeStyles, defaultButtonStyles } from '@codingame/monaco-
|
|
|
77
77
|
import { InlineCompletionsController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController';
|
|
78
78
|
import { CodeActionController } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/codeAction/browser/codeActionController';
|
|
79
79
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
80
|
-
import { fillEditorsDragData } from '@codingame/monaco-vscode-
|
|
80
|
+
import { fillEditorsDragData } from '@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common/vscode/vs/workbench/browser/dnd';
|
|
81
81
|
import { CodeDataTransfers } from '@codingame/monaco-vscode-api/vscode/vs/platform/dnd/browser/dnd';
|
|
82
82
|
import { FormatOnType } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/format/browser/formatActions';
|
|
83
83
|
import { EditorOptions, EditorOption } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorOptions';
|
|
@@ -753,7 +753,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
753
753
|
this.labelService = labelService;
|
|
754
754
|
}
|
|
755
755
|
getWidgetAriaLabel() {
|
|
756
|
-
return localize(
|
|
756
|
+
return localize(8565, "Source Control Management");
|
|
757
757
|
}
|
|
758
758
|
getAriaLabel(element) {
|
|
759
759
|
if (ResourceTree.isResourceNode(element)) {
|
|
@@ -763,7 +763,7 @@ let SCMAccessibilityProvider = class SCMAccessibilityProvider {
|
|
|
763
763
|
return `${element.provider.name} ${element.provider.label}`;
|
|
764
764
|
}
|
|
765
765
|
else if (isSCMInput(element)) {
|
|
766
|
-
return localize(
|
|
766
|
+
return localize(8566, "Source Control Input");
|
|
767
767
|
}
|
|
768
768
|
else if (isSCMActionButton(element)) {
|
|
769
769
|
return element.button?.command.title ?? '';
|
|
@@ -822,14 +822,14 @@ const ContextKeys = {
|
|
|
822
822
|
}
|
|
823
823
|
};
|
|
824
824
|
MenuRegistry.appendMenuItem(MenuId.SCMTitle, {
|
|
825
|
-
title: ( localize(
|
|
825
|
+
title: ( localize(8567, "View & Sort")),
|
|
826
826
|
submenu: Menus.ViewSort,
|
|
827
827
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', VIEW_PANE_ID)), ( ContextKeys.RepositoryCount.notEqualsTo(0)))),
|
|
828
828
|
group: '0_view&sort',
|
|
829
829
|
order: 1
|
|
830
830
|
});
|
|
831
831
|
MenuRegistry.appendMenuItem(Menus.ViewSort, {
|
|
832
|
-
title: ( localize(
|
|
832
|
+
title: ( localize(8568, "Repositories")),
|
|
833
833
|
submenu: Menus.Repositories,
|
|
834
834
|
when: ContextKeyExpr.greater(ContextKeys.RepositoryCount.key, 1),
|
|
835
835
|
group: '0_repositories'
|
|
@@ -919,7 +919,7 @@ class SetListViewModeAction extends ViewAction {
|
|
|
919
919
|
constructor(id = 'workbench.scm.action.setListViewMode', menu = {}) {
|
|
920
920
|
super({
|
|
921
921
|
id,
|
|
922
|
-
title: ( localize(
|
|
922
|
+
title: ( localize(8569, "View as List")),
|
|
923
923
|
viewId: VIEW_PANE_ID,
|
|
924
924
|
f1: false,
|
|
925
925
|
icon: Codicon.listTree,
|
|
@@ -945,7 +945,7 @@ class SetTreeViewModeAction extends ViewAction {
|
|
|
945
945
|
constructor(id = 'workbench.scm.action.setTreeViewMode', menu = {}) {
|
|
946
946
|
super({
|
|
947
947
|
id,
|
|
948
|
-
title: ( localize(
|
|
948
|
+
title: ( localize(8570, "View as Tree")),
|
|
949
949
|
viewId: VIEW_PANE_ID,
|
|
950
950
|
f1: false,
|
|
951
951
|
icon: Codicon.listFlat,
|
|
@@ -998,17 +998,17 @@ class RepositorySortAction extends ViewAction {
|
|
|
998
998
|
}
|
|
999
999
|
class RepositorySortByDiscoveryTimeAction extends RepositorySortAction {
|
|
1000
1000
|
constructor() {
|
|
1001
|
-
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(
|
|
1001
|
+
super(ISCMRepositorySortKey.DiscoveryTime, ( localize(8571, "Sort by Discovery Time")));
|
|
1002
1002
|
}
|
|
1003
1003
|
}
|
|
1004
1004
|
class RepositorySortByNameAction extends RepositorySortAction {
|
|
1005
1005
|
constructor() {
|
|
1006
|
-
super(ISCMRepositorySortKey.Name, ( localize(
|
|
1006
|
+
super(ISCMRepositorySortKey.Name, ( localize(8572, "Sort by Name")));
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
1009
|
class RepositorySortByPathAction extends RepositorySortAction {
|
|
1010
1010
|
constructor() {
|
|
1011
|
-
super(ISCMRepositorySortKey.Path, ( localize(
|
|
1011
|
+
super(ISCMRepositorySortKey.Path, ( localize(8573, "Sort by Path")));
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
registerAction2(RepositorySortByDiscoveryTimeAction);
|
|
@@ -1033,17 +1033,17 @@ class SetSortKeyAction extends ViewAction {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
class SetSortByNameAction extends SetSortKeyAction {
|
|
1035
1035
|
constructor() {
|
|
1036
|
-
super(ViewSortKey.Name, ( localize(
|
|
1036
|
+
super(ViewSortKey.Name, ( localize(8574, "Sort Changes by Name")));
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
1039
|
class SetSortByPathAction extends SetSortKeyAction {
|
|
1040
1040
|
constructor() {
|
|
1041
|
-
super(ViewSortKey.Path, ( localize(
|
|
1041
|
+
super(ViewSortKey.Path, ( localize(8575, "Sort Changes by Path")));
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
1044
|
class SetSortByStatusAction extends SetSortKeyAction {
|
|
1045
1045
|
constructor() {
|
|
1046
|
-
super(ViewSortKey.Status, ( localize(
|
|
1046
|
+
super(ViewSortKey.Status, ( localize(8576, "Sort Changes by Status")));
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
registerAction2(SetSortByNameAction);
|
|
@@ -1053,7 +1053,7 @@ class CollapseAllRepositoriesAction extends ViewAction {
|
|
|
1053
1053
|
constructor() {
|
|
1054
1054
|
super({
|
|
1055
1055
|
id: `workbench.scm.action.collapseAllRepositories`,
|
|
1056
|
-
title: ( localize(
|
|
1056
|
+
title: ( localize(8577, "Collapse All Repositories")),
|
|
1057
1057
|
viewId: VIEW_PANE_ID,
|
|
1058
1058
|
f1: false,
|
|
1059
1059
|
icon: Codicon.collapseAll,
|
|
@@ -1072,7 +1072,7 @@ class ExpandAllRepositoriesAction extends ViewAction {
|
|
|
1072
1072
|
constructor() {
|
|
1073
1073
|
super({
|
|
1074
1074
|
id: `workbench.scm.action.expandAllRepositories`,
|
|
1075
|
-
title: ( localize(
|
|
1075
|
+
title: ( localize(8578, "Expand All Repositories")),
|
|
1076
1076
|
viewId: VIEW_PANE_ID,
|
|
1077
1077
|
f1: false,
|
|
1078
1078
|
icon: Codicon.expandAll,
|
|
@@ -1147,10 +1147,10 @@ let SCMInputWidgetToolbar = class SCMInputWidgetToolbar extends WorkbenchToolBar
|
|
|
1147
1147
|
this._onDidChange = ( new Emitter());
|
|
1148
1148
|
this.onDidChange = this._onDidChange.event;
|
|
1149
1149
|
this._disposables = this._register(( new MutableDisposable()));
|
|
1150
|
-
this._dropdownAction = ( new Action('scmInputMoreActions', ( localize(
|
|
1150
|
+
this._dropdownAction = ( new Action('scmInputMoreActions', ( localize(8579, "More Actions...")), 'codicon-chevron-down'));
|
|
1151
1151
|
this._cancelAction = ( new MenuItemAction({
|
|
1152
1152
|
id: SCMInputWidgetCommandId.CancelAction,
|
|
1153
|
-
title: ( localize(
|
|
1153
|
+
title: ( localize(8580, "Cancel")),
|
|
1154
1154
|
icon: Codicon.stopCircle,
|
|
1155
1155
|
}, undefined, undefined, undefined, undefined, contextKeyService, commandService));
|
|
1156
1156
|
}
|
|
@@ -1597,7 +1597,7 @@ let SCMInputWidget = class SCMInputWidget {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
const actionsContainer = append(validationContainer, $('.scm-editor-validation-actions'));
|
|
1599
1599
|
const actionbar = ( new ActionBar(actionsContainer));
|
|
1600
|
-
const action = ( new Action('scmInputWidget.validationMessage.close', ( localize(
|
|
1600
|
+
const action = ( new Action('scmInputWidget.validationMessage.close', ( localize(8581, "Close")), ThemeIcon.asClassName(Codicon.close), true, () => {
|
|
1601
1601
|
this.contextViewService.hideContextView();
|
|
1602
1602
|
this.element.style.borderBottomLeftRadius = '2px';
|
|
1603
1603
|
this.element.style.borderBottomRightRadius = '2px';
|
|
@@ -14,7 +14,7 @@ import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
14
14
|
import { getProviderKey } from '@codingame/monaco-vscode-be8ddbb5-094a-5657-b1cc-fe106c94c632-common/vscode/vs/workbench/contrib/scm/browser/util';
|
|
15
15
|
import { ISCMService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
16
16
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
17
|
-
import { Parts } from '@codingame/monaco-vscode-
|
|
17
|
+
import { Parts } from '@codingame/monaco-vscode-e7080bda-ce3e-5243-9a35-98cd9634dbda-common/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
18
18
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
19
19
|
|
|
20
20
|
let SCMWorkingSetController = class SCMWorkingSetController extends Disposable {
|