@codingame/monaco-vscode-view-common-service-override 7.1.0 → 8.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 +3 -3
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +80 -149
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +5 -7
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -8
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +24 -26
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +6 -14
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +4 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +161 -160
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +13 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +2 -8
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +3 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +3 -4
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +6 -7
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +19 -16
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +2 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +13 -14
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +6 -7
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +4 -5
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +2 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +2 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +18 -24
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -31
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +15 -16
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +4 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -15
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +26 -31
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +5 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +12 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +2 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +2 -7
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +15 -18
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +5 -8
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +11 -12
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +6 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +4 -5
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +13 -4
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +6 -7
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -3
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +10 -25
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +16 -27
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +8 -9
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +3 -4
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +2 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { registerAction2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
3
3
|
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
4
4
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
@@ -13,8 +13,7 @@ import { MergeEditor, MergeEditorOpenHandlerContribution, MergeEditorResolverCon
|
|
|
13
13
|
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
14
14
|
import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localizeWithPath(_moduleId, 0, "Merge Editor"))), [
|
|
16
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(4356, "Merge Editor"))), [
|
|
18
17
|
( (new SyncDescriptor(MergeEditorInput)))
|
|
19
18
|
]);
|
|
20
19
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(MergeEditorInput.ID, MergeEditorSerializer);
|
|
@@ -25,8 +24,8 @@ const _moduleId = "vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribu
|
|
|
25
24
|
enum: ['legacy', 'advanced'],
|
|
26
25
|
default: 'advanced',
|
|
27
26
|
markdownEnumDescriptions: [
|
|
28
|
-
(
|
|
29
|
-
(
|
|
27
|
+
( localize(4357, "Uses the legacy diffing algorithm.")),
|
|
28
|
+
( localize(4358, "Uses the advanced diffing algorithm.")),
|
|
30
29
|
]
|
|
31
30
|
},
|
|
32
31
|
'mergeEditor.showDeletionMarkers': {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { registerColor, transparent } from 'vscode/vscode/vs/platform/theme/common/colorUtils';
|
|
3
3
|
import 'vscode/vscode/vs/platform/theme/common/colors/baseColors';
|
|
4
4
|
import 'vscode/vscode/vs/platform/theme/common/colors/chartsColors';
|
|
@@ -11,20 +11,19 @@ import 'vscode/vscode/vs/platform/theme/common/colors/miscColors';
|
|
|
11
11
|
import 'vscode/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
12
12
|
import 'vscode/vscode/vs/platform/theme/common/colors/searchColors';
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
registerColor('mergeEditor.change.background', '#
|
|
16
|
-
registerColor('mergeEditor.
|
|
17
|
-
registerColor('mergeEditor.changeBase.background', { dark: '#
|
|
18
|
-
registerColor('mergeEditor.
|
|
19
|
-
registerColor('mergeEditor.conflict.
|
|
20
|
-
registerColor('mergeEditor.conflict.
|
|
21
|
-
registerColor('mergeEditor.conflict.
|
|
22
|
-
registerColor('mergeEditor.conflict.
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
registerColor('mergeEditor.conflictingLines.background', '#ffea0047', ( localizeWithPath(_moduleId, 10, 'The background of the "Conflicting Lines" text.')));
|
|
14
|
+
registerColor('mergeEditor.change.background', '#9bb95533', ( localize(11201, 'The background color for changes.')));
|
|
15
|
+
registerColor('mergeEditor.change.word.background', { dark: '#9ccc2c33', light: '#9ccc2c66', hcDark: '#9ccc2c33', hcLight: '#9ccc2c66', }, ( localize(11202, 'The background color for word changes.')));
|
|
16
|
+
registerColor('mergeEditor.changeBase.background', { dark: '#4B1818FF', light: '#FFCCCCFF', hcDark: '#4B1818FF', hcLight: '#FFCCCCFF', }, ( localize(11203, 'The background color for changes in base.')));
|
|
17
|
+
registerColor('mergeEditor.changeBase.word.background', { dark: '#6F1313FF', light: '#FFA3A3FF', hcDark: '#6F1313FF', hcLight: '#FFA3A3FF', }, ( localize(11204, 'The background color for word changes in base.')));
|
|
18
|
+
registerColor('mergeEditor.conflict.unhandledUnfocused.border', { dark: '#ffa6007a', light: '#ffa600FF', hcDark: '#ffa6007a', hcLight: '#ffa6007a', }, ( localize(11205, 'The border color of unhandled unfocused conflicts.')));
|
|
19
|
+
registerColor('mergeEditor.conflict.unhandledFocused.border', '#ffa600', ( localize(11206, 'The border color of unhandled focused conflicts.')));
|
|
20
|
+
registerColor('mergeEditor.conflict.handledUnfocused.border', '#86868649', ( localize(11207, 'The border color of handled unfocused conflicts.')));
|
|
21
|
+
registerColor('mergeEditor.conflict.handledFocused.border', '#c1c1c1cc', ( localize(11208, 'The border color of handled focused conflicts.')));
|
|
22
|
+
const handledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.handled.minimapOverViewRuler', '#adaca8ee', ( localize(11209, 'The foreground color for changes in input 1.')));
|
|
23
|
+
const unhandledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.unhandled.minimapOverViewRuler', '#fcba03FF', ( localize(11210, 'The foreground color for changes in input 1.')));
|
|
24
|
+
registerColor('mergeEditor.conflictingLines.background', '#ffea0047', ( localize(11211, 'The background of the "Conflicting Lines" text.')));
|
|
26
25
|
const contentTransparency = 0.4;
|
|
27
|
-
registerColor('mergeEditor.conflict.input1.background', ( (transparent(mergeCurrentHeaderBackground, contentTransparency))), (
|
|
28
|
-
registerColor('mergeEditor.conflict.input2.background', ( (transparent(mergeIncomingHeaderBackground, contentTransparency))), (
|
|
26
|
+
registerColor('mergeEditor.conflict.input1.background', ( (transparent(mergeCurrentHeaderBackground, contentTransparency))), ( localize(11212, 'The background color of decorations in input 1.')));
|
|
27
|
+
registerColor('mergeEditor.conflict.input2.background', ( (transparent(mergeIncomingHeaderBackground, contentTransparency))), ( localize(11213, 'The background color of decorations in input 2.')));
|
|
29
28
|
|
|
30
29
|
export { handledConflictMinimapOverViewRulerColor, unhandledConflictMinimapOverViewRulerColor };
|
|
@@ -9,11 +9,10 @@ import 'vscode/vscode/vs/base/common/observableInternal/utils';
|
|
|
9
9
|
import 'vscode/vscode/vs/base/common/cancellation';
|
|
10
10
|
import 'vscode/vscode/vs/base/common/arrays';
|
|
11
11
|
import { EditorOption, EDITOR_FONT_DEFAULTS } from 'vscode/vscode/vs/editor/common/config/editorOptions';
|
|
12
|
-
import {
|
|
12
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
13
13
|
import { ModifiedBaseRangeStateKind, ModifiedBaseRangeState } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange';
|
|
14
14
|
import { FixedZoneWidget } from './fixedZoneWidget.js';
|
|
15
15
|
|
|
16
|
-
const _moduleId = "vs/workbench/contrib/mergeEditor/browser/view/conflictActions";
|
|
17
16
|
class ConflictActionsFactory extends Disposable {
|
|
18
17
|
constructor(_editor) {
|
|
19
18
|
super();
|
|
@@ -86,16 +85,15 @@ class ActionsSource {
|
|
|
86
85
|
const result = [];
|
|
87
86
|
if (state.kind === ModifiedBaseRangeStateKind.unrecognized) {
|
|
88
87
|
result.push({
|
|
89
|
-
text: (
|
|
90
|
-
tooltip: (
|
|
88
|
+
text: ( localize(11483, "Manual Resolution")),
|
|
89
|
+
tooltip: ( localize(11484, "This conflict has been resolved manually.")),
|
|
91
90
|
});
|
|
92
91
|
}
|
|
93
92
|
else if (state.kind === ModifiedBaseRangeStateKind.base) {
|
|
94
93
|
result.push({
|
|
95
|
-
text: (
|
|
96
|
-
tooltip: (
|
|
97
|
-
|
|
98
|
-
3,
|
|
94
|
+
text: ( localize(11485, 'No Changes Accepted')),
|
|
95
|
+
tooltip: ( localize(
|
|
96
|
+
11486,
|
|
99
97
|
'The current resolution of this conflict equals the common ancestor of both the right and left changes.'
|
|
100
98
|
)),
|
|
101
99
|
});
|
|
@@ -117,20 +115,20 @@ class ActionsSource {
|
|
|
117
115
|
}
|
|
118
116
|
const stateToggles = [];
|
|
119
117
|
if (state.includesInput1) {
|
|
120
|
-
stateToggles.push(command((
|
|
118
|
+
stateToggles.push(command(( localize(11487, 'Remove {0}', model.input1.title)), async () => {
|
|
121
119
|
transaction((tx) => {
|
|
122
120
|
model.setState(modifiedBaseRange, state.withInputValue(1, false), true, tx);
|
|
123
121
|
model.telemetry.reportRemoveInvoked(1, state.includesInput(2));
|
|
124
122
|
});
|
|
125
|
-
}, (
|
|
123
|
+
}, ( localize(11488, 'Remove {0} from the result document.', model.input1.title))));
|
|
126
124
|
}
|
|
127
125
|
if (state.includesInput2) {
|
|
128
|
-
stateToggles.push(command((
|
|
126
|
+
stateToggles.push(command(( localize(11488, 'Remove {0}', model.input2.title)), async () => {
|
|
129
127
|
transaction((tx) => {
|
|
130
128
|
model.setState(modifiedBaseRange, state.withInputValue(2, false), true, tx);
|
|
131
129
|
model.telemetry.reportRemoveInvoked(2, state.includesInput(1));
|
|
132
130
|
});
|
|
133
|
-
}, (
|
|
131
|
+
}, ( localize(11488, 'Remove {0} from the result document.', model.input2.title))));
|
|
134
132
|
}
|
|
135
133
|
if (state.kind === ModifiedBaseRangeStateKind.both &&
|
|
136
134
|
state.firstInput === 2) {
|
|
@@ -138,14 +136,13 @@ class ActionsSource {
|
|
|
138
136
|
}
|
|
139
137
|
result.push(...stateToggles);
|
|
140
138
|
if (state.kind === ModifiedBaseRangeStateKind.unrecognized) {
|
|
141
|
-
result.push(command((
|
|
139
|
+
result.push(command(( localize(11489, 'Reset to base')), async () => {
|
|
142
140
|
transaction((tx) => {
|
|
143
141
|
model.setState(modifiedBaseRange, ModifiedBaseRangeState.base, true, tx);
|
|
144
142
|
model.telemetry.reportResetToBaseInvoked();
|
|
145
143
|
});
|
|
146
|
-
}, (
|
|
147
|
-
|
|
148
|
-
7,
|
|
144
|
+
}, ( localize(
|
|
145
|
+
11490,
|
|
149
146
|
'Reset this conflict to the common ancestor of both the right and left changes.'
|
|
150
147
|
))));
|
|
151
148
|
}
|
|
@@ -177,16 +174,16 @@ class ActionsSource {
|
|
|
177
174
|
const otherInputNumber = inputNumber === 1 ? 2 : 1;
|
|
178
175
|
if (state.kind !== ModifiedBaseRangeStateKind.unrecognized && !state.isInputIncluded(inputNumber)) {
|
|
179
176
|
if (!state.isInputIncluded(otherInputNumber) || !this.viewModel.shouldUseAppendInsteadOfAccept.read(reader)) {
|
|
180
|
-
result.push(command((
|
|
177
|
+
result.push(command(( localize(11491, "Accept {0}", inputData.title)), async () => {
|
|
181
178
|
transaction((tx) => {
|
|
182
179
|
model.setState(modifiedBaseRange, state.withInputValue(inputNumber, true, false), inputNumber, tx);
|
|
183
180
|
model.telemetry.reportAcceptInvoked(inputNumber, state.includesInput(otherInputNumber));
|
|
184
181
|
});
|
|
185
|
-
}, (
|
|
182
|
+
}, ( localize(11492, "Accept {0} in the result document.", inputData.title))));
|
|
186
183
|
if (modifiedBaseRange.canBeCombined) {
|
|
187
184
|
const commandName = modifiedBaseRange.isOrderRelevant
|
|
188
|
-
? (
|
|
189
|
-
: (
|
|
185
|
+
? ( localize(11493, "Accept Combination ({0} First)", inputData.title))
|
|
186
|
+
: ( localize(11494, "Accept Combination"));
|
|
190
187
|
result.push(command(commandName, async () => {
|
|
191
188
|
transaction((tx) => {
|
|
192
189
|
model.setState(modifiedBaseRange, ModifiedBaseRangeState.base
|
|
@@ -194,39 +191,37 @@ class ActionsSource {
|
|
|
194
191
|
.withInputValue(otherInputNumber, true, true), true, tx);
|
|
195
192
|
model.telemetry.reportSmartCombinationInvoked(state.includesInput(otherInputNumber));
|
|
196
193
|
});
|
|
197
|
-
}, (
|
|
198
|
-
|
|
199
|
-
12,
|
|
194
|
+
}, ( localize(
|
|
195
|
+
11495,
|
|
200
196
|
"Accept an automatic combination of both sides in the result document."
|
|
201
197
|
))));
|
|
202
198
|
}
|
|
203
199
|
}
|
|
204
200
|
else {
|
|
205
|
-
result.push(command((
|
|
201
|
+
result.push(command(( localize(11496, "Append {0}", inputData.title)), async () => {
|
|
206
202
|
transaction((tx) => {
|
|
207
203
|
model.setState(modifiedBaseRange, state.withInputValue(inputNumber, true, false), inputNumber, tx);
|
|
208
204
|
model.telemetry.reportAcceptInvoked(inputNumber, state.includesInput(otherInputNumber));
|
|
209
205
|
});
|
|
210
|
-
}, (
|
|
206
|
+
}, ( localize(11497, "Append {0} to the result document.", inputData.title))));
|
|
211
207
|
if (modifiedBaseRange.canBeCombined) {
|
|
212
|
-
result.push(command((
|
|
208
|
+
result.push(command(( localize(11498, "Accept Combination", inputData.title)), async () => {
|
|
213
209
|
transaction((tx) => {
|
|
214
210
|
model.setState(modifiedBaseRange, state.withInputValue(inputNumber, true, true), inputNumber, tx);
|
|
215
211
|
model.telemetry.reportSmartCombinationInvoked(state.includesInput(otherInputNumber));
|
|
216
212
|
});
|
|
217
|
-
}, (
|
|
218
|
-
|
|
219
|
-
12,
|
|
213
|
+
}, ( localize(
|
|
214
|
+
11498,
|
|
220
215
|
"Accept an automatic combination of both sides in the result document."
|
|
221
216
|
))));
|
|
222
217
|
}
|
|
223
218
|
}
|
|
224
219
|
if (!model.isInputHandled(modifiedBaseRange, inputNumber).read(reader)) {
|
|
225
|
-
result.push(command((
|
|
220
|
+
result.push(command(( localize(11499, 'Ignore')), async () => {
|
|
226
221
|
transaction((tx) => {
|
|
227
222
|
model.setInputHandled(modifiedBaseRange, inputNumber, true, tx);
|
|
228
223
|
});
|
|
229
|
-
}, (
|
|
224
|
+
}, ( localize(11500, "Don't take this side of the conflict."))));
|
|
230
225
|
}
|
|
231
226
|
}
|
|
232
227
|
return result;
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js
CHANGED
|
@@ -8,7 +8,7 @@ import { autorunWithStore, autorun } from 'vscode/vscode/vs/base/common/observab
|
|
|
8
8
|
import 'vscode/vscode/vs/base/common/observableInternal/utils';
|
|
9
9
|
import 'vscode/vscode/vs/base/common/cancellation';
|
|
10
10
|
import { MinimapPosition, OverviewRulerLane } from 'vscode/vscode/vs/editor/common/model';
|
|
11
|
-
import {
|
|
11
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
12
12
|
import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
13
13
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
14
14
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
@@ -17,7 +17,6 @@ import { handledConflictMinimapOverViewRulerColor, unhandledConflictMinimapOverV
|
|
|
17
17
|
import { EditorGutter } from '../editorGutter.js';
|
|
18
18
|
import { CodeEditorView, createSelectionsAutorun, TitleMenu } from './codeEditorView.js';
|
|
19
19
|
|
|
20
|
-
const _moduleId = "vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView";
|
|
21
20
|
let BaseCodeEditorView = class BaseCodeEditorView extends CodeEditorView {
|
|
22
21
|
constructor(viewModel, instantiationService, configurationService) {
|
|
23
22
|
super(instantiationService, viewModel, configurationService);
|
|
@@ -116,17 +115,16 @@ let BaseCodeEditorView = class BaseCodeEditorView extends CodeEditorView {
|
|
|
116
115
|
return;
|
|
117
116
|
}
|
|
118
117
|
this.editor.setModel(vm.model.base);
|
|
119
|
-
reset(this.htmlElements.title, ...renderLabelWithIcons((
|
|
118
|
+
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(11197, 'Base'))));
|
|
120
119
|
const baseShowDiffAgainst = vm.baseShowDiffAgainst.read(reader);
|
|
121
120
|
let node = undefined;
|
|
122
121
|
if (baseShowDiffAgainst) {
|
|
123
|
-
const label = (
|
|
124
|
-
|
|
125
|
-
1,
|
|
122
|
+
const label = ( localize(
|
|
123
|
+
11198,
|
|
126
124
|
'Comparing with {0}',
|
|
127
125
|
baseShowDiffAgainst === 1 ? vm.model.input1.title : vm.model.input2.title
|
|
128
126
|
));
|
|
129
|
-
const tooltip = (
|
|
127
|
+
const tooltip = ( localize(11199, 'Differences are highlighted with a background color.'));
|
|
130
128
|
node = h('span', { title: tooltip }, [label]).root;
|
|
131
129
|
}
|
|
132
130
|
reset(this.htmlElements.description, ...(node ? [node] : []));
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js
CHANGED
|
@@ -15,7 +15,7 @@ import 'vscode/vscode/vs/base/common/arrays';
|
|
|
15
15
|
import { noBreakWhitespace } from 'vscode/vscode/vs/base/common/strings';
|
|
16
16
|
import { isDefined } from 'vscode/vscode/vs/base/common/types';
|
|
17
17
|
import { MinimapPosition, OverviewRulerLane } from 'vscode/vscode/vs/editor/common/model';
|
|
18
|
-
import {
|
|
18
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
19
19
|
import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
20
20
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
21
21
|
import { IContextMenuService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
@@ -27,7 +27,6 @@ import { handledConflictMinimapOverViewRulerColor, unhandledConflictMinimapOverV
|
|
|
27
27
|
import { EditorGutter } from '../editorGutter.js';
|
|
28
28
|
import { CodeEditorView, createSelectionsAutorun, TitleMenu } from './codeEditorView.js';
|
|
29
29
|
|
|
30
|
-
const _moduleId = "vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView";
|
|
31
30
|
let InputCodeEditorView = class InputCodeEditorView extends CodeEditorView {
|
|
32
31
|
constructor(inputNumber, viewModel, instantiationService, contextMenuService, configurationService) {
|
|
33
32
|
super(instantiationService, viewModel, configurationService);
|
|
@@ -160,8 +159,8 @@ let InputCodeEditorView = class InputCodeEditorView extends CodeEditorView {
|
|
|
160
159
|
}
|
|
161
160
|
this.editor.setModel(this.inputNumber === 1 ? vm.model.input1.textModel : vm.model.input2.textModel);
|
|
162
161
|
const title = this.inputNumber === 1
|
|
163
|
-
? vm.model.input1.title || (
|
|
164
|
-
: vm.model.input2.title || (
|
|
162
|
+
? vm.model.input1.title || ( localize(11214, 'Input 1'))
|
|
163
|
+
: vm.model.input2.title || ( localize(11215, 'Input 2'));
|
|
165
164
|
const description = this.inputNumber === 1
|
|
166
165
|
? vm.model.input1.description
|
|
167
166
|
: vm.model.input2.description;
|
|
@@ -243,19 +242,19 @@ class ModifiedBaseRangeGutterItemModel {
|
|
|
243
242
|
const both = state.includesInput1 && state.includesInput2;
|
|
244
243
|
return [
|
|
245
244
|
this.baseRange.input1Diffs.length > 0
|
|
246
|
-
? action('mergeEditor.acceptInput1', (
|
|
245
|
+
? action('mergeEditor.acceptInput1', ( localize(11216, 'Accept {0}', this.model.input1.title)), state.toggle(1), state.includesInput1)
|
|
247
246
|
: undefined,
|
|
248
247
|
this.baseRange.input2Diffs.length > 0
|
|
249
|
-
? action('mergeEditor.acceptInput2', (
|
|
248
|
+
? action('mergeEditor.acceptInput2', ( localize(11216, 'Accept {0}', this.model.input2.title)), state.toggle(2), state.includesInput2)
|
|
250
249
|
: undefined,
|
|
251
250
|
this.baseRange.isConflicting
|
|
252
|
-
? setFields(action('mergeEditor.acceptBoth', (
|
|
251
|
+
? setFields(action('mergeEditor.acceptBoth', ( localize(11217, 'Accept Both')), state.withInputValue(1, !both).withInputValue(2, !both), both), { enabled: this.baseRange.canBeCombined })
|
|
253
252
|
: undefined,
|
|
254
253
|
( (new Separator())),
|
|
255
254
|
this.baseRange.isConflicting
|
|
256
|
-
? setFields(action('mergeEditor.swap', (
|
|
255
|
+
? setFields(action('mergeEditor.swap', ( localize(11218, 'Swap')), state.swap(), false), { enabled: !state.kind && (!both || this.baseRange.isOrderRelevant) })
|
|
257
256
|
: undefined,
|
|
258
|
-
setFields(( (new Action('mergeEditor.markAsHandled', (
|
|
257
|
+
setFields(( (new Action('mergeEditor.markAsHandled', ( localize(11219, 'Mark as Handled')), undefined, true, () => {
|
|
259
258
|
transaction((tx) => {
|
|
260
259
|
this.model.setHandled(this.baseRange, !handled, tx);
|
|
261
260
|
});
|
|
@@ -298,10 +297,10 @@ class MergeConflictGutterItemView extends Disposable {
|
|
|
298
297
|
const item = this.item.read(reader);
|
|
299
298
|
const value = item.toggleState.read(reader);
|
|
300
299
|
const iconMap = {
|
|
301
|
-
[InputState.excluded]: { icon: undefined, checked: false, title: (
|
|
302
|
-
[InputState.unrecognized]: { icon: Codicon.circleFilled, checked: false, title: (
|
|
303
|
-
[InputState.first]: { icon: Codicon.check, checked: true, title: (
|
|
304
|
-
[InputState.second]: { icon: Codicon.checkAll, checked: true, title: (
|
|
300
|
+
[InputState.excluded]: { icon: undefined, checked: false, title: ( localize(11220, "Accept")) },
|
|
301
|
+
[InputState.unrecognized]: { icon: Codicon.circleFilled, checked: false, title: ( localize(11221, "Accept (result is dirty)")) },
|
|
302
|
+
[InputState.first]: { icon: Codicon.check, checked: true, title: ( localize(11222, "Undo accept")) },
|
|
303
|
+
[InputState.second]: { icon: Codicon.checkAll, checked: true, title: ( localize(11223, "Undo accept (currently second)")) },
|
|
305
304
|
};
|
|
306
305
|
const state = iconMap[value];
|
|
307
306
|
checkBox.setIcon(state.icon);
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js
CHANGED
|
@@ -10,7 +10,7 @@ import { autorunWithStore, autorun } from 'vscode/vscode/vs/base/common/observab
|
|
|
10
10
|
import 'vscode/vscode/vs/base/common/observableInternal/utils';
|
|
11
11
|
import 'vscode/vscode/vs/base/common/cancellation';
|
|
12
12
|
import { MinimapPosition, OverviewRulerLane } from 'vscode/vscode/vs/editor/common/model';
|
|
13
|
-
import {
|
|
13
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
14
14
|
import { MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
15
15
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
16
16
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
@@ -23,7 +23,6 @@ import { EditorGutter } from '../editorGutter.js';
|
|
|
23
23
|
import { ctxIsMergeResultEditor } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor';
|
|
24
24
|
import { CodeEditorView, createSelectionsAutorun, TitleMenu } from './codeEditorView.js';
|
|
25
25
|
|
|
26
|
-
const _moduleId = "vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView";
|
|
27
26
|
let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
28
27
|
constructor(viewModel, instantiationService, _labelService, configurationService) {
|
|
29
28
|
super(instantiationService, viewModel, configurationService);
|
|
@@ -132,7 +131,7 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
132
131
|
return;
|
|
133
132
|
}
|
|
134
133
|
this.editor.setModel(vm.model.resultTextModel);
|
|
135
|
-
reset(this.htmlElements.title, ...renderLabelWithIcons((
|
|
134
|
+
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(11224, 'Result'))));
|
|
136
135
|
reset(this.htmlElements.description, ...renderLabelWithIcons(this._labelService.getUriLabel(vm.model.resultTextModel.uri, { relative: true })));
|
|
137
136
|
}));
|
|
138
137
|
const remainingConflictsActionBar = this._register(( (new ActionBar(this.htmlElements.detail))));
|
|
@@ -147,8 +146,8 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
147
146
|
}
|
|
148
147
|
const count = model.unhandledConflictsCount.read(reader);
|
|
149
148
|
const text = count === 1
|
|
150
|
-
? (
|
|
151
|
-
: (
|
|
149
|
+
? ( localize(11225, '{0} Conflict Remaining', count))
|
|
150
|
+
: ( localize(11226, '{0} Conflicts Remaining ', count));
|
|
152
151
|
remainingConflictsActionBar.clear();
|
|
153
152
|
remainingConflictsActionBar.push({
|
|
154
153
|
class: undefined,
|
|
@@ -160,8 +159,8 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
160
159
|
vm.goToNextModifiedBaseRange(m => !model.isHandled(m).get());
|
|
161
160
|
},
|
|
162
161
|
tooltip: count > 0
|
|
163
|
-
? (
|
|
164
|
-
: (
|
|
162
|
+
? ( localize(11227, 'Go to next conflict'))
|
|
163
|
+
: ( localize(11228, 'All conflicts handled, the merge can be completed now.')),
|
|
165
164
|
});
|
|
166
165
|
}));
|
|
167
166
|
this._register(applyObservableDecorations(this.editor, this.decorations));
|
|
@@ -18,7 +18,7 @@ import './media/mergeEditor.css.js';
|
|
|
18
18
|
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
19
19
|
import { ScrollType } from 'vscode/vscode/vs/editor/common/editorCommon';
|
|
20
20
|
import { ITextResourceConfigurationService } from 'vscode/vscode/vs/editor/common/services/textResourceConfiguration';
|
|
21
|
-
import {
|
|
21
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
22
22
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
23
23
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
24
24
|
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
@@ -51,7 +51,6 @@ import { Orientation } from 'vscode/vscode/vs/base/browser/ui/sash/sash';
|
|
|
51
51
|
import { AbstractTextEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/textEditor';
|
|
52
52
|
|
|
53
53
|
var MergeEditor_1, MergeEditorLayoutStore_1;
|
|
54
|
-
const _moduleId = "vs/workbench/contrib/mergeEditor/browser/view/mergeEditor";
|
|
55
54
|
let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
56
55
|
static { MergeEditor_1 = this; }
|
|
57
56
|
static { this.ID = 'mergeEditor'; }
|
|
@@ -127,7 +126,7 @@ let MergeEditor = class MergeEditor extends AbstractTextEditor {
|
|
|
127
126
|
if (this.input) {
|
|
128
127
|
return this.input.getName();
|
|
129
128
|
}
|
|
130
|
-
return (
|
|
129
|
+
return ( localize(9776, "Text Merge Editor"));
|
|
131
130
|
}
|
|
132
131
|
createEditorControl(parent, initialOptions) {
|
|
133
132
|
this.rootHtmlElement = parent;
|
|
@@ -9,13 +9,12 @@ import 'vscode/vscode/vs/base/common/cancellation';
|
|
|
9
9
|
import 'vscode/vscode/vs/base/common/arrays';
|
|
10
10
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
11
11
|
import { ScrollType } from 'vscode/vscode/vs/editor/common/editorCommon';
|
|
12
|
-
import {
|
|
12
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
13
13
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
14
14
|
import { INotificationService } from 'vscode/vscode/vs/platform/notification/common/notification.service';
|
|
15
15
|
import { LineRange } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
|
|
16
16
|
import { observableConfigValue } from 'vscode/vscode/vs/platform/observable/common/platformObservableUtils';
|
|
17
17
|
|
|
18
|
-
const _moduleId = "vs/workbench/contrib/mergeEditor/browser/view/viewModel";
|
|
19
18
|
let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
|
|
20
19
|
constructor(model, inputCodeEditorView1, inputCodeEditorView2, resultCodeEditorView, baseCodeEditorView, showNonConflictingChanges, configurationService, notificationService) {
|
|
21
20
|
super();
|
|
@@ -206,11 +205,7 @@ let MergeEditorViewModel = class MergeEditorViewModel extends Disposable {
|
|
|
206
205
|
toggleActiveConflict(inputNumber) {
|
|
207
206
|
const activeModifiedBaseRange = this.activeModifiedBaseRange.get();
|
|
208
207
|
if (!activeModifiedBaseRange) {
|
|
209
|
-
this.notificationService.error((
|
|
210
|
-
_moduleId,
|
|
211
|
-
0,
|
|
212
|
-
"There is currently no conflict focused that can be toggled."
|
|
213
|
-
)));
|
|
208
|
+
this.notificationService.error(( localize(11200, "There is currently no conflict focused that can be toggled.")));
|
|
214
209
|
return;
|
|
215
210
|
}
|
|
216
211
|
transaction(tx => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
-
import {
|
|
2
|
+
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
4
4
|
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
5
5
|
import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
@@ -16,7 +16,6 @@ import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.servi
|
|
|
16
16
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
17
17
|
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
18
18
|
|
|
19
|
-
const _moduleId = "vs/workbench/contrib/preferences/browser/keyboardLayoutPicker";
|
|
20
19
|
let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution extends Disposable {
|
|
21
20
|
static { this.ID = 'workbench.contrib.keyboardLayoutPicker'; }
|
|
22
21
|
constructor(keyboardLayoutService, statusbarService) {
|
|
@@ -24,11 +23,11 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
24
23
|
this.keyboardLayoutService = keyboardLayoutService;
|
|
25
24
|
this.statusbarService = statusbarService;
|
|
26
25
|
this.pickerElement = this._register(( (new MutableDisposable())));
|
|
27
|
-
const name = (
|
|
26
|
+
const name = ( localize(4372, "Keyboard Layout"));
|
|
28
27
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
29
28
|
if (layout) {
|
|
30
29
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
31
|
-
const text = (
|
|
30
|
+
const text = ( localize(4373, "Layout: {0}", layoutInfo.label));
|
|
32
31
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
33
32
|
name,
|
|
34
33
|
text,
|
|
@@ -40,7 +39,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
40
39
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
41
40
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
42
41
|
if (this.pickerElement.value) {
|
|
43
|
-
const text = (
|
|
42
|
+
const text = ( localize(4373, "Layout: {0}", layoutInfo.label));
|
|
44
43
|
this.pickerElement.value.update({
|
|
45
44
|
name,
|
|
46
45
|
text,
|
|
@@ -49,7 +48,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
49
48
|
});
|
|
50
49
|
}
|
|
51
50
|
else {
|
|
52
|
-
const text = (
|
|
51
|
+
const text = ( localize(4373, "Layout: {0}", layoutInfo.label));
|
|
53
52
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
54
53
|
name,
|
|
55
54
|
text,
|
|
@@ -66,14 +65,12 @@ KeyboardLayoutPickerContribution = ( (__decorate([
|
|
|
66
65
|
], KeyboardLayoutPickerContribution)));
|
|
67
66
|
registerWorkbenchContribution2(KeyboardLayoutPickerContribution.ID, KeyboardLayoutPickerContribution, WorkbenchPhase.BlockStartup);
|
|
68
67
|
const DEFAULT_CONTENT = [
|
|
69
|
-
`// ${(
|
|
70
|
-
|
|
71
|
-
2,
|
|
68
|
+
`// ${( localize(
|
|
69
|
+
4374,
|
|
72
70
|
'Defines the keyboard layout used in VS Code in the browser environment.'
|
|
73
71
|
))}`,
|
|
74
|
-
`// ${(
|
|
75
|
-
|
|
76
|
-
3,
|
|
72
|
+
`// ${( localize(
|
|
73
|
+
4375,
|
|
77
74
|
'Open VS Code and run "Developer: Inspect Key Mappings (JSON)" from Command Palette.'
|
|
78
75
|
))}`,
|
|
79
76
|
``,
|
|
@@ -84,7 +81,7 @@ registerAction2(class extends Action2 {
|
|
|
84
81
|
constructor() {
|
|
85
82
|
super({
|
|
86
83
|
id: KEYBOARD_LAYOUT_OPEN_PICKER,
|
|
87
|
-
title: (
|
|
84
|
+
title: ( localize2(4376, "Change Keyboard Layout")),
|
|
88
85
|
f1: true
|
|
89
86
|
});
|
|
90
87
|
}
|
|
@@ -114,17 +111,17 @@ registerAction2(class extends Action2 {
|
|
|
114
111
|
});
|
|
115
112
|
if (picks.length > 0) {
|
|
116
113
|
const platform = isMacintosh ? 'Mac' : isWindows ? 'Win' : 'Linux';
|
|
117
|
-
picks.unshift({ type: 'separator', label: (
|
|
114
|
+
picks.unshift({ type: 'separator', label: ( localize(4377, "Keyboard Layouts ({0})", platform)) });
|
|
118
115
|
}
|
|
119
|
-
const configureKeyboardLayout = { label: (
|
|
116
|
+
const configureKeyboardLayout = { label: ( localize(4378, "Configure Keyboard Layout")) };
|
|
120
117
|
picks.unshift(configureKeyboardLayout);
|
|
121
118
|
const autoDetectMode = {
|
|
122
|
-
label: (
|
|
119
|
+
label: ( localize(4379, "Auto Detect")),
|
|
123
120
|
description: isAutoDetect ? `Current: ${parseKeyboardLayoutDescription(currentLayout).label}` : undefined,
|
|
124
121
|
picked: isAutoDetect ? true : undefined
|
|
125
122
|
};
|
|
126
123
|
picks.unshift(autoDetectMode);
|
|
127
|
-
const pick = await quickInputService.pick(picks, { placeHolder: (
|
|
124
|
+
const pick = await quickInputService.pick(picks, { placeHolder: ( localize(4380, "Select Keyboard Layout")), matchOnDescription: true });
|
|
128
125
|
if (!pick) {
|
|
129
126
|
return;
|
|
130
127
|
}
|
|
@@ -147,7 +144,7 @@ registerAction2(class extends Action2 {
|
|
|
147
144
|
});
|
|
148
145
|
}, (error) => {
|
|
149
146
|
throw ( (new Error(
|
|
150
|
-
|
|
147
|
+
localize(4381, "Unable to create '{0}' ({1}).", ( (file.toString())), error)
|
|
151
148
|
)));
|
|
152
149
|
});
|
|
153
150
|
return Promise.resolve();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { localize } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
3
3
|
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
4
4
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
@@ -7,7 +7,6 @@ import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
|
7
7
|
import { SashSettingsController } from './sash.js';
|
|
8
8
|
import { isIOS } from 'vscode/vscode/vs/base/common/platform';
|
|
9
9
|
|
|
10
|
-
const _moduleId = "vs/workbench/contrib/sash/browser/sash.contribution";
|
|
11
10
|
( (Registry.as(Extensions.Workbench)))
|
|
12
11
|
.registerWorkbenchContribution(SashSettingsController, LifecyclePhase.Restored);
|
|
13
12
|
( (Registry.as(Extensions$1.Configuration)))
|
|
@@ -19,9 +18,8 @@ const _moduleId = "vs/workbench/contrib/sash/browser/sash.contribution";
|
|
|
19
18
|
default: isIOS ? 20 : 4,
|
|
20
19
|
minimum: 1,
|
|
21
20
|
maximum: 20,
|
|
22
|
-
description: (
|
|
23
|
-
|
|
24
|
-
0,
|
|
21
|
+
description: ( localize(
|
|
22
|
+
4370,
|
|
25
23
|
"Controls the feedback area size in pixels of the dragging area in between views/editors. Set it to a larger value if you feel it's hard to resize views using the mouse."
|
|
26
24
|
))
|
|
27
25
|
},
|
|
@@ -30,9 +28,8 @@ const _moduleId = "vs/workbench/contrib/sash/browser/sash.contribution";
|
|
|
30
28
|
default: 300,
|
|
31
29
|
minimum: 0,
|
|
32
30
|
maximum: 2000,
|
|
33
|
-
description: (
|
|
34
|
-
|
|
35
|
-
1,
|
|
31
|
+
description: ( localize(
|
|
32
|
+
4371,
|
|
36
33
|
"Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
|
|
37
34
|
))
|
|
38
35
|
},
|