@codingame/monaco-vscode-view-common-service-override 9.0.2 → 10.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/override/vs/workbench/browser/parts/editor/textEditor.weak.js +1 -1
- package/package.json +3 -3
- package/viewCommon.js +4 -1
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +1 -2
- package/vscode/src/vs/base/browser/ui/grid/grid.js +24 -34
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +34 -35
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +38 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +65 -65
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +85 -85
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +74 -80
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +73 -69
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +21 -24
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +77 -59
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +9 -11
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +172 -173
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +16 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +55 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +19 -22
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +76 -65
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +37 -18
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +4 -5
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +20 -15
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +6 -10
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +31 -45
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +37 -40
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +18 -28
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +8 -8
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +2 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -2
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +3 -4
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +2 -8
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +14 -15
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -1
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +21 -21
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +28 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +6 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +4 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +9 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +19 -19
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +10 -9
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +9 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +26 -26
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +16 -17
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +3 -4
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +33 -36
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +18 -28
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +8 -8
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +7 -8
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +13 -15
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +3 -4
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -4
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +0 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +28 -30
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +71 -74
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +22 -26
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +0 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +16 -18
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +9 -10
package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js
CHANGED
|
@@ -11,8 +11,7 @@ import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
|
11
11
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
12
12
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
13
13
|
import { ILanguageStatusService } from 'vscode/vscode/vs/workbench/services/languageStatus/common/languageStatusService.service';
|
|
14
|
-
import {
|
|
15
|
-
import { ShowTooltipCommand, StatusbarAlignment } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
14
|
+
import { ShowTooltipCommand } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
16
15
|
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
17
16
|
import { parseLinkedText } from 'vscode/vscode/vs/base/common/linkedText';
|
|
18
17
|
import { Link } from 'vscode/vscode/vs/platform/opener/browser/link';
|
|
@@ -21,7 +20,6 @@ import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
|
21
20
|
import { ActionBar } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionbar';
|
|
22
21
|
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
23
22
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
24
|
-
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
25
23
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
26
24
|
import { equals } from 'vscode/vscode/vs/base/common/arrays';
|
|
27
25
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
@@ -48,11 +46,11 @@ let StoredCounter = class StoredCounter {
|
|
|
48
46
|
this._key = _key;
|
|
49
47
|
}
|
|
50
48
|
get value() {
|
|
51
|
-
return this._storageService.getNumber(this._key,
|
|
49
|
+
return this._storageService.getNumber(this._key, 0 , 0);
|
|
52
50
|
}
|
|
53
51
|
increment() {
|
|
54
52
|
const n = this.value + 1;
|
|
55
|
-
this._storageService.store(this._key, n,
|
|
53
|
+
this._storageService.store(this._key, n, 0 , 1 );
|
|
56
54
|
return n;
|
|
57
55
|
}
|
|
58
56
|
};
|
|
@@ -93,7 +91,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
93
91
|
this._dedicated = ( (new Set()));
|
|
94
92
|
this._dedicatedEntries = ( (new Map()));
|
|
95
93
|
this._renderDisposables = ( (new DisposableStore()));
|
|
96
|
-
_storageService.onDidChangeValue(
|
|
94
|
+
_storageService.onDidChangeValue(0 , LanguageStatus_1._keyDedicatedItems, this._disposables)(this._handleStorageChange, this, this._disposables);
|
|
97
95
|
this._restoreState();
|
|
98
96
|
this._interactionCounter = ( (new StoredCounter(_storageService, 'languageStatus.interactCount')));
|
|
99
97
|
_languageStatusService.onDidChange(this._update, this, this._disposables);
|
|
@@ -118,7 +116,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
118
116
|
this._update();
|
|
119
117
|
}
|
|
120
118
|
_restoreState() {
|
|
121
|
-
const raw = this._storageService.get(LanguageStatus_1._keyDedicatedItems,
|
|
119
|
+
const raw = this._storageService.get(LanguageStatus_1._keyDedicatedItems, 0 , '[]');
|
|
122
120
|
try {
|
|
123
121
|
const ids = JSON.parse(raw);
|
|
124
122
|
this._dedicated = ( (new Set(ids)));
|
|
@@ -129,11 +127,11 @@ let LanguageStatus = class LanguageStatus {
|
|
|
129
127
|
}
|
|
130
128
|
_storeState() {
|
|
131
129
|
if (this._dedicated.size === 0) {
|
|
132
|
-
this._storageService.remove(LanguageStatus_1._keyDedicatedItems,
|
|
130
|
+
this._storageService.remove(LanguageStatus_1._keyDedicatedItems, 0 );
|
|
133
131
|
}
|
|
134
132
|
else {
|
|
135
133
|
const raw = JSON.stringify(Array.from(( (this._dedicated.keys()))));
|
|
136
|
-
this._storageService.store(LanguageStatus_1._keyDedicatedItems, raw,
|
|
134
|
+
this._storageService.store(LanguageStatus_1._keyDedicatedItems, raw, 0 , 0 );
|
|
137
135
|
}
|
|
138
136
|
}
|
|
139
137
|
_createViewModel(editor) {
|
|
@@ -182,14 +180,14 @@ let LanguageStatus = class LanguageStatus {
|
|
|
182
180
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
183
181
|
}
|
|
184
182
|
const props = {
|
|
185
|
-
name: ( localize(
|
|
186
|
-
ariaLabel: ( localize(
|
|
183
|
+
name: ( localize(4430, "Editor Language Status")),
|
|
184
|
+
ariaLabel: ( localize(4431, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
|
|
187
185
|
tooltip: element,
|
|
188
186
|
command: ShowTooltipCommand,
|
|
189
187
|
text: isOneBusy ? `${text}\u00A0\u00A0$(sync~spin)` : text,
|
|
190
188
|
};
|
|
191
189
|
if (!this._combinedEntry) {
|
|
192
|
-
this._combinedEntry = this._statusBarService.addEntry(props, LanguageStatus_1._id,
|
|
190
|
+
this._combinedEntry = this._statusBarService.addEntry(props, LanguageStatus_1._id, 1 , { id: 'status.editor.mode', alignment: 0 , compact: true });
|
|
193
191
|
}
|
|
194
192
|
else {
|
|
195
193
|
this._combinedEntry.update(props);
|
|
@@ -231,7 +229,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
231
229
|
const props = LanguageStatus_1._asStatusbarEntry(status);
|
|
232
230
|
let entry = this._dedicatedEntries.get(status.id);
|
|
233
231
|
if (!entry) {
|
|
234
|
-
entry = this._statusBarService.addEntry(props, status.id,
|
|
232
|
+
entry = this._statusBarService.addEntry(props, status.id, 1 , { id: 'status.editor.mode', alignment: 1 });
|
|
235
233
|
}
|
|
236
234
|
else {
|
|
237
235
|
entry.update(props);
|
|
@@ -280,10 +278,12 @@ let LanguageStatus = class LanguageStatus {
|
|
|
280
278
|
}, { hoverDelegate: nativeHoverDelegate }, this._hoverService, this._openerService))));
|
|
281
279
|
}
|
|
282
280
|
const actionBar = ( (new ActionBar(right, { hoverDelegate: nativeHoverDelegate })));
|
|
281
|
+
const actionLabel = isPinned ? ( localize(4432, "Remove from Status Bar")) : ( localize(4433, "Add to Status Bar"));
|
|
282
|
+
actionBar.setAriaLabel(actionLabel);
|
|
283
283
|
store.add(actionBar);
|
|
284
284
|
let action;
|
|
285
285
|
if (!isPinned) {
|
|
286
|
-
action = ( (new Action('pin',
|
|
286
|
+
action = ( (new Action('pin', actionLabel, ThemeIcon.asClassName(Codicon.pin), true, () => {
|
|
287
287
|
this._dedicated.add(status.id);
|
|
288
288
|
this._statusBarService.updateEntryVisibility(status.id, true);
|
|
289
289
|
this._update();
|
|
@@ -291,7 +291,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
291
291
|
})));
|
|
292
292
|
}
|
|
293
293
|
else {
|
|
294
|
-
action = ( (new Action('unpin',
|
|
294
|
+
action = ( (new Action('unpin', actionLabel, ThemeIcon.asClassName(Codicon.pinned), true, () => {
|
|
295
295
|
this._dedicated.delete(status.id);
|
|
296
296
|
this._statusBarService.updateEntryVisibility(status.id, false);
|
|
297
297
|
this._update();
|
|
@@ -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(4434, '{0}, {1}', textValue, status.detail)) };
|
|
337
337
|
}
|
|
338
338
|
else {
|
|
339
|
-
return { label: ( localize(
|
|
339
|
+
return { label: ( localize(4435, '{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(4436, '{0} (Language Status)', item.name)),
|
|
353
353
|
text: item.busy ? `${textValue}\u00A0\u00A0$(sync~spin)` : textValue,
|
|
354
354
|
ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
|
|
355
355
|
role: item.accessibilityInfo?.role,
|
|
@@ -367,17 +367,17 @@ LanguageStatus = LanguageStatus_1 = ( (__decorate([
|
|
|
367
367
|
( (__param(4, IOpenerService))),
|
|
368
368
|
( (__param(5, IStorageService)))
|
|
369
369
|
], LanguageStatus)));
|
|
370
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(LanguageStatusContribution,
|
|
370
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(LanguageStatusContribution, 3 );
|
|
371
371
|
registerAction2(class extends Action2 {
|
|
372
372
|
constructor() {
|
|
373
373
|
super({
|
|
374
374
|
id: 'editor.inlayHints.Reset',
|
|
375
|
-
title: ( localize2(
|
|
375
|
+
title: ( localize2(4437, "Reset Language Status Interaction Counter")),
|
|
376
376
|
category: Categories.View,
|
|
377
377
|
f1: true
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
run(accessor) {
|
|
381
|
-
accessor.get(IStorageService).remove('languageStatus.interactCount',
|
|
381
|
+
accessor.get(IStorageService).remove('languageStatus.interactCount', 0 );
|
|
382
382
|
}
|
|
383
383
|
});
|
package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js
CHANGED
|
@@ -6,13 +6,12 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
|
|
|
6
6
|
import { ILanguageStatusService } from 'vscode/vscode/vs/workbench/services/languageStatus/common/languageStatusService.service';
|
|
7
7
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
8
8
|
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
9
|
-
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
10
9
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
11
10
|
import { FoldingController } from 'vscode/vscode/vs/editor/contrib/folding/browser/folding';
|
|
12
11
|
import { ColorDetector } from 'vscode/vscode/vs/editor/contrib/colorPicker/browser/colorDetector';
|
|
13
12
|
|
|
14
13
|
const openSettingsCommand = 'workbench.action.openSettings';
|
|
15
|
-
const configureSettingsLabel = ( localize(
|
|
14
|
+
const configureSettingsLabel = ( localize(4444, "Configure"));
|
|
16
15
|
let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
|
|
17
16
|
constructor(editorService, languageStatusService) {
|
|
18
17
|
super();
|
|
@@ -42,9 +41,9 @@ LimitIndicatorContribution = ( (__decorate([
|
|
|
42
41
|
class ColorDecorationAccessor {
|
|
43
42
|
constructor() {
|
|
44
43
|
this.id = 'decoratorsLimitInfo';
|
|
45
|
-
this.name = ( localize(
|
|
46
|
-
this.label = ( localize(
|
|
47
|
-
this.source = ( localize(
|
|
44
|
+
this.name = ( localize(4445, 'Color Decorator Status'));
|
|
45
|
+
this.label = ( localize(4446, 'Color Decorators'));
|
|
46
|
+
this.source = ( localize(4447, 'Color Decorators'));
|
|
48
47
|
this.settingsId = 'editor.colorDecoratorsLimit';
|
|
49
48
|
}
|
|
50
49
|
getLimitReporter(editor) {
|
|
@@ -54,9 +53,9 @@ class ColorDecorationAccessor {
|
|
|
54
53
|
class FoldingRangeAccessor {
|
|
55
54
|
constructor() {
|
|
56
55
|
this.id = 'foldingLimitInfo';
|
|
57
|
-
this.name = ( localize(
|
|
58
|
-
this.label = ( localize(
|
|
59
|
-
this.source = ( localize(
|
|
56
|
+
this.name = ( localize(4448, 'Folding Status'));
|
|
57
|
+
this.label = ( localize(4449, 'Folding Ranges'));
|
|
58
|
+
this.source = ( localize(4450, 'Folding'));
|
|
60
59
|
this.settingsId = 'editor.foldingMaximumRegions';
|
|
61
60
|
}
|
|
62
61
|
getLimitReporter(editor) {
|
|
@@ -98,7 +97,7 @@ class LanguageStatusEntry {
|
|
|
98
97
|
name: this.accessor.name,
|
|
99
98
|
severity: Severity$1.Warning,
|
|
100
99
|
label: this.accessor.label,
|
|
101
|
-
detail: ( localize(
|
|
100
|
+
detail: ( localize(4451, 'only {0} shown for performance reasons', info.limited)),
|
|
102
101
|
command: { id: openSettingsCommand, arguments: [this.accessor.settingsId], title: configureSettingsLabel },
|
|
103
102
|
accessibilityInfo: undefined,
|
|
104
103
|
source: this.accessor.source,
|
|
@@ -112,6 +111,6 @@ class LanguageStatusEntry {
|
|
|
112
111
|
this._indicatorChangeListener = undefined;
|
|
113
112
|
}
|
|
114
113
|
}
|
|
115
|
-
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(LimitIndicatorContribution,
|
|
114
|
+
( (Registry.as(Extensions.Workbench))).registerWorkbenchContribution(LimitIndicatorContribution, 3 );
|
|
116
115
|
|
|
117
116
|
export { LimitIndicatorContribution };
|
|
@@ -6,7 +6,6 @@ import { Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/action
|
|
|
6
6
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
7
7
|
import { IDialogService } from 'vscode/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
8
8
|
import { IOpenerService } from 'vscode/vscode/vs/platform/opener/common/opener.service';
|
|
9
|
-
import { StorageScope } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
10
9
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
11
10
|
import { MergeEditorInputData } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput';
|
|
12
11
|
import { MergeEditor } from '../view/mergeEditor.js';
|
|
@@ -55,7 +54,7 @@ class OpenMergeEditor extends Action2 {
|
|
|
55
54
|
constructor() {
|
|
56
55
|
super({
|
|
57
56
|
id: '_open.mergeEditor',
|
|
58
|
-
title: ( localize2(
|
|
57
|
+
title: ( localize2(9850, 'Open Merge Editor')),
|
|
59
58
|
});
|
|
60
59
|
}
|
|
61
60
|
run(accessor, ...args) {
|
|
@@ -134,7 +133,7 @@ class SetMixedLayout extends Action2 {
|
|
|
134
133
|
constructor() {
|
|
135
134
|
super({
|
|
136
135
|
id: 'merge.mixedLayout',
|
|
137
|
-
title: ( localize2(
|
|
136
|
+
title: ( localize2(9851, "Mixed Layout")),
|
|
138
137
|
toggled: ( (ctxMergeEditorLayout.isEqualTo('mixed'))),
|
|
139
138
|
menu: [
|
|
140
139
|
{
|
|
@@ -158,7 +157,7 @@ class SetColumnLayout extends Action2 {
|
|
|
158
157
|
constructor() {
|
|
159
158
|
super({
|
|
160
159
|
id: 'merge.columnLayout',
|
|
161
|
-
title: ( localize2(
|
|
160
|
+
title: ( localize2(9852, 'Column Layout')),
|
|
162
161
|
toggled: ( (ctxMergeEditorLayout.isEqualTo('columns'))),
|
|
163
162
|
menu: [{
|
|
164
163
|
id: MenuId.EditorTitle,
|
|
@@ -180,7 +179,7 @@ class ShowNonConflictingChanges extends Action2 {
|
|
|
180
179
|
constructor() {
|
|
181
180
|
super({
|
|
182
181
|
id: 'merge.showNonConflictingChanges',
|
|
183
|
-
title: ( localize2(
|
|
182
|
+
title: ( localize2(9853, "Show Non-Conflicting Changes")),
|
|
184
183
|
toggled: ( (ctxMergeEditorShowNonConflictingChanges.isEqualTo(true))),
|
|
185
184
|
menu: [
|
|
186
185
|
{
|
|
@@ -204,7 +203,7 @@ class ShowHideBase extends Action2 {
|
|
|
204
203
|
constructor() {
|
|
205
204
|
super({
|
|
206
205
|
id: 'merge.showBase',
|
|
207
|
-
title: ( localize2(
|
|
206
|
+
title: ( localize2(9854, "Show Base")),
|
|
208
207
|
toggled: ( (ctxMergeEditorShowBase.isEqualTo(true))),
|
|
209
208
|
menu: [
|
|
210
209
|
{
|
|
@@ -230,7 +229,7 @@ class ShowHideTopBase extends Action2 {
|
|
|
230
229
|
constructor() {
|
|
231
230
|
super({
|
|
232
231
|
id: 'merge.showBaseTop',
|
|
233
|
-
title: ( localize2(
|
|
232
|
+
title: ( localize2(9855, "Show Base Top")),
|
|
234
233
|
toggled: ( (ContextKeyExpr.and(ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop))),
|
|
235
234
|
menu: [
|
|
236
235
|
{
|
|
@@ -253,7 +252,7 @@ class ShowHideCenterBase extends Action2 {
|
|
|
253
252
|
constructor() {
|
|
254
253
|
super({
|
|
255
254
|
id: 'merge.showBaseCenter',
|
|
256
|
-
title: ( localize2(
|
|
255
|
+
title: ( localize2(9856, "Show Base Center")),
|
|
257
256
|
toggled: ( (ContextKeyExpr.and(
|
|
258
257
|
ctxMergeEditorShowBase,
|
|
259
258
|
(ctxMergeEditorShowBaseAtTop.negate())
|
|
@@ -275,13 +274,13 @@ class ShowHideCenterBase extends Action2 {
|
|
|
275
274
|
}
|
|
276
275
|
}
|
|
277
276
|
}
|
|
278
|
-
const mergeEditorCategory = ( localize2(
|
|
277
|
+
const mergeEditorCategory = ( localize2(9857, "Merge Editor"));
|
|
279
278
|
class OpenResultResource extends MergeEditorAction {
|
|
280
279
|
constructor() {
|
|
281
280
|
super({
|
|
282
281
|
id: 'merge.openResult',
|
|
283
282
|
icon: Codicon.goToFile,
|
|
284
|
-
title: ( localize2(
|
|
283
|
+
title: ( localize2(9858, "Open File")),
|
|
285
284
|
category: mergeEditorCategory,
|
|
286
285
|
menu: [{
|
|
287
286
|
id: MenuId.EditorTitle,
|
|
@@ -302,7 +301,7 @@ class GoToNextUnhandledConflict extends MergeEditorAction {
|
|
|
302
301
|
super({
|
|
303
302
|
id: 'merge.goToNextUnhandledConflict',
|
|
304
303
|
category: mergeEditorCategory,
|
|
305
|
-
title: ( localize2(
|
|
304
|
+
title: ( localize2(9859, "Go to Next Unhandled Conflict")),
|
|
306
305
|
icon: Codicon.arrowDown,
|
|
307
306
|
menu: [
|
|
308
307
|
{
|
|
@@ -326,7 +325,7 @@ class GoToPreviousUnhandledConflict extends MergeEditorAction {
|
|
|
326
325
|
super({
|
|
327
326
|
id: 'merge.goToPreviousUnhandledConflict',
|
|
328
327
|
category: mergeEditorCategory,
|
|
329
|
-
title: ( localize2(
|
|
328
|
+
title: ( localize2(9860, "Go to Previous Unhandled Conflict")),
|
|
330
329
|
icon: Codicon.arrowUp,
|
|
331
330
|
menu: [
|
|
332
331
|
{
|
|
@@ -350,7 +349,7 @@ class ToggleActiveConflictInput1 extends MergeEditorAction {
|
|
|
350
349
|
super({
|
|
351
350
|
id: 'merge.toggleActiveConflictInput1',
|
|
352
351
|
category: mergeEditorCategory,
|
|
353
|
-
title: ( localize2(
|
|
352
|
+
title: ( localize2(9861, "Toggle Current Conflict from Left")),
|
|
354
353
|
f1: true,
|
|
355
354
|
precondition: ctxIsMergeEditor,
|
|
356
355
|
});
|
|
@@ -364,7 +363,7 @@ class ToggleActiveConflictInput2 extends MergeEditorAction {
|
|
|
364
363
|
super({
|
|
365
364
|
id: 'merge.toggleActiveConflictInput2',
|
|
366
365
|
category: mergeEditorCategory,
|
|
367
|
-
title: ( localize2(
|
|
366
|
+
title: ( localize2(9862, "Toggle Current Conflict from Right")),
|
|
368
367
|
f1: true,
|
|
369
368
|
precondition: ctxIsMergeEditor,
|
|
370
369
|
});
|
|
@@ -378,8 +377,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
|
|
|
378
377
|
super({
|
|
379
378
|
id: 'mergeEditor.compareInput1WithBase',
|
|
380
379
|
category: mergeEditorCategory,
|
|
381
|
-
title: ( localize2(
|
|
382
|
-
shortTitle: ( localize(
|
|
380
|
+
title: ( localize2(9863, "Compare Input 1 With Base")),
|
|
381
|
+
shortTitle: ( localize(9864, 'Compare With Base')),
|
|
383
382
|
f1: true,
|
|
384
383
|
precondition: ctxIsMergeEditor,
|
|
385
384
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -396,8 +395,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
|
|
|
396
395
|
super({
|
|
397
396
|
id: 'mergeEditor.compareInput2WithBase',
|
|
398
397
|
category: mergeEditorCategory,
|
|
399
|
-
title: ( localize2(
|
|
400
|
-
shortTitle: ( localize(
|
|
398
|
+
title: ( localize2(9865, "Compare Input 2 With Base")),
|
|
399
|
+
shortTitle: ( localize(9864, 'Compare With Base')),
|
|
401
400
|
f1: true,
|
|
402
401
|
precondition: ctxIsMergeEditor,
|
|
403
402
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -433,7 +432,7 @@ class OpenBaseFile extends MergeEditorAction {
|
|
|
433
432
|
super({
|
|
434
433
|
id: 'merge.openBaseEditor',
|
|
435
434
|
category: mergeEditorCategory,
|
|
436
|
-
title: ( localize2(
|
|
435
|
+
title: ( localize2(9866, "Open Base File")),
|
|
437
436
|
f1: true,
|
|
438
437
|
precondition: ctxIsMergeEditor,
|
|
439
438
|
});
|
|
@@ -448,7 +447,7 @@ class AcceptAllInput1 extends MergeEditorAction {
|
|
|
448
447
|
super({
|
|
449
448
|
id: 'merge.acceptAllInput1',
|
|
450
449
|
category: mergeEditorCategory,
|
|
451
|
-
title: ( localize2(
|
|
450
|
+
title: ( localize2(9867, "Accept All Changes from Left")),
|
|
452
451
|
f1: true,
|
|
453
452
|
precondition: ctxIsMergeEditor,
|
|
454
453
|
menu: { id: MenuId.MergeInput1Toolbar, group: 'primary' },
|
|
@@ -464,7 +463,7 @@ class AcceptAllInput2 extends MergeEditorAction {
|
|
|
464
463
|
super({
|
|
465
464
|
id: 'merge.acceptAllInput2',
|
|
466
465
|
category: mergeEditorCategory,
|
|
467
|
-
title: ( localize2(
|
|
466
|
+
title: ( localize2(9868, "Accept All Changes from Right")),
|
|
468
467
|
f1: true,
|
|
469
468
|
precondition: ctxIsMergeEditor,
|
|
470
469
|
menu: { id: MenuId.MergeInput2Toolbar, group: 'primary' },
|
|
@@ -480,8 +479,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
|
|
|
480
479
|
super({
|
|
481
480
|
id: 'mergeEditor.resetResultToBaseAndAutoMerge',
|
|
482
481
|
category: mergeEditorCategory,
|
|
483
|
-
title: ( localize2(
|
|
484
|
-
shortTitle: ( localize(
|
|
482
|
+
title: ( localize2(9869, "Reset Result")),
|
|
483
|
+
shortTitle: ( localize(9870, 'Reset')),
|
|
485
484
|
f1: true,
|
|
486
485
|
precondition: ctxIsMergeEditor,
|
|
487
486
|
menu: { id: MenuId.MergeInputResultToolbar, group: 'primary' },
|
|
@@ -497,12 +496,12 @@ class ResetCloseWithConflictsChoice extends Action2 {
|
|
|
497
496
|
super({
|
|
498
497
|
id: 'mergeEditor.resetCloseWithConflictsChoice',
|
|
499
498
|
category: mergeEditorCategory,
|
|
500
|
-
title: ( localize2(
|
|
499
|
+
title: ( localize2(9871, "Reset Choice for \'Close with Conflicts\'")),
|
|
501
500
|
f1: true,
|
|
502
501
|
});
|
|
503
502
|
}
|
|
504
503
|
run(accessor) {
|
|
505
|
-
accessor.get(IStorageService).remove(StorageCloseWithConflicts,
|
|
504
|
+
accessor.get(IStorageService).remove(StorageCloseWithConflicts, 0 );
|
|
506
505
|
}
|
|
507
506
|
}
|
|
508
507
|
class AcceptMerge extends MergeEditorAction2 {
|
|
@@ -510,7 +509,7 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
510
509
|
super({
|
|
511
510
|
id: 'mergeEditor.acceptMerge',
|
|
512
511
|
category: mergeEditorCategory,
|
|
513
|
-
title: ( localize2(
|
|
512
|
+
title: ( localize2(9872, "Complete Merge")),
|
|
514
513
|
f1: false,
|
|
515
514
|
precondition: ctxIsMergeEditor
|
|
516
515
|
});
|
|
@@ -521,12 +520,12 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
521
520
|
if (viewModel.model.unhandledConflictsCount.get() > 0) {
|
|
522
521
|
const { confirmed } = await dialogService.confirm({
|
|
523
522
|
message: ( localize(
|
|
524
|
-
|
|
523
|
+
9873,
|
|
525
524
|
"Do you want to complete the merge of {0}?",
|
|
526
525
|
basename(inputModel.resultUri)
|
|
527
526
|
)),
|
|
528
|
-
detail: ( localize(
|
|
529
|
-
primaryButton: ( localize(
|
|
527
|
+
detail: ( localize(9874, "The file contains unhandled conflicts.")),
|
|
528
|
+
primaryButton: ( localize(9875, "&&Complete with Conflicts"))
|
|
530
529
|
});
|
|
531
530
|
if (!confirmed) {
|
|
532
531
|
return {
|
|
@@ -13,13 +13,13 @@ import { MergeEditor } from '../view/mergeEditor.js';
|
|
|
13
13
|
import { ctxIsMergeEditor } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/common/mergeEditor';
|
|
14
14
|
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
15
15
|
|
|
16
|
-
const MERGE_EDITOR_CATEGORY = ( localize2(
|
|
16
|
+
const MERGE_EDITOR_CATEGORY = ( localize2(9876, 'Merge Editor (Dev)'));
|
|
17
17
|
class MergeEditorCopyContentsToJSON extends Action2 {
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: 'merge.dev.copyContentsJson',
|
|
21
21
|
category: MERGE_EDITOR_CATEGORY,
|
|
22
|
-
title: ( localize2(
|
|
22
|
+
title: ( localize2(9877, "Copy Merge Editor State as JSON")),
|
|
23
23
|
icon: Codicon.layoutCentered,
|
|
24
24
|
f1: true,
|
|
25
25
|
precondition: ctxIsMergeEditor,
|
|
@@ -31,8 +31,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
|
|
|
31
31
|
const notificationService = accessor.get(INotificationService);
|
|
32
32
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
33
33
|
notificationService.info({
|
|
34
|
-
name: ( localize(
|
|
35
|
-
message: ( localize(
|
|
34
|
+
name: ( localize(9878, 'Merge Editor')),
|
|
35
|
+
message: ( localize(9879, "No active merge editor"))
|
|
36
36
|
});
|
|
37
37
|
return;
|
|
38
38
|
}
|
|
@@ -51,8 +51,8 @@ class MergeEditorCopyContentsToJSON extends Action2 {
|
|
|
51
51
|
const jsonStr = JSON.stringify(contents, undefined, 4);
|
|
52
52
|
clipboardService.writeText(jsonStr);
|
|
53
53
|
notificationService.info({
|
|
54
|
-
name: ( localize(
|
|
55
|
-
message: ( localize(
|
|
54
|
+
name: ( localize(9878, 'Merge Editor')),
|
|
55
|
+
message: ( localize(9880, "Successfully copied merge editor state")),
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -61,7 +61,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
61
61
|
super({
|
|
62
62
|
id: 'merge.dev.saveContentsToFolder',
|
|
63
63
|
category: MERGE_EDITOR_CATEGORY,
|
|
64
|
-
title: ( localize2(
|
|
64
|
+
title: ( localize2(9881, "Save Merge Editor State to Folder")),
|
|
65
65
|
icon: Codicon.layoutCentered,
|
|
66
66
|
f1: true,
|
|
67
67
|
precondition: ctxIsMergeEditor,
|
|
@@ -75,8 +75,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
75
75
|
const languageService = accessor.get(ILanguageService);
|
|
76
76
|
if (!(activeEditorPane instanceof MergeEditor)) {
|
|
77
77
|
notificationService.info({
|
|
78
|
-
name: ( localize(
|
|
79
|
-
message: ( localize(
|
|
78
|
+
name: ( localize(9878, 'Merge Editor')),
|
|
79
|
+
message: ( localize(9879, "No active merge editor"))
|
|
80
80
|
});
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
@@ -88,7 +88,7 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
88
88
|
canSelectFiles: false,
|
|
89
89
|
canSelectFolders: true,
|
|
90
90
|
canSelectMany: false,
|
|
91
|
-
title: ( localize(
|
|
91
|
+
title: ( localize(9882, 'Select folder to save to'))
|
|
92
92
|
});
|
|
93
93
|
if (!result) {
|
|
94
94
|
return;
|
|
@@ -106,8 +106,8 @@ class MergeEditorSaveContentsToFolder extends Action2 {
|
|
|
106
106
|
write('initialResult', model.getInitialResultValue()),
|
|
107
107
|
]);
|
|
108
108
|
notificationService.info({
|
|
109
|
-
name: ( localize(
|
|
110
|
-
message: ( localize(
|
|
109
|
+
name: ( localize(9878, 'Merge Editor')),
|
|
110
|
+
message: ( localize(9883, "Successfully saved merge editor state to folder")),
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -116,7 +116,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
116
116
|
super({
|
|
117
117
|
id: 'merge.dev.loadContentsFromFolder',
|
|
118
118
|
category: MERGE_EDITOR_CATEGORY,
|
|
119
|
-
title: ( localize2(
|
|
119
|
+
title: ( localize2(9884, "Load Merge Editor State from Folder")),
|
|
120
120
|
icon: Codicon.layoutCentered,
|
|
121
121
|
f1: true
|
|
122
122
|
});
|
|
@@ -135,7 +135,7 @@ class MergeEditorLoadContentsFromFolder extends Action2 {
|
|
|
135
135
|
canSelectFiles: false,
|
|
136
136
|
canSelectFolders: true,
|
|
137
137
|
canSelectMany: false,
|
|
138
|
-
title: ( localize(
|
|
138
|
+
title: ( localize(9882, 'Select folder to save to'))
|
|
139
139
|
});
|
|
140
140
|
if (!result) {
|
|
141
141
|
return;
|
|
@@ -4,16 +4,15 @@ import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/confi
|
|
|
4
4
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
5
5
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
6
6
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
7
|
-
import { Extensions as Extensions$1, registerWorkbenchContribution2
|
|
7
|
+
import { Extensions as Extensions$1, registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
8
8
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
9
9
|
import { OpenResultResource, SetMixedLayout, SetColumnLayout, OpenMergeEditor, OpenBaseFile, ShowNonConflictingChanges, ShowHideBase, ShowHideTopBase, ShowHideCenterBase, GoToNextUnhandledConflict, GoToPreviousUnhandledConflict, ToggleActiveConflictInput1, ToggleActiveConflictInput2, CompareInput1WithBaseCommand, CompareInput2WithBaseCommand, AcceptAllInput1, AcceptAllInput2, ResetToBaseAndAutoMergeCommand, AcceptMerge, ResetCloseWithConflictsChoice } from './commands/commands.js';
|
|
10
10
|
import { MergeEditorCopyContentsToJSON, MergeEditorSaveContentsToFolder, MergeEditorLoadContentsFromFolder } from './commands/devCommands.js';
|
|
11
11
|
import { MergeEditorInput } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput';
|
|
12
12
|
import { MergeEditor, MergeEditorOpenHandlerContribution, MergeEditorResolverContribution } from './view/mergeEditor.js';
|
|
13
|
-
import { LifecyclePhase } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
14
13
|
import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
15
14
|
|
|
16
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(
|
|
15
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(MergeEditor, MergeEditor.ID, ( localize(4438, "Merge Editor"))), [
|
|
17
16
|
( (new SyncDescriptor(MergeEditorInput)))
|
|
18
17
|
]);
|
|
19
18
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(MergeEditorInput.ID, MergeEditorSerializer);
|
|
@@ -24,8 +23,8 @@ import { MergeEditorSerializer } from './mergeEditorSerializer.js';
|
|
|
24
23
|
enum: ['legacy', 'advanced'],
|
|
25
24
|
default: 'advanced',
|
|
26
25
|
markdownEnumDescriptions: [
|
|
27
|
-
( localize(
|
|
28
|
-
( localize(
|
|
26
|
+
( localize(4439, "Uses the legacy diffing algorithm.")),
|
|
27
|
+
( localize(4440, "Uses the advanced diffing algorithm.")),
|
|
29
28
|
]
|
|
30
29
|
},
|
|
31
30
|
'mergeEditor.showDeletionMarkers': {
|
|
@@ -60,5 +59,5 @@ registerAction2(MergeEditorSaveContentsToFolder);
|
|
|
60
59
|
registerAction2(MergeEditorLoadContentsFromFolder);
|
|
61
60
|
( (Registry
|
|
62
61
|
.as(Extensions$1.Workbench)))
|
|
63
|
-
.registerWorkbenchContribution(MergeEditorOpenHandlerContribution,
|
|
64
|
-
registerWorkbenchContribution2(MergeEditorResolverContribution.ID, MergeEditorResolverContribution,
|
|
62
|
+
.registerWorkbenchContribution(MergeEditorOpenHandlerContribution, 3 );
|
|
63
|
+
registerWorkbenchContribution2(MergeEditorResolverContribution.ID, MergeEditorResolverContribution, 1 );
|
|
@@ -11,19 +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
|
-
registerColor('mergeEditor.change.background', '#9bb95533', ( localize(
|
|
15
|
-
registerColor('mergeEditor.change.word.background', { dark: '#9ccc2c33', light: '#9ccc2c66', hcDark: '#9ccc2c33', hcLight: '#9ccc2c66', }, ( localize(
|
|
16
|
-
registerColor('mergeEditor.changeBase.background', { dark: '#4B1818FF', light: '#FFCCCCFF', hcDark: '#4B1818FF', hcLight: '#FFCCCCFF', }, ( localize(
|
|
17
|
-
registerColor('mergeEditor.changeBase.word.background', { dark: '#6F1313FF', light: '#FFA3A3FF', hcDark: '#6F1313FF', hcLight: '#FFA3A3FF', }, ( localize(
|
|
18
|
-
registerColor('mergeEditor.conflict.unhandledUnfocused.border', { dark: '#ffa6007a', light: '#ffa600FF', hcDark: '#ffa6007a', hcLight: '#ffa6007a', }, ( localize(
|
|
19
|
-
registerColor('mergeEditor.conflict.unhandledFocused.border', '#ffa600', ( localize(
|
|
20
|
-
registerColor('mergeEditor.conflict.handledUnfocused.border', '#86868649', ( localize(
|
|
21
|
-
registerColor('mergeEditor.conflict.handledFocused.border', '#c1c1c1cc', ( localize(
|
|
22
|
-
const handledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.handled.minimapOverViewRuler', '#adaca8ee', ( localize(
|
|
23
|
-
const unhandledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.unhandled.minimapOverViewRuler', '#fcba03FF', ( localize(
|
|
24
|
-
registerColor('mergeEditor.conflictingLines.background', '#ffea0047', ( localize(
|
|
14
|
+
registerColor('mergeEditor.change.background', '#9bb95533', ( localize(11369, 'The background color for changes.')));
|
|
15
|
+
registerColor('mergeEditor.change.word.background', { dark: '#9ccc2c33', light: '#9ccc2c66', hcDark: '#9ccc2c33', hcLight: '#9ccc2c66', }, ( localize(11370, 'The background color for word changes.')));
|
|
16
|
+
registerColor('mergeEditor.changeBase.background', { dark: '#4B1818FF', light: '#FFCCCCFF', hcDark: '#4B1818FF', hcLight: '#FFCCCCFF', }, ( localize(11371, 'The background color for changes in base.')));
|
|
17
|
+
registerColor('mergeEditor.changeBase.word.background', { dark: '#6F1313FF', light: '#FFA3A3FF', hcDark: '#6F1313FF', hcLight: '#FFA3A3FF', }, ( localize(11372, 'The background color for word changes in base.')));
|
|
18
|
+
registerColor('mergeEditor.conflict.unhandledUnfocused.border', { dark: '#ffa6007a', light: '#ffa600FF', hcDark: '#ffa6007a', hcLight: '#ffa6007a', }, ( localize(11373, 'The border color of unhandled unfocused conflicts.')));
|
|
19
|
+
registerColor('mergeEditor.conflict.unhandledFocused.border', '#ffa600', ( localize(11374, 'The border color of unhandled focused conflicts.')));
|
|
20
|
+
registerColor('mergeEditor.conflict.handledUnfocused.border', '#86868649', ( localize(11375, 'The border color of handled unfocused conflicts.')));
|
|
21
|
+
registerColor('mergeEditor.conflict.handledFocused.border', '#c1c1c1cc', ( localize(11376, 'The border color of handled focused conflicts.')));
|
|
22
|
+
const handledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.handled.minimapOverViewRuler', '#adaca8ee', ( localize(11377, 'The foreground color for changes in input 1.')));
|
|
23
|
+
const unhandledConflictMinimapOverViewRulerColor = registerColor('mergeEditor.conflict.unhandled.minimapOverViewRuler', '#fcba03FF', ( localize(11378, 'The foreground color for changes in input 1.')));
|
|
24
|
+
registerColor('mergeEditor.conflictingLines.background', '#ffea0047', ( localize(11379, 'The background of the "Conflicting Lines" text.')));
|
|
25
25
|
const contentTransparency = 0.4;
|
|
26
|
-
registerColor('mergeEditor.conflict.input1.background', ( (transparent(mergeCurrentHeaderBackground, contentTransparency))), ( localize(
|
|
27
|
-
registerColor('mergeEditor.conflict.input2.background', ( (transparent(mergeIncomingHeaderBackground, contentTransparency))), ( localize(
|
|
26
|
+
registerColor('mergeEditor.conflict.input1.background', ( (transparent(mergeCurrentHeaderBackground, contentTransparency))), ( localize(11380, 'The background color of decorations in input 1.')));
|
|
27
|
+
registerColor('mergeEditor.conflict.input2.background', ( (transparent(mergeIncomingHeaderBackground, contentTransparency))), ( localize(11381, 'The background color of decorations in input 2.')));
|
|
28
28
|
|
|
29
29
|
export { handledConflictMinimapOverViewRulerColor, unhandledConflictMinimapOverViewRulerColor };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { h, reset } from 'vscode/vscode/vs/base/browser/dom';
|
|
2
2
|
import { Disposable, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
3
3
|
import { transaction } from 'vscode/vscode/vs/base/common/observableInternal/base';
|
|
4
|
-
import 'vscode/vscode/vs/base/common/
|
|
4
|
+
import 'vscode/vscode/vs/base/common/arrays';
|
|
5
|
+
import 'vscode/vscode/vs/base/common/event';
|
|
5
6
|
import { autorun } from 'vscode/vscode/vs/base/common/observableInternal/autorun';
|
|
6
|
-
import
|
|
7
|
+
import 'vscode/vscode/vs/base/common/observableInternal/derived';
|
|
7
8
|
import 'vscode/vscode/vs/base/common/cancellation';
|
|
8
|
-
import 'vscode/vscode/vs/base/common/
|
|
9
|
+
import { observableFromEvent, observableSignalFromEvent, observableSignal } from 'vscode/vscode/vs/base/common/observableInternal/utils';
|
|
9
10
|
import { LineRange } from 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/model/lineRange';
|
|
10
11
|
|
|
11
12
|
class EditorGutter extends Disposable {
|