@codingame/monaco-vscode-view-common-service-override 14.0.3 → 14.0.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 +39 -39
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +12 -12
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +27 -27
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +9 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +8 -8
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-common service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,44 +15,44 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "14.0.
|
|
19
|
-
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "14.0.
|
|
20
|
-
"@codingame/monaco-vscode-0f5ced28-abde-558b-8652-db8e7d4d64aa-common": "14.0.
|
|
21
|
-
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "14.0.
|
|
22
|
-
"@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common": "14.0.
|
|
23
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "14.0.
|
|
24
|
-
"@codingame/monaco-vscode-44b92f80-48ea-5562-a8d0-18a015f8d845-common": "14.0.
|
|
25
|
-
"@codingame/monaco-vscode-464d4abe-0937-5367-af84-1b9279e14ea3-common": "14.0.
|
|
26
|
-
"@codingame/monaco-vscode-4a28f637-7c3c-5e48-a77c-1b7538b38850-common": "14.0.
|
|
27
|
-
"@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "14.0.
|
|
28
|
-
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "14.0.
|
|
29
|
-
"@codingame/monaco-vscode-55ed5668-e8ca-5335-a587-790bcf1200c0-common": "14.0.
|
|
30
|
-
"@codingame/monaco-vscode-5945a5e2-a66c-5a82-bd2c-1965724b29eb-common": "14.0.
|
|
31
|
-
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "14.0.
|
|
32
|
-
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "14.0.
|
|
33
|
-
"@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common": "14.0.
|
|
34
|
-
"@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common": "14.0.
|
|
35
|
-
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "14.0.
|
|
36
|
-
"@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "14.0.
|
|
37
|
-
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "14.0.
|
|
38
|
-
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "14.0.
|
|
39
|
-
"@codingame/monaco-vscode-91789cdf-e3cb-5a04-aaeb-6f7df7d3d231-common": "14.0.
|
|
40
|
-
"@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "14.0.
|
|
41
|
-
"@codingame/monaco-vscode-a17f5129-e16c-5dac-857e-dcd91bfeffa2-common": "14.0.
|
|
42
|
-
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "14.0.
|
|
43
|
-
"@codingame/monaco-vscode-api": "14.0.
|
|
44
|
-
"@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "14.0.
|
|
45
|
-
"@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common": "14.0.
|
|
46
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "14.0.
|
|
47
|
-
"@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common": "14.0.
|
|
48
|
-
"@codingame/monaco-vscode-ce8c4b18-4e75-55dd-9656-517347af9de7-common": "14.0.
|
|
49
|
-
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "14.0.
|
|
50
|
-
"@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "14.0.
|
|
51
|
-
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "14.0.
|
|
52
|
-
"@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "14.0.
|
|
53
|
-
"@codingame/monaco-vscode-eea37658-2307-56a5-8ed0-b2752c7b7a50-common": "14.0.
|
|
54
|
-
"@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "14.0.
|
|
55
|
-
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "14.0.
|
|
18
|
+
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "14.0.4",
|
|
19
|
+
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "14.0.4",
|
|
20
|
+
"@codingame/monaco-vscode-0f5ced28-abde-558b-8652-db8e7d4d64aa-common": "14.0.4",
|
|
21
|
+
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "14.0.4",
|
|
22
|
+
"@codingame/monaco-vscode-2cbab29e-9393-5de6-b701-9a9555360b6b-common": "14.0.4",
|
|
23
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "14.0.4",
|
|
24
|
+
"@codingame/monaco-vscode-44b92f80-48ea-5562-a8d0-18a015f8d845-common": "14.0.4",
|
|
25
|
+
"@codingame/monaco-vscode-464d4abe-0937-5367-af84-1b9279e14ea3-common": "14.0.4",
|
|
26
|
+
"@codingame/monaco-vscode-4a28f637-7c3c-5e48-a77c-1b7538b38850-common": "14.0.4",
|
|
27
|
+
"@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "14.0.4",
|
|
28
|
+
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "14.0.4",
|
|
29
|
+
"@codingame/monaco-vscode-55ed5668-e8ca-5335-a587-790bcf1200c0-common": "14.0.4",
|
|
30
|
+
"@codingame/monaco-vscode-5945a5e2-a66c-5a82-bd2c-1965724b29eb-common": "14.0.4",
|
|
31
|
+
"@codingame/monaco-vscode-65619f8f-0eab-5d8b-855a-43b6353fe527-common": "14.0.4",
|
|
32
|
+
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "14.0.4",
|
|
33
|
+
"@codingame/monaco-vscode-7443a901-21f6-577a-9674-42893b997ee0-common": "14.0.4",
|
|
34
|
+
"@codingame/monaco-vscode-771c2e6d-0284-5ac1-be73-7176085eedc5-common": "14.0.4",
|
|
35
|
+
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "14.0.4",
|
|
36
|
+
"@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "14.0.4",
|
|
37
|
+
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "14.0.4",
|
|
38
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "14.0.4",
|
|
39
|
+
"@codingame/monaco-vscode-91789cdf-e3cb-5a04-aaeb-6f7df7d3d231-common": "14.0.4",
|
|
40
|
+
"@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "14.0.4",
|
|
41
|
+
"@codingame/monaco-vscode-a17f5129-e16c-5dac-857e-dcd91bfeffa2-common": "14.0.4",
|
|
42
|
+
"@codingame/monaco-vscode-a7c9ae3c-16d2-5d17-86b2-981be7094566-common": "14.0.4",
|
|
43
|
+
"@codingame/monaco-vscode-api": "14.0.4",
|
|
44
|
+
"@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common": "14.0.4",
|
|
45
|
+
"@codingame/monaco-vscode-bd6ad8b7-9db3-51a8-9895-0046508c029d-common": "14.0.4",
|
|
46
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "14.0.4",
|
|
47
|
+
"@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common": "14.0.4",
|
|
48
|
+
"@codingame/monaco-vscode-ce8c4b18-4e75-55dd-9656-517347af9de7-common": "14.0.4",
|
|
49
|
+
"@codingame/monaco-vscode-d0fb86d3-2a47-594e-955b-9a24631a7124-common": "14.0.4",
|
|
50
|
+
"@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "14.0.4",
|
|
51
|
+
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "14.0.4",
|
|
52
|
+
"@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "14.0.4",
|
|
53
|
+
"@codingame/monaco-vscode-eea37658-2307-56a5-8ed0-b2752c7b7a50-common": "14.0.4",
|
|
54
|
+
"@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common": "14.0.4",
|
|
55
|
+
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "14.0.4"
|
|
56
56
|
},
|
|
57
57
|
"main": "index.js",
|
|
58
58
|
"module": "index.js",
|
|
@@ -32,7 +32,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
32
32
|
this.add(( new CustomEditorInfo({
|
|
33
33
|
id: webviewEditorContribution.viewType,
|
|
34
34
|
displayName: webviewEditorContribution.displayName,
|
|
35
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
35
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(5083, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
36
36
|
selector: webviewEditorContribution.selector || [],
|
|
37
37
|
priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
|
|
38
38
|
})));
|
|
@@ -6,7 +6,7 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from '@
|
|
|
6
6
|
|
|
7
7
|
const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( new RawContextKey('activeCustomEditorId', '', {
|
|
8
8
|
type: 'string',
|
|
9
|
-
description: ( localize(
|
|
9
|
+
description: ( localize(5084, "The viewType of the currently active custom editor.")),
|
|
10
10
|
}));
|
|
11
11
|
const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( new RawContextKey('focusedCustomEditorIsEditable', false));
|
|
12
12
|
var CustomEditorPriority;
|
|
@@ -16,7 +16,7 @@ const Fields = ( Object.freeze({
|
|
|
16
16
|
priority: 'priority',
|
|
17
17
|
}));
|
|
18
18
|
const CustomEditorsContribution = {
|
|
19
|
-
description: ( localize(
|
|
19
|
+
description: ( localize(5086, 'Contributed custom editors.')),
|
|
20
20
|
type: 'array',
|
|
21
21
|
defaultSnippets: [{
|
|
22
22
|
body: [{
|
|
@@ -38,20 +38,20 @@ const CustomEditorsContribution = {
|
|
|
38
38
|
[Fields.viewType]: {
|
|
39
39
|
type: 'string',
|
|
40
40
|
markdownDescription: ( localize(
|
|
41
|
-
|
|
41
|
+
5087,
|
|
42
42
|
'Identifier for the custom editor. This must be unique across all custom editors, so we recommend including your extension id as part of `viewType`. The `viewType` is used when registering custom editors with `vscode.registerCustomEditorProvider` and in the `onCustomEditor:${id}` [activation event](https://code.visualstudio.com/api/references/activation-events).'
|
|
43
43
|
)),
|
|
44
44
|
},
|
|
45
45
|
[Fields.displayName]: {
|
|
46
46
|
type: 'string',
|
|
47
47
|
description: ( localize(
|
|
48
|
-
|
|
48
|
+
5088,
|
|
49
49
|
'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'
|
|
50
50
|
)),
|
|
51
51
|
},
|
|
52
52
|
[Fields.selector]: {
|
|
53
53
|
type: 'array',
|
|
54
|
-
description: ( localize(
|
|
54
|
+
description: ( localize(5089, 'Set of globs that the custom editor is enabled for.')),
|
|
55
55
|
items: {
|
|
56
56
|
type: 'object',
|
|
57
57
|
defaultSnippets: [{
|
|
@@ -62,7 +62,7 @@ const CustomEditorsContribution = {
|
|
|
62
62
|
properties: {
|
|
63
63
|
filenamePattern: {
|
|
64
64
|
type: 'string',
|
|
65
|
-
description: ( localize(
|
|
65
|
+
description: ( localize(5090, 'Glob that the custom editor is enabled for.')),
|
|
66
66
|
},
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -70,7 +70,7 @@ const CustomEditorsContribution = {
|
|
|
70
70
|
[Fields.priority]: {
|
|
71
71
|
type: 'string',
|
|
72
72
|
markdownDeprecationMessage: ( localize(
|
|
73
|
-
|
|
73
|
+
5091,
|
|
74
74
|
'Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting.'
|
|
75
75
|
)),
|
|
76
76
|
enum: [
|
|
@@ -79,11 +79,11 @@ const CustomEditorsContribution = {
|
|
|
79
79
|
],
|
|
80
80
|
markdownEnumDescriptions: [
|
|
81
81
|
( localize(
|
|
82
|
-
|
|
82
|
+
5092,
|
|
83
83
|
'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
|
|
84
84
|
)),
|
|
85
85
|
( localize(
|
|
86
|
-
|
|
86
|
+
5093,
|
|
87
87
|
'The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command.'
|
|
88
88
|
)),
|
|
89
89
|
],
|
|
@@ -119,9 +119,9 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
119
119
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
120
120
|
}
|
|
121
121
|
const headers = [
|
|
122
|
-
( localize(
|
|
123
|
-
( localize(
|
|
124
|
-
( localize(
|
|
122
|
+
( localize(5094, "View Type")),
|
|
123
|
+
( localize(5095, "Priority")),
|
|
124
|
+
( localize(5096, "Filename Pattern")),
|
|
125
125
|
];
|
|
126
126
|
const rows = ( customEditors
|
|
127
127
|
.map(customEditor => {
|
|
@@ -142,7 +142,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
142
142
|
}
|
|
143
143
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
144
144
|
id: 'customEditors',
|
|
145
|
-
label: ( localize(
|
|
145
|
+
label: ( localize(5097, "Custom Editors")),
|
|
146
146
|
access: {
|
|
147
147
|
canToggle: false
|
|
148
148
|
},
|
|
@@ -178,8 +178,8 @@ let LanguageStatus = class LanguageStatus {
|
|
|
178
178
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
179
179
|
}
|
|
180
180
|
const props = {
|
|
181
|
-
name: ( localize(
|
|
182
|
-
ariaLabel: ( localize(
|
|
181
|
+
name: ( localize(7099, "Editor Language Status")),
|
|
182
|
+
ariaLabel: ( localize(7100, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
|
|
183
183
|
tooltip: this._combinedEntryTooltip,
|
|
184
184
|
command: ShowTooltipCommand,
|
|
185
185
|
text: isOneBusy ? '$(loading~spin)' : text,
|
|
@@ -278,7 +278,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
278
278
|
}, { hoverDelegate: nativeHoverDelegate }, this._hoverService, this._openerService)));
|
|
279
279
|
}
|
|
280
280
|
const actionBar = ( new ActionBar(right, { hoverDelegate: nativeHoverDelegate }));
|
|
281
|
-
const actionLabel = isPinned ? ( localize(
|
|
281
|
+
const actionLabel = isPinned ? ( localize(7101, "Remove from Status Bar")) : ( localize(7102, "Add to Status Bar"));
|
|
282
282
|
actionBar.setAriaLabel(actionLabel);
|
|
283
283
|
store.add(actionBar);
|
|
284
284
|
let action;
|
|
@@ -333,10 +333,10 @@ let LanguageStatus = class LanguageStatus {
|
|
|
333
333
|
}
|
|
334
334
|
const textValue = typeof status.label === 'string' ? status.label : status.label.value;
|
|
335
335
|
if (status.detail) {
|
|
336
|
-
return { label: ( localize(
|
|
336
|
+
return { label: ( localize(7103, '{0}, {1}', textValue, status.detail)) };
|
|
337
337
|
}
|
|
338
338
|
else {
|
|
339
|
-
return { label: ( localize(
|
|
339
|
+
return { label: ( localize(7104, '{0}', textValue)) };
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
static _asStatusbarEntry(item) {
|
|
@@ -349,7 +349,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
349
349
|
}
|
|
350
350
|
const textValue = typeof item.label === 'string' ? item.label : item.label.shortValue;
|
|
351
351
|
return {
|
|
352
|
-
name: ( localize(
|
|
352
|
+
name: ( localize(7105, '{0} (Language Status)', item.name)),
|
|
353
353
|
text: computeText(textValue, item.busy),
|
|
354
354
|
ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
|
|
355
355
|
role: item.accessibilityInfo?.role,
|
|
@@ -371,7 +371,7 @@ class ResetAction extends Action2 {
|
|
|
371
371
|
constructor() {
|
|
372
372
|
super({
|
|
373
373
|
id: 'editor.inlayHints.Reset',
|
|
374
|
-
title: ( localize2(
|
|
374
|
+
title: ( localize2(7106, "Reset Language Status Interaction Counter")),
|
|
375
375
|
category: Categories.View,
|
|
376
376
|
f1: true
|
|
377
377
|
});
|
package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js
CHANGED
|
@@ -13,7 +13,7 @@ import { FoldingController } from '@codingame/monaco-vscode-api/vscode/vs/editor
|
|
|
13
13
|
import { ColorDetector } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/colorPicker/browser/colorDetector';
|
|
14
14
|
|
|
15
15
|
const openSettingsCommand = 'workbench.action.openSettings';
|
|
16
|
-
const configureSettingsLabel = ( localize(
|
|
16
|
+
const configureSettingsLabel = ( localize(7107, "Configure"));
|
|
17
17
|
let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
|
|
18
18
|
constructor(editorService, languageStatusService) {
|
|
19
19
|
super();
|
|
@@ -41,9 +41,9 @@ LimitIndicatorContribution = ( __decorate([
|
|
|
41
41
|
class ColorDecorationAccessor {
|
|
42
42
|
constructor() {
|
|
43
43
|
this.id = 'decoratorsLimitInfo';
|
|
44
|
-
this.name = ( localize(
|
|
45
|
-
this.label = ( localize(
|
|
46
|
-
this.source = ( localize(
|
|
44
|
+
this.name = ( localize(7108, 'Color Decorator Status'));
|
|
45
|
+
this.label = ( localize(7109, 'Color Decorators'));
|
|
46
|
+
this.source = ( localize(7110, 'Color Decorators'));
|
|
47
47
|
this.settingsId = 'editor.colorDecoratorsLimit';
|
|
48
48
|
}
|
|
49
49
|
getLimitReporter(editor) {
|
|
@@ -53,9 +53,9 @@ class ColorDecorationAccessor {
|
|
|
53
53
|
class FoldingRangeAccessor {
|
|
54
54
|
constructor() {
|
|
55
55
|
this.id = 'foldingLimitInfo';
|
|
56
|
-
this.name = ( localize(
|
|
57
|
-
this.label = ( localize(
|
|
58
|
-
this.source = ( localize(
|
|
56
|
+
this.name = ( localize(7111, 'Folding Status'));
|
|
57
|
+
this.label = ( localize(7112, 'Folding Ranges'));
|
|
58
|
+
this.source = ( localize(7113, 'Folding'));
|
|
59
59
|
this.settingsId = 'editor.foldingMaximumRegions';
|
|
60
60
|
}
|
|
61
61
|
getLimitReporter(editor) {
|
|
@@ -97,7 +97,7 @@ class LanguageStatusEntry {
|
|
|
97
97
|
name: this.accessor.name,
|
|
98
98
|
severity: Severity.Warning,
|
|
99
99
|
label: this.accessor.label,
|
|
100
|
-
detail: ( localize(
|
|
100
|
+
detail: ( localize(7114, 'only {0} shown for performance reasons', info.limited)),
|
|
101
101
|
command: { id: openSettingsCommand, arguments: [this.accessor.settingsId], title: configureSettingsLabel },
|
|
102
102
|
accessibilityInfo: undefined,
|
|
103
103
|
source: this.accessor.source,
|
|
@@ -56,7 +56,7 @@ class OpenMergeEditor extends Action2 {
|
|
|
56
56
|
constructor() {
|
|
57
57
|
super({
|
|
58
58
|
id: '_open.mergeEditor',
|
|
59
|
-
title: ( localize2(
|
|
59
|
+
title: ( localize2(7304, 'Open Merge Editor')),
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
run(accessor, ...args) {
|
|
@@ -127,7 +127,7 @@ class SetMixedLayout extends Action2 {
|
|
|
127
127
|
constructor() {
|
|
128
128
|
super({
|
|
129
129
|
id: 'merge.mixedLayout',
|
|
130
|
-
title: ( localize2(
|
|
130
|
+
title: ( localize2(7305, "Mixed Layout")),
|
|
131
131
|
toggled: ( ctxMergeEditorLayout.isEqualTo('mixed')),
|
|
132
132
|
menu: [
|
|
133
133
|
{
|
|
@@ -151,7 +151,7 @@ class SetColumnLayout extends Action2 {
|
|
|
151
151
|
constructor() {
|
|
152
152
|
super({
|
|
153
153
|
id: 'merge.columnLayout',
|
|
154
|
-
title: ( localize2(
|
|
154
|
+
title: ( localize2(7306, 'Column Layout')),
|
|
155
155
|
toggled: ( ctxMergeEditorLayout.isEqualTo('columns')),
|
|
156
156
|
menu: [{
|
|
157
157
|
id: MenuId.EditorTitle,
|
|
@@ -173,7 +173,7 @@ class ShowNonConflictingChanges extends Action2 {
|
|
|
173
173
|
constructor() {
|
|
174
174
|
super({
|
|
175
175
|
id: 'merge.showNonConflictingChanges',
|
|
176
|
-
title: ( localize2(
|
|
176
|
+
title: ( localize2(7307, "Show Non-Conflicting Changes")),
|
|
177
177
|
toggled: ( ctxMergeEditorShowNonConflictingChanges.isEqualTo(true)),
|
|
178
178
|
menu: [
|
|
179
179
|
{
|
|
@@ -197,7 +197,7 @@ class ShowHideBase extends Action2 {
|
|
|
197
197
|
constructor() {
|
|
198
198
|
super({
|
|
199
199
|
id: 'merge.showBase',
|
|
200
|
-
title: ( localize2(
|
|
200
|
+
title: ( localize2(7308, "Show Base")),
|
|
201
201
|
toggled: ( ctxMergeEditorShowBase.isEqualTo(true)),
|
|
202
202
|
menu: [
|
|
203
203
|
{
|
|
@@ -220,7 +220,7 @@ class ShowHideTopBase extends Action2 {
|
|
|
220
220
|
constructor() {
|
|
221
221
|
super({
|
|
222
222
|
id: 'merge.showBaseTop',
|
|
223
|
-
title: ( localize2(
|
|
223
|
+
title: ( localize2(7309, "Show Base Top")),
|
|
224
224
|
toggled: ( ContextKeyExpr.and(ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop)),
|
|
225
225
|
menu: [
|
|
226
226
|
{
|
|
@@ -243,7 +243,7 @@ class ShowHideCenterBase extends Action2 {
|
|
|
243
243
|
constructor() {
|
|
244
244
|
super({
|
|
245
245
|
id: 'merge.showBaseCenter',
|
|
246
|
-
title: ( localize2(
|
|
246
|
+
title: ( localize2(7310, "Show Base Center")),
|
|
247
247
|
toggled: ( ContextKeyExpr.and(ctxMergeEditorShowBase, ( ctxMergeEditorShowBaseAtTop.negate()))),
|
|
248
248
|
menu: [
|
|
249
249
|
{
|
|
@@ -262,13 +262,13 @@ class ShowHideCenterBase extends Action2 {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
const mergeEditorCategory = ( localize2(
|
|
265
|
+
const mergeEditorCategory = ( localize2(7311, "Merge Editor"));
|
|
266
266
|
class OpenResultResource extends MergeEditorAction {
|
|
267
267
|
constructor() {
|
|
268
268
|
super({
|
|
269
269
|
id: 'merge.openResult',
|
|
270
270
|
icon: Codicon.goToFile,
|
|
271
|
-
title: ( localize2(
|
|
271
|
+
title: ( localize2(7312, "Open File")),
|
|
272
272
|
category: mergeEditorCategory,
|
|
273
273
|
menu: [{
|
|
274
274
|
id: MenuId.EditorTitle,
|
|
@@ -289,7 +289,7 @@ class GoToNextUnhandledConflict extends MergeEditorAction {
|
|
|
289
289
|
super({
|
|
290
290
|
id: 'merge.goToNextUnhandledConflict',
|
|
291
291
|
category: mergeEditorCategory,
|
|
292
|
-
title: ( localize2(
|
|
292
|
+
title: ( localize2(7313, "Go to Next Unhandled Conflict")),
|
|
293
293
|
icon: Codicon.arrowDown,
|
|
294
294
|
menu: [
|
|
295
295
|
{
|
|
@@ -313,7 +313,7 @@ class GoToPreviousUnhandledConflict extends MergeEditorAction {
|
|
|
313
313
|
super({
|
|
314
314
|
id: 'merge.goToPreviousUnhandledConflict',
|
|
315
315
|
category: mergeEditorCategory,
|
|
316
|
-
title: ( localize2(
|
|
316
|
+
title: ( localize2(7314, "Go to Previous Unhandled Conflict")),
|
|
317
317
|
icon: Codicon.arrowUp,
|
|
318
318
|
menu: [
|
|
319
319
|
{
|
|
@@ -337,7 +337,7 @@ class ToggleActiveConflictInput1 extends MergeEditorAction {
|
|
|
337
337
|
super({
|
|
338
338
|
id: 'merge.toggleActiveConflictInput1',
|
|
339
339
|
category: mergeEditorCategory,
|
|
340
|
-
title: ( localize2(
|
|
340
|
+
title: ( localize2(7315, "Toggle Current Conflict from Left")),
|
|
341
341
|
f1: true,
|
|
342
342
|
precondition: ctxIsMergeEditor,
|
|
343
343
|
});
|
|
@@ -351,7 +351,7 @@ class ToggleActiveConflictInput2 extends MergeEditorAction {
|
|
|
351
351
|
super({
|
|
352
352
|
id: 'merge.toggleActiveConflictInput2',
|
|
353
353
|
category: mergeEditorCategory,
|
|
354
|
-
title: ( localize2(
|
|
354
|
+
title: ( localize2(7316, "Toggle Current Conflict from Right")),
|
|
355
355
|
f1: true,
|
|
356
356
|
precondition: ctxIsMergeEditor,
|
|
357
357
|
});
|
|
@@ -365,8 +365,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
|
|
|
365
365
|
super({
|
|
366
366
|
id: 'mergeEditor.compareInput1WithBase',
|
|
367
367
|
category: mergeEditorCategory,
|
|
368
|
-
title: ( localize2(
|
|
369
|
-
shortTitle: ( localize(
|
|
368
|
+
title: ( localize2(7317, "Compare Input 1 With Base")),
|
|
369
|
+
shortTitle: ( localize(7318, 'Compare With Base')),
|
|
370
370
|
f1: true,
|
|
371
371
|
precondition: ctxIsMergeEditor,
|
|
372
372
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -383,8 +383,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
|
|
|
383
383
|
super({
|
|
384
384
|
id: 'mergeEditor.compareInput2WithBase',
|
|
385
385
|
category: mergeEditorCategory,
|
|
386
|
-
title: ( localize2(
|
|
387
|
-
shortTitle: ( localize(
|
|
386
|
+
title: ( localize2(7319, "Compare Input 2 With Base")),
|
|
387
|
+
shortTitle: ( localize(7318, 'Compare With Base')),
|
|
388
388
|
f1: true,
|
|
389
389
|
precondition: ctxIsMergeEditor,
|
|
390
390
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -420,7 +420,7 @@ class OpenBaseFile extends MergeEditorAction {
|
|
|
420
420
|
super({
|
|
421
421
|
id: 'merge.openBaseEditor',
|
|
422
422
|
category: mergeEditorCategory,
|
|
423
|
-
title: ( localize2(
|
|
423
|
+
title: ( localize2(7320, "Open Base File")),
|
|
424
424
|
f1: true,
|
|
425
425
|
precondition: ctxIsMergeEditor,
|
|
426
426
|
});
|
|
@@ -435,7 +435,7 @@ class AcceptAllInput1 extends MergeEditorAction {
|
|
|
435
435
|
super({
|
|
436
436
|
id: 'merge.acceptAllInput1',
|
|
437
437
|
category: mergeEditorCategory,
|
|
438
|
-
title: ( localize2(
|
|
438
|
+
title: ( localize2(7321, "Accept All Changes from Left")),
|
|
439
439
|
f1: true,
|
|
440
440
|
precondition: ctxIsMergeEditor,
|
|
441
441
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -451,7 +451,7 @@ class AcceptAllInput2 extends MergeEditorAction {
|
|
|
451
451
|
super({
|
|
452
452
|
id: 'merge.acceptAllInput2',
|
|
453
453
|
category: mergeEditorCategory,
|
|
454
|
-
title: ( localize2(
|
|
454
|
+
title: ( localize2(7322, "Accept All Changes from Right")),
|
|
455
455
|
f1: true,
|
|
456
456
|
precondition: ctxIsMergeEditor,
|
|
457
457
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -467,8 +467,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
|
|
|
467
467
|
super({
|
|
468
468
|
id: 'mergeEditor.resetResultToBaseAndAutoMerge',
|
|
469
469
|
category: mergeEditorCategory,
|
|
470
|
-
title: ( localize2(
|
|
471
|
-
shortTitle: ( localize(
|
|
470
|
+
title: ( localize2(7323, "Reset Result")),
|
|
471
|
+
shortTitle: ( localize(7324, 'Reset')),
|
|
472
472
|
f1: true,
|
|
473
473
|
precondition: ctxIsMergeEditor,
|
|
474
474
|
menu: { id: MenuId.MergeInputResultToolbar, group: 'primary' },
|
|
@@ -484,7 +484,7 @@ class ResetCloseWithConflictsChoice extends Action2 {
|
|
|
484
484
|
super({
|
|
485
485
|
id: 'mergeEditor.resetCloseWithConflictsChoice',
|
|
486
486
|
category: mergeEditorCategory,
|
|
487
|
-
title: ( localize2(
|
|
487
|
+
title: ( localize2(7325, "Reset Choice for \'Close with Conflicts\'")),
|
|
488
488
|
f1: true,
|
|
489
489
|
});
|
|
490
490
|
}
|
|
@@ -497,7 +497,7 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
497
497
|
super({
|
|
498
498
|
id: 'mergeEditor.acceptMerge',
|
|
499
499
|
category: mergeEditorCategory,
|
|
500
|
-
title: ( localize2(
|
|
500
|
+
title: ( localize2(7326, "Complete Merge")),
|
|
501
501
|
f1: false,
|
|
502
502
|
precondition: ctxIsMergeEditor
|
|
503
503
|
});
|
|
@@ -508,12 +508,12 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
508
508
|
if (viewModel.model.unhandledConflictsCount.get() > 0) {
|
|
509
509
|
const { confirmed } = await dialogService.confirm({
|
|
510
510
|
message: ( localize(
|
|
511
|
-
|
|
511
|
+
7327,
|
|
512
512
|
"Do you want to complete the merge of {0}?",
|
|
513
513
|
basename(inputModel.resultUri)
|
|
514
514
|
)),
|
|
515
|
-
detail: ( localize(
|
|
516
|
-
primaryButton: ( localize(
|
|
515
|
+
detail: ( localize(7328, "The file contains unhandled conflicts.")),
|
|
516
|
+
primaryButton: ( localize(7329, "&&Complete with Conflicts"))
|
|
517
517
|
});
|
|
518
518
|
if (!confirmed) {
|
|
519
519
|
return {
|
|
@@ -14,13 +14,13 @@ import { MergeEditor } from '../view/mergeEditor.js';
|
|
|
14
14
|
import { ctxIsMergeEditor } from '@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor';
|
|
15
15
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
16
16
|
|
|
17
|
-
const MERGE_EDITOR_CATEGORY = ( localize2(
|
|
17
|
+
const MERGE_EDITOR_CATEGORY = ( localize2(7330, 'Merge Editor (Dev)'));
|
|
18
18
|
class MergeEditorCopyContentsToJSON extends Action2 {
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: 'merge.dev.copyContentsJson',
|
|
22
22
|
category: MERGE_EDITOR_CATEGORY,
|
|
23
|
-
title: ( localize2(
|
|
23
|
+
title: ( localize2(7331, "Copy Merge Editor State as JSON")),
|
|
24
24
|
icon: Codicon.layoutCentered,
|
|
25
25
|
f1: true,
|
|
26
26
|
precondition: ctxIsMergeEditor,
|
|
@@ -32,8 +32,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
|
|
|
32
32
|
const notificationService = accessor.get(INotificationService);
|
|
33
33
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
34
34
|
notificationService.info({
|
|
35
|
-
name: ( localize(
|
|
36
|
-
message: ( localize(
|
|
35
|
+
name: ( localize(7332, 'Merge Editor')),
|
|
36
|
+
message: ( localize(7333, "No active merge editor"))
|
|
37
37
|
});
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
@@ -52,8 +52,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
|
|
|
52
52
|
const jsonStr = JSON.stringify(contents, undefined, 4);
|
|
53
53
|
clipboardService.writeText(jsonStr);
|
|
54
54
|
notificationService.info({
|
|
55
|
-
name: ( localize(
|
|
56
|
-
message: ( localize(
|
|
55
|
+
name: ( localize(7332, 'Merge Editor')),
|
|
56
|
+
message: ( localize(7334, "Successfully copied merge editor state")),
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -62,7 +62,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
62
62
|
super({
|
|
63
63
|
id: 'merge.dev.saveContentsToFolder',
|
|
64
64
|
category: MERGE_EDITOR_CATEGORY,
|
|
65
|
-
title: ( localize2(
|
|
65
|
+
title: ( localize2(7335, "Save Merge Editor State to Folder")),
|
|
66
66
|
icon: Codicon.layoutCentered,
|
|
67
67
|
f1: true,
|
|
68
68
|
precondition: ctxIsMergeEditor,
|
|
@@ -76,8 +76,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
76
76
|
const languageService = accessor.get(ILanguageService);
|
|
77
77
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
78
78
|
notificationService.info({
|
|
79
|
-
name: ( localize(
|
|
80
|
-
message: ( localize(
|
|
79
|
+
name: ( localize(7332, 'Merge Editor')),
|
|
80
|
+
message: ( localize(7333, "No active merge editor"))
|
|
81
81
|
});
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
@@ -89,7 +89,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
89
89
|
canSelectFiles: false,
|
|
90
90
|
canSelectFolders: true,
|
|
91
91
|
canSelectMany: false,
|
|
92
|
-
title: ( localize(
|
|
92
|
+
title: ( localize(7336, 'Select folder to save to'))
|
|
93
93
|
});
|
|
94
94
|
if (!result) {
|
|
95
95
|
return;
|
|
@@ -107,8 +107,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
107
107
|
write('initialResult', model.getInitialResultValue()),
|
|
108
108
|
]);
|
|
109
109
|
notificationService.info({
|
|
110
|
-
name: ( localize(
|
|
111
|
-
message: ( localize(
|
|
110
|
+
name: ( localize(7332, 'Merge Editor')),
|
|
111
|
+
message: ( localize(7337, "Successfully saved merge editor state to folder")),
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -117,7 +117,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
117
117
|
super({
|
|
118
118
|
id: 'merge.dev.loadContentsFromFolder',
|
|
119
119
|
category: MERGE_EDITOR_CATEGORY,
|
|
120
|
-
title: ( localize2(
|
|
120
|
+
title: ( localize2(7338, "Load Merge Editor State from Folder")),
|
|
121
121
|
icon: Codicon.layoutCentered,
|
|
122
122
|
f1: true
|
|
123
123
|
});
|
|
@@ -136,7 +136,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
136
136
|
canSelectFiles: false,
|
|
137
137
|
canSelectFolders: true,
|
|
138
138
|
canSelectMany: false,
|
|
139
|
-
title: ( localize(
|
|
139
|
+
title: ( localize(7336, 'Select folder to save to'))
|
|
140
140
|
});
|
|
141
141
|
if (!result) {
|
|
142
142
|
return;
|
|
@@ -14,7 +14,7 @@ import { MergeEditor, MergeEditorOpenHandlerContribution, MergeEditorResolverCon
|
|
|
14
14
|
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
15
15
|
import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
16
16
|
|
|
17
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(
|
|
17
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(7339, "Merge Editor"))), [
|
|
18
18
|
( new SyncDescriptor(MergeEditorInput))
|
|
19
19
|
]);
|
|
20
20
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(MergeEditorInput.ID, MergeEditorSerializer);
|
|
@@ -25,8 +25,8 @@ import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
|
25
25
|
enum: ['legacy', 'advanced'],
|
|
26
26
|
default: 'advanced',
|
|
27
27
|
markdownEnumDescriptions: [
|
|
28
|
-
( localize(
|
|
29
|
-
( localize(
|
|
28
|
+
( localize(7340, "Uses the legacy diffing algorithm.")),
|
|
29
|
+
( localize(7341, "Uses the advanced diffing algorithm.")),
|
|
30
30
|
]
|
|
31
31
|
},
|
|
32
32
|
'mergeEditor.showDeletionMarkers': {
|