@codingame/monaco-vscode-scm-service-override 21.5.1 → 22.0.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 +15 -14
- package/vscode/src/vs/workbench/contrib/scm/browser/activity.js +7 -7
- package/vscode/src/vs/workbench/contrib/scm/browser/menus.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffDecorator.js +3 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/quickDiffWidget.js +13 -13
- package/vscode/src/vs/workbench/contrib/scm/browser/scm.contribution.js +116 -84
- package/vscode/src/vs/workbench/contrib/scm/browser/scmAccessibilityHelp.js +23 -23
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryViewPane.js +104 -88
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoriesViewPane.js +3 -3
- package/vscode/src/vs/workbench/contrib/scm/browser/scmRepositoryRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPane.js +30 -32
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewPaneContainer.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/scmViewService.js +1 -1
- package/vscode/src/vs/workbench/contrib/scm/browser/workingSet.js +1 -1
|
@@ -6,7 +6,7 @@ import { QuickDiffWorkbenchController } from './quickDiffDecorator.js';
|
|
|
6
6
|
import { VIEWLET_ID, VIEW_PANE_ID, HISTORY_VIEW_PANE_ID, REPOSITORIES_VIEW_PANE_ID } from '@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common/vscode/vs/workbench/contrib/scm/common/scm';
|
|
7
7
|
import { ISCMService, ISCMViewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/scm/common/scm.service';
|
|
8
8
|
import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
9
|
-
import { MenuRegistry, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
9
|
+
import { MenuRegistry, MenuId, registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
10
10
|
import { SCMActiveRepositoryController, SCMActiveResourceContextKeyController } from './activity.js';
|
|
11
11
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
12
12
|
import { Extensions as Extensions$2, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
@@ -35,7 +35,7 @@ import { SCMWorkingSetController } from './workingSet.js';
|
|
|
35
35
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
36
36
|
import { WorkbenchList } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
37
37
|
import { IListService } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService.service';
|
|
38
|
-
import { isSCMRepository } from '@codingame/monaco-vscode-
|
|
38
|
+
import { isSCMRepository } from '@codingame/monaco-vscode-5084de40-f866-5cb5-9d9b-33a10f6f235d-common/vscode/vs/workbench/contrib/scm/browser/util';
|
|
39
39
|
import { SCMHistoryViewPane } from './scmHistoryViewPane.js';
|
|
40
40
|
import './quickDiffModel.js';
|
|
41
41
|
import { QuickDiffEditorController } from './quickDiffWidget.js';
|
|
@@ -44,7 +44,10 @@ import { RemoteNameContext } from '@codingame/monaco-vscode-api/vscode/vs/workbe
|
|
|
44
44
|
import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
45
45
|
import { SCMAccessibilityHelp } from './scmAccessibilityHelp.js';
|
|
46
46
|
import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
|
|
47
|
-
import { SCMHistoryItemContextContribution } from '@codingame/monaco-vscode-
|
|
47
|
+
import { SCMHistoryItemContextContribution } from '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/scm/browser/scmHistoryChatContext';
|
|
48
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
49
|
+
import { CHAT_SETUP_SUPPORT_ANONYMOUS_ACTION_ID } from '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
50
|
+
import product from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/product';
|
|
48
51
|
|
|
49
52
|
ModesRegistry.registerLanguage({
|
|
50
53
|
id: 'scminput',
|
|
@@ -55,10 +58,10 @@ ModesRegistry.registerLanguage({
|
|
|
55
58
|
( Registry.as(Extensions.Workbench))
|
|
56
59
|
.registerWorkbenchContribution(QuickDiffWorkbenchController, LifecyclePhase.Restored);
|
|
57
60
|
registerEditorContribution(QuickDiffEditorController.ID, QuickDiffEditorController, EditorContributionInstantiation.AfterFirstRender);
|
|
58
|
-
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(
|
|
61
|
+
const sourceControlViewIcon = registerIcon('source-control-view-icon', Codicon.sourceControl, ( localize(10003, 'View icon of the Source Control view.')));
|
|
59
62
|
const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).registerViewContainer({
|
|
60
63
|
id: VIEWLET_ID,
|
|
61
|
-
title: ( localize2(
|
|
64
|
+
title: ( localize2(10004, 'Source Control')),
|
|
62
65
|
ctorDescriptor: ( new SyncDescriptor(SCMViewPaneContainer)),
|
|
63
66
|
storageId: 'workbench.scm.views.state',
|
|
64
67
|
icon: sourceControlViewIcon,
|
|
@@ -67,25 +70,25 @@ const viewContainer = ( Registry.as(Extensions$1.ViewContainersRegistry)).regist
|
|
|
67
70
|
hideIfEmpty: true,
|
|
68
71
|
}, ViewContainerLocation.Sidebar, { doNotRegisterOpenCommand: true });
|
|
69
72
|
const viewsRegistry = ( Registry.as(Extensions$1.ViewsRegistry));
|
|
70
|
-
const containerTitle = ( localize(
|
|
73
|
+
const containerTitle = ( localize(10005, "Source Control"));
|
|
71
74
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
72
|
-
content: ( localize(
|
|
75
|
+
content: ( localize(10006, "No source control providers registered.")),
|
|
73
76
|
when: 'default'
|
|
74
77
|
});
|
|
75
78
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
76
79
|
content: ( localize(
|
|
77
|
-
|
|
80
|
+
10007,
|
|
78
81
|
"None of the registered source control providers work in Restricted Mode."
|
|
79
82
|
)),
|
|
80
83
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scm.providerCount', 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
81
84
|
});
|
|
82
85
|
viewsRegistry.registerViewWelcomeContent(VIEW_PANE_ID, {
|
|
83
|
-
content: `[${( localize(
|
|
86
|
+
content: `[${( localize(10008, "Manage Workspace Trust"))}](command:${MANAGE_TRUST_COMMAND_ID})`,
|
|
84
87
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scm.providerCount', 0)), WorkspaceTrustContext.IsEnabled, ( WorkspaceTrustContext.IsTrusted.toNegated())))
|
|
85
88
|
});
|
|
86
89
|
viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
87
90
|
content: ( localize(
|
|
88
|
-
|
|
91
|
+
10009,
|
|
89
92
|
"The selected source control provider does not have any source control history items."
|
|
90
93
|
)),
|
|
91
94
|
when: ( ContextKeys.SCMHistoryItemCount.isEqualTo(0))
|
|
@@ -93,8 +96,8 @@ viewsRegistry.registerViewWelcomeContent(HISTORY_VIEW_PANE_ID, {
|
|
|
93
96
|
viewsRegistry.registerViews([{
|
|
94
97
|
id: REPOSITORIES_VIEW_PANE_ID,
|
|
95
98
|
containerTitle,
|
|
96
|
-
name: ( localize2(
|
|
97
|
-
singleViewPaneContainerTitle: ( localize(
|
|
99
|
+
name: ( localize2(10010, "Repositories")),
|
|
100
|
+
singleViewPaneContainerTitle: ( localize(10011, "Source Control Repositories")),
|
|
98
101
|
ctorDescriptor: ( new SyncDescriptor(SCMRepositoriesViewPane)),
|
|
99
102
|
canToggleVisibility: true,
|
|
100
103
|
hideByDefault: true,
|
|
@@ -107,7 +110,7 @@ viewsRegistry.registerViews([{
|
|
|
107
110
|
viewsRegistry.registerViews([{
|
|
108
111
|
id: VIEW_PANE_ID,
|
|
109
112
|
containerTitle,
|
|
110
|
-
name: ( localize2(
|
|
113
|
+
name: ( localize2(10012, 'Changes')),
|
|
111
114
|
singleViewPaneContainerTitle: containerTitle,
|
|
112
115
|
ctorDescriptor: ( new SyncDescriptor(SCMViewPane)),
|
|
113
116
|
canToggleVisibility: true,
|
|
@@ -117,7 +120,7 @@ viewsRegistry.registerViews([{
|
|
|
117
120
|
containerIcon: sourceControlViewIcon,
|
|
118
121
|
openCommandActionDescriptor: {
|
|
119
122
|
id: viewContainer.id,
|
|
120
|
-
mnemonicTitle: ( localize(
|
|
123
|
+
mnemonicTitle: ( localize(10013, "Source &&Control")),
|
|
121
124
|
keybindings: {
|
|
122
125
|
primary: 0,
|
|
123
126
|
win: { primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.KeyG },
|
|
@@ -130,8 +133,8 @@ viewsRegistry.registerViews([{
|
|
|
130
133
|
viewsRegistry.registerViews([{
|
|
131
134
|
id: HISTORY_VIEW_PANE_ID,
|
|
132
135
|
containerTitle,
|
|
133
|
-
name: ( localize2(
|
|
134
|
-
singleViewPaneContainerTitle: ( localize(
|
|
136
|
+
name: ( localize2(10014, "Graph")),
|
|
137
|
+
singleViewPaneContainerTitle: ( localize(10015, "Source Control Graph")),
|
|
135
138
|
ctorDescriptor: ( new SyncDescriptor(SCMHistoryViewPane)),
|
|
136
139
|
canToggleVisibility: true,
|
|
137
140
|
canMoveView: true,
|
|
@@ -149,7 +152,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
149
152
|
( Registry.as(Extensions$2.Configuration)).registerConfiguration({
|
|
150
153
|
id: 'scm',
|
|
151
154
|
order: 5,
|
|
152
|
-
title: ( localize(
|
|
155
|
+
title: ( localize(10016, "Source Control")),
|
|
153
156
|
type: 'object',
|
|
154
157
|
scope: ConfigurationScope.RESOURCE,
|
|
155
158
|
properties: {
|
|
@@ -157,21 +160,21 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
157
160
|
type: 'string',
|
|
158
161
|
enum: ['all', 'gutter', 'overview', 'minimap', 'none'],
|
|
159
162
|
enumDescriptions: [
|
|
160
|
-
( localize(
|
|
161
|
-
( localize(
|
|
162
|
-
( localize(
|
|
163
|
-
( localize(
|
|
164
|
-
( localize(
|
|
163
|
+
( localize(10017, "Show the diff decorations in all available locations.")),
|
|
164
|
+
( localize(10018, "Show the diff decorations only in the editor gutter.")),
|
|
165
|
+
( localize(10019, "Show the diff decorations only in the overview ruler.")),
|
|
166
|
+
( localize(10020, "Show the diff decorations only in the minimap.")),
|
|
167
|
+
( localize(10021, "Do not show the diff decorations."))
|
|
165
168
|
],
|
|
166
169
|
default: 'all',
|
|
167
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(10022, "Controls diff decorations in the editor."))
|
|
168
171
|
},
|
|
169
172
|
'scm.diffDecorationsGutterWidth': {
|
|
170
173
|
type: 'number',
|
|
171
174
|
enum: [1, 2, 3, 4, 5],
|
|
172
175
|
default: 3,
|
|
173
176
|
description: ( localize(
|
|
174
|
-
|
|
177
|
+
10023,
|
|
175
178
|
"Controls the width(px) of diff decorations in gutter (added & modified)."
|
|
176
179
|
))
|
|
177
180
|
},
|
|
@@ -179,11 +182,11 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
179
182
|
type: 'string',
|
|
180
183
|
enum: ['always', 'hover'],
|
|
181
184
|
enumDescriptions: [
|
|
182
|
-
( localize(
|
|
183
|
-
( localize(
|
|
185
|
+
( localize(10024, "Show the diff decorator in the gutter at all times.")),
|
|
186
|
+
( localize(10025, "Show the diff decorator in the gutter only on hover."))
|
|
184
187
|
],
|
|
185
188
|
description: ( localize(
|
|
186
|
-
|
|
189
|
+
10026,
|
|
187
190
|
"Controls the visibility of the Source Control diff decorator in the gutter."
|
|
188
191
|
)),
|
|
189
192
|
default: 'always'
|
|
@@ -192,27 +195,30 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
192
195
|
type: 'string',
|
|
193
196
|
enum: ['diff', 'none'],
|
|
194
197
|
enumDescriptions: [
|
|
195
|
-
( localize(
|
|
196
|
-
( localize(
|
|
198
|
+
( localize(10027, "Show the inline diff Peek view on click.")),
|
|
199
|
+
( localize(10028, "Do nothing."))
|
|
197
200
|
],
|
|
198
|
-
description: ( localize(
|
|
201
|
+
description: ( localize(10029, "Controls the behavior of Source Control diff gutter decorations.")),
|
|
199
202
|
default: 'diff'
|
|
200
203
|
},
|
|
201
204
|
'scm.diffDecorationsGutterPattern': {
|
|
202
205
|
type: 'object',
|
|
203
206
|
description: ( localize(
|
|
204
|
-
|
|
207
|
+
10030,
|
|
205
208
|
"Controls whether a pattern is used for the diff decorations in gutter."
|
|
206
209
|
)),
|
|
207
210
|
additionalProperties: false,
|
|
208
211
|
properties: {
|
|
209
212
|
'added': {
|
|
210
213
|
type: 'boolean',
|
|
211
|
-
description: ( localize(
|
|
214
|
+
description: ( localize(10031, "Use pattern for the diff decorations in gutter for added lines.")),
|
|
212
215
|
},
|
|
213
216
|
'modified': {
|
|
214
217
|
type: 'boolean',
|
|
215
|
-
description: ( localize(
|
|
218
|
+
description: ( localize(
|
|
219
|
+
10032,
|
|
220
|
+
"Use pattern for the diff decorations in gutter for modified lines."
|
|
221
|
+
)),
|
|
216
222
|
},
|
|
217
223
|
},
|
|
218
224
|
default: {
|
|
@@ -224,12 +230,12 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
224
230
|
type: 'string',
|
|
225
231
|
enum: ['true', 'false', 'inherit'],
|
|
226
232
|
enumDescriptions: [
|
|
227
|
-
( localize(
|
|
228
|
-
( localize(
|
|
229
|
-
( localize(
|
|
233
|
+
( localize(10033, "Ignore leading and trailing whitespace.")),
|
|
234
|
+
( localize(10034, "Do not ignore leading and trailing whitespace.")),
|
|
235
|
+
( localize(10035, "Inherit from `diffEditor.ignoreTrimWhitespace`."))
|
|
230
236
|
],
|
|
231
237
|
description: ( localize(
|
|
232
|
-
|
|
238
|
+
10036,
|
|
233
239
|
"Controls whether leading and trailing whitespace is ignored in Source Control diff gutter decorations."
|
|
234
240
|
)),
|
|
235
241
|
default: 'false'
|
|
@@ -237,7 +243,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
237
243
|
'scm.alwaysShowActions': {
|
|
238
244
|
type: 'boolean',
|
|
239
245
|
description: ( localize(
|
|
240
|
-
|
|
246
|
+
10037,
|
|
241
247
|
"Controls whether inline actions are always visible in the Source Control view."
|
|
242
248
|
)),
|
|
243
249
|
default: false
|
|
@@ -246,12 +252,12 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
246
252
|
type: 'string',
|
|
247
253
|
enum: ['all', 'focused', 'off'],
|
|
248
254
|
enumDescriptions: [
|
|
249
|
-
( localize(
|
|
250
|
-
( localize(
|
|
251
|
-
( localize(
|
|
255
|
+
( localize(10038, "Show the sum of all Source Control Provider count badges.")),
|
|
256
|
+
( localize(10039, "Show the count badge of the focused Source Control Provider.")),
|
|
257
|
+
( localize(10040, "Disable the Source Control count badge."))
|
|
252
258
|
],
|
|
253
259
|
description: ( localize(
|
|
254
|
-
|
|
260
|
+
10041,
|
|
255
261
|
"Controls the count badge on the Source Control icon on the Activity Bar."
|
|
256
262
|
)),
|
|
257
263
|
default: 'all'
|
|
@@ -260,12 +266,12 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
260
266
|
type: 'string',
|
|
261
267
|
enum: ['hidden', 'auto', 'visible'],
|
|
262
268
|
enumDescriptions: [
|
|
263
|
-
( localize(
|
|
264
|
-
( localize(
|
|
265
|
-
( localize(
|
|
269
|
+
( localize(10042, "Hide Source Control Provider count badges.")),
|
|
270
|
+
( localize(10043, "Only show count badge for Source Control Provider when non-zero.")),
|
|
271
|
+
( localize(10044, "Show Source Control Provider count badges."))
|
|
266
272
|
],
|
|
267
273
|
markdownDescription: ( localize(
|
|
268
|
-
|
|
274
|
+
10045,
|
|
269
275
|
"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
276
|
'\`#scm.alwaysShowRepositories#\`'
|
|
271
277
|
)),
|
|
@@ -275,22 +281,22 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
275
281
|
type: 'string',
|
|
276
282
|
enum: ['tree', 'list'],
|
|
277
283
|
enumDescriptions: [
|
|
278
|
-
( localize(
|
|
279
|
-
( localize(
|
|
284
|
+
( localize(10046, "Show the repository changes as a tree.")),
|
|
285
|
+
( localize(10047, "Show the repository changes as a list."))
|
|
280
286
|
],
|
|
281
|
-
description: ( localize(
|
|
287
|
+
description: ( localize(10048, "Controls the default Source Control repository view mode.")),
|
|
282
288
|
default: 'list'
|
|
283
289
|
},
|
|
284
290
|
'scm.defaultViewSortKey': {
|
|
285
291
|
type: 'string',
|
|
286
292
|
enum: ['name', 'path', 'status'],
|
|
287
293
|
enumDescriptions: [
|
|
288
|
-
( localize(
|
|
289
|
-
( localize(
|
|
290
|
-
( localize(
|
|
294
|
+
( localize(10049, "Sort the repository changes by file name.")),
|
|
295
|
+
( localize(10050, "Sort the repository changes by path.")),
|
|
296
|
+
( localize(10051, "Sort the repository changes by Source Control status."))
|
|
291
297
|
],
|
|
292
298
|
description: ( localize(
|
|
293
|
-
|
|
299
|
+
10052,
|
|
294
300
|
"Controls the default Source Control repository changes sort order when viewed as a list."
|
|
295
301
|
)),
|
|
296
302
|
default: 'path'
|
|
@@ -298,7 +304,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
298
304
|
'scm.autoReveal': {
|
|
299
305
|
type: 'boolean',
|
|
300
306
|
description: ( localize(
|
|
301
|
-
|
|
307
|
+
10053,
|
|
302
308
|
"Controls whether the Source Control view should automatically reveal and select files when opening them."
|
|
303
309
|
)),
|
|
304
310
|
default: true
|
|
@@ -306,20 +312,20 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
306
312
|
'scm.inputFontFamily': {
|
|
307
313
|
type: 'string',
|
|
308
314
|
markdownDescription: ( localize(
|
|
309
|
-
|
|
315
|
+
10054,
|
|
310
316
|
"Controls the font for the input message. Use `default` for the workbench user interface font family, `editor` for the `#editor.fontFamily#`'s value, or a custom font family."
|
|
311
317
|
)),
|
|
312
318
|
default: 'default'
|
|
313
319
|
},
|
|
314
320
|
'scm.inputFontSize': {
|
|
315
321
|
type: 'number',
|
|
316
|
-
markdownDescription: ( localize(
|
|
322
|
+
markdownDescription: ( localize(10055, "Controls the font size for the input message in pixels.")),
|
|
317
323
|
default: 13
|
|
318
324
|
},
|
|
319
325
|
'scm.inputMaxLineCount': {
|
|
320
326
|
type: 'number',
|
|
321
327
|
markdownDescription: ( localize(
|
|
322
|
-
|
|
328
|
+
10056,
|
|
323
329
|
"Controls the maximum number of lines that the input will auto-grow to."
|
|
324
330
|
)),
|
|
325
331
|
minimum: 1,
|
|
@@ -329,7 +335,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
329
335
|
'scm.inputMinLineCount': {
|
|
330
336
|
type: 'number',
|
|
331
337
|
markdownDescription: ( localize(
|
|
332
|
-
|
|
338
|
+
10057,
|
|
333
339
|
"Controls the minimum number of lines that the input will auto-grow from."
|
|
334
340
|
)),
|
|
335
341
|
minimum: 1,
|
|
@@ -339,7 +345,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
339
345
|
'scm.alwaysShowRepositories': {
|
|
340
346
|
type: 'boolean',
|
|
341
347
|
markdownDescription: ( localize(
|
|
342
|
-
|
|
348
|
+
10058,
|
|
343
349
|
"Controls whether repositories should always be visible in the Source Control view."
|
|
344
350
|
)),
|
|
345
351
|
default: false
|
|
@@ -349,20 +355,20 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
349
355
|
enum: ['discovery time', 'name', 'path'],
|
|
350
356
|
enumDescriptions: [
|
|
351
357
|
( localize(
|
|
352
|
-
|
|
358
|
+
10059,
|
|
353
359
|
"Repositories in the Source Control Repositories view are sorted by discovery time. Repositories in the Source Control view are sorted in the order that they were selected."
|
|
354
360
|
)),
|
|
355
361
|
( localize(
|
|
356
|
-
|
|
362
|
+
10060,
|
|
357
363
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository name."
|
|
358
364
|
)),
|
|
359
365
|
( localize(
|
|
360
|
-
|
|
366
|
+
10061,
|
|
361
367
|
"Repositories in the Source Control Repositories and Source Control views are sorted by repository path."
|
|
362
368
|
))
|
|
363
369
|
],
|
|
364
370
|
description: ( localize(
|
|
365
|
-
|
|
371
|
+
10062,
|
|
366
372
|
"Controls the sort order of the repositories in the source control repositories view."
|
|
367
373
|
)),
|
|
368
374
|
default: 'discovery time'
|
|
@@ -370,7 +376,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
370
376
|
'scm.repositories.visible': {
|
|
371
377
|
type: 'number',
|
|
372
378
|
description: ( localize(
|
|
373
|
-
|
|
379
|
+
10063,
|
|
374
380
|
"Controls how many repositories are visible in the Source Control Repositories section. Set to 0, to be able to manually resize the view."
|
|
375
381
|
)),
|
|
376
382
|
default: 10
|
|
@@ -378,7 +384,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
378
384
|
'scm.showActionButton': {
|
|
379
385
|
type: 'boolean',
|
|
380
386
|
markdownDescription: ( localize(
|
|
381
|
-
|
|
387
|
+
10064,
|
|
382
388
|
"Controls whether an action button can be shown in the Source Control view."
|
|
383
389
|
)),
|
|
384
390
|
default: true
|
|
@@ -386,7 +392,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
386
392
|
'scm.showInputActionButton': {
|
|
387
393
|
type: 'boolean',
|
|
388
394
|
markdownDescription: ( localize(
|
|
389
|
-
|
|
395
|
+
10065,
|
|
390
396
|
"Controls whether an action button can be shown in the Source Control input."
|
|
391
397
|
)),
|
|
392
398
|
default: true
|
|
@@ -394,7 +400,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
394
400
|
'scm.workingSets.enabled': {
|
|
395
401
|
type: 'boolean',
|
|
396
402
|
description: ( localize(
|
|
397
|
-
|
|
403
|
+
10066,
|
|
398
404
|
"Controls whether to store editor working sets when switching between source control history item groups."
|
|
399
405
|
)),
|
|
400
406
|
default: false
|
|
@@ -404,16 +410,16 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
404
410
|
enum: ['empty', 'current'],
|
|
405
411
|
enumDescriptions: [
|
|
406
412
|
( localize(
|
|
407
|
-
|
|
413
|
+
10067,
|
|
408
414
|
"Use an empty working set when switching to a source control history item group that does not have a working set."
|
|
409
415
|
)),
|
|
410
416
|
( localize(
|
|
411
|
-
|
|
417
|
+
10068,
|
|
412
418
|
"Use the current working set when switching to a source control history item group that does not have a working set."
|
|
413
419
|
))
|
|
414
420
|
],
|
|
415
421
|
description: ( localize(
|
|
416
|
-
|
|
422
|
+
10069,
|
|
417
423
|
"Controls the default working set to use when switching to a source control history item group that does not have a working set."
|
|
418
424
|
)),
|
|
419
425
|
default: 'current'
|
|
@@ -421,7 +427,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
421
427
|
'scm.compactFolders': {
|
|
422
428
|
type: 'boolean',
|
|
423
429
|
description: ( localize(
|
|
424
|
-
|
|
430
|
+
10070,
|
|
425
431
|
"Controls whether the Source Control view should render folders in a compact form. In such a form, single child folders will be compressed in a combined tree element."
|
|
426
432
|
)),
|
|
427
433
|
default: true
|
|
@@ -429,7 +435,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
429
435
|
'scm.graph.pageOnScroll': {
|
|
430
436
|
type: 'boolean',
|
|
431
437
|
description: ( localize(
|
|
432
|
-
|
|
438
|
+
10071,
|
|
433
439
|
"Controls whether the Source Control Graph view will load the next page of items when you scroll to the end of the list."
|
|
434
440
|
)),
|
|
435
441
|
default: true
|
|
@@ -437,7 +443,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
437
443
|
'scm.graph.pageSize': {
|
|
438
444
|
type: 'number',
|
|
439
445
|
description: ( localize(
|
|
440
|
-
|
|
446
|
+
10072,
|
|
441
447
|
"The number of items to show in the Source Control Graph view by default and when loading more items."
|
|
442
448
|
)),
|
|
443
449
|
minimum: 1,
|
|
@@ -449,16 +455,16 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
449
455
|
enum: ['all', 'filter'],
|
|
450
456
|
enumDescriptions: [
|
|
451
457
|
( localize(
|
|
452
|
-
|
|
458
|
+
10073,
|
|
453
459
|
"Show badges of all history item groups in the Source Control Graph view."
|
|
454
460
|
)),
|
|
455
461
|
( localize(
|
|
456
|
-
|
|
462
|
+
10074,
|
|
457
463
|
"Show only the badges of history item groups used as a filter in the Source Control Graph view."
|
|
458
464
|
))
|
|
459
465
|
],
|
|
460
466
|
description: ( localize(
|
|
461
|
-
|
|
467
|
+
10075,
|
|
462
468
|
"Controls which badges are shown in the Source Control Graph view. The badges are shown on the right side of the graph indicating the names of history item groups."
|
|
463
469
|
)),
|
|
464
470
|
default: 'filter'
|
|
@@ -467,7 +473,7 @@ registerWorkbenchContribution2(SCMHistoryItemContextContribution.ID, SCMHistoryI
|
|
|
467
473
|
});
|
|
468
474
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
469
475
|
id: 'scm.acceptInput',
|
|
470
|
-
metadata: { description: ( localize(
|
|
476
|
+
metadata: { description: ( localize(10076, "Source Control: Accept Input")), args: [] },
|
|
471
477
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
472
478
|
when: ( ContextKeyExpr.has('scmRepository')),
|
|
473
479
|
primary: KeyMod.CtrlCmd | KeyCode.Enter,
|
|
@@ -504,7 +510,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
504
510
|
}
|
|
505
511
|
});
|
|
506
512
|
const viewNextCommitCommand = {
|
|
507
|
-
description: { description: ( localize(
|
|
513
|
+
description: { description: ( localize(10077, "Source Control: View Next Commit")), args: [] },
|
|
508
514
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
509
515
|
handler: (accessor) => {
|
|
510
516
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -516,7 +522,7 @@ const viewNextCommitCommand = {
|
|
|
516
522
|
}
|
|
517
523
|
};
|
|
518
524
|
const viewPreviousCommitCommand = {
|
|
519
|
-
description: { description: ( localize(
|
|
525
|
+
description: { description: ( localize(10078, "Source Control: View Previous Commit")), args: [] },
|
|
520
526
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
521
527
|
handler: (accessor) => {
|
|
522
528
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -584,9 +590,9 @@ CommandsRegistry.registerCommand('scm.openInTerminal', async (accessor, provider
|
|
|
584
590
|
CommandsRegistry.registerCommand('scm.setActiveProvider', async (accessor) => {
|
|
585
591
|
const instantiationService = accessor.get(IInstantiationService);
|
|
586
592
|
const scmViewService = accessor.get(ISCMViewService);
|
|
587
|
-
const placeHolder = ( localize(
|
|
593
|
+
const placeHolder = ( localize(10079, "Select the active repository, type to filter all repositories"));
|
|
588
594
|
const autoQuickItemDescription = ( localize(
|
|
589
|
-
|
|
595
|
+
10080,
|
|
590
596
|
"The active repository is updated based on focused repository/active editor"
|
|
591
597
|
));
|
|
592
598
|
const repositoryPicker = instantiationService.createInstance(RepositoryPicker, placeHolder, autoQuickItemDescription);
|
|
@@ -600,7 +606,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
600
606
|
group: '99_terminal',
|
|
601
607
|
command: {
|
|
602
608
|
id: 'scm.openInTerminal',
|
|
603
|
-
title: ( localize(
|
|
609
|
+
title: ( localize(10081, "Open in External Terminal"))
|
|
604
610
|
},
|
|
605
611
|
when: ( ContextKeyExpr.and(( RemoteNameContext.isEqualTo('')), ( ContextKeyExpr.equals('scmProviderHasRootUri', true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'external')), ( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))))))
|
|
606
612
|
});
|
|
@@ -608,7 +614,7 @@ MenuRegistry.appendMenuItem(MenuId.SCMSourceControl, {
|
|
|
608
614
|
group: '99_terminal',
|
|
609
615
|
command: {
|
|
610
616
|
id: 'scm.openInIntegratedTerminal',
|
|
611
|
-
title: ( localize(
|
|
617
|
+
title: ( localize(10082, "Open in Integrated Terminal"))
|
|
612
618
|
},
|
|
613
619
|
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('scmProviderHasRootUri', true)), ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'integrated')), ( ContextKeyExpr.equals('config.terminal.sourceControlRepositoriesKind', 'both'))))))
|
|
614
620
|
});
|
|
@@ -659,9 +665,35 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
659
665
|
}
|
|
660
666
|
});
|
|
661
667
|
MenuRegistry.appendMenuItem(MenuId.EditorLineNumberContext, {
|
|
662
|
-
title: ( localize(
|
|
668
|
+
title: ( localize(10083, "Diff Decorations")),
|
|
663
669
|
submenu: MenuId.SCMQuickDiffDecorations,
|
|
664
670
|
when: ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.scm.diffDecorations', 'all')), ( ContextKeyExpr.equals('config.scm.diffDecorations', 'gutter')))),
|
|
665
671
|
group: '9_quickDiffDecorations'
|
|
666
672
|
});
|
|
673
|
+
registerAction2(class extends Action2 {
|
|
674
|
+
constructor() {
|
|
675
|
+
super({
|
|
676
|
+
id: 'scm.editor.triggerSetup',
|
|
677
|
+
title: ( localize(10084, "Resolve Conflicts with AI")),
|
|
678
|
+
icon: Codicon.chatSparkle,
|
|
679
|
+
f1: false,
|
|
680
|
+
menu: {
|
|
681
|
+
id: MenuId.EditorContent,
|
|
682
|
+
when: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ChatContextKeys.Setup.disabled.negate()), ( ChatContextKeys.Setup.installed.negate()), ( ContextKeyExpr.equals('git.activeResourceHasMergeConflicts', true))))
|
|
683
|
+
}
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
async run(accessor, ...args) {
|
|
687
|
+
const commandService = accessor.get(ICommandService);
|
|
688
|
+
const result = await commandService.executeCommand(CHAT_SETUP_SUPPORT_ANONYMOUS_ACTION_ID);
|
|
689
|
+
if (!result) {
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
const command = product.defaultChatAgent?.resolveMergeConflictsCommand;
|
|
693
|
+
if (!command) {
|
|
694
|
+
return;
|
|
695
|
+
}
|
|
696
|
+
await commandService.executeCommand(command, ...args);
|
|
697
|
+
}
|
|
698
|
+
});
|
|
667
699
|
AccessibleViewRegistry.register(( new SCMAccessibilityHelp()));
|