@codingame/monaco-vscode-view-common-service-override 9.0.2 → 9.0.3
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/browser/parts/compositeBar.js +1 -1
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.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/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.3",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@9.0.
|
|
30
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "9.0.
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@9.0.3",
|
|
30
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "9.0.3"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -122,7 +122,7 @@ let CompositeBar = class CompositeBar extends Widget {
|
|
|
122
122
|
return item && this.instantiationService.createInstance(CompositeActionViewItem, { ...options, draggable: true, colors: this.options.colors, icon: this.options.icon, hoverOptions: this.options.activityHoverOptions, compact: this.options.compact }, action, item.pinnedAction, item.toggleBadgeAction, compositeId => this.options.getContextMenuActionsForComposite(compositeId), () => this.getContextMenuActions(), this.options.dndHandler, this);
|
|
123
123
|
},
|
|
124
124
|
orientation: this.options.orientation,
|
|
125
|
-
ariaLabel: ( localize(
|
|
125
|
+
ariaLabel: ( localize(11162, "Active View Switcher")),
|
|
126
126
|
ariaRole: 'tablist',
|
|
127
127
|
preventLoopNavigation: this.options.preventLoopNavigation,
|
|
128
128
|
triggerKeys: { keyDown: true }
|
|
@@ -267,13 +267,13 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
267
267
|
}
|
|
268
268
|
this._previewDisposable.add(value);
|
|
269
269
|
const title = this._direction === CallHierarchyDirection.CallsFrom
|
|
270
|
-
? ( localize(
|
|
271
|
-
: ( localize(
|
|
270
|
+
? ( localize(9550, "Calls from '{0}'", element.model.root.name))
|
|
271
|
+
: ( localize(9551, "Callers of '{0}'", element.model.root.name));
|
|
272
272
|
this.setTitle(title);
|
|
273
273
|
}
|
|
274
274
|
showLoading() {
|
|
275
275
|
this._parent.dataset['state'] = State.Loading;
|
|
276
|
-
this.setTitle(( localize(
|
|
276
|
+
this.setTitle(( localize(9552, "Loading...")));
|
|
277
277
|
this._show();
|
|
278
278
|
}
|
|
279
279
|
showMessage(message) {
|
|
@@ -292,8 +292,8 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
292
292
|
await this._tree.expand(root.element);
|
|
293
293
|
if (root.children.length === 0) {
|
|
294
294
|
this.showMessage(this._direction === CallHierarchyDirection.CallsFrom
|
|
295
|
-
? ( localize(
|
|
296
|
-
: ( localize(
|
|
295
|
+
? ( localize(9553, "No calls from '{0}'", model.root.name))
|
|
296
|
+
: ( localize(9554, "No callers of '{0}'", model.root.name)));
|
|
297
297
|
}
|
|
298
298
|
else {
|
|
299
299
|
this._parent.dataset['state'] = State.Data;
|
|
@@ -128,14 +128,14 @@ class AccessibilityProvider {
|
|
|
128
128
|
this.getDirection = getDirection;
|
|
129
129
|
}
|
|
130
130
|
getWidgetAriaLabel() {
|
|
131
|
-
return ( localize(
|
|
131
|
+
return ( localize(11245, "Call Hierarchy"));
|
|
132
132
|
}
|
|
133
133
|
getAriaLabel(element) {
|
|
134
134
|
if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
|
|
135
|
-
return ( localize(
|
|
135
|
+
return ( localize(11246, "calls from {0}", element.item.name));
|
|
136
136
|
}
|
|
137
137
|
else {
|
|
138
|
-
return ( localize(
|
|
138
|
+
return ( localize(11247, "callers of {0}", element.item.name));
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
}
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js
CHANGED
|
@@ -159,8 +159,8 @@ let InputCodeEditorView = class InputCodeEditorView extends CodeEditorView {
|
|
|
159
159
|
}
|
|
160
160
|
this.editor.setModel(this.inputNumber === 1 ? vm.model.input1.textModel : vm.model.input2.textModel);
|
|
161
161
|
const title = this.inputNumber === 1
|
|
162
|
-
? vm.model.input1.title || ( localize(
|
|
163
|
-
: vm.model.input2.title || ( localize(
|
|
162
|
+
? vm.model.input1.title || ( localize(11271, 'Input 1'))
|
|
163
|
+
: vm.model.input2.title || ( localize(11272, 'Input 2'));
|
|
164
164
|
const description = this.inputNumber === 1
|
|
165
165
|
? vm.model.input1.description
|
|
166
166
|
: vm.model.input2.description;
|
|
@@ -242,19 +242,19 @@ class ModifiedBaseRangeGutterItemModel {
|
|
|
242
242
|
const both = state.includesInput1 && state.includesInput2;
|
|
243
243
|
return [
|
|
244
244
|
this.baseRange.input1Diffs.length > 0
|
|
245
|
-
? action('mergeEditor.acceptInput1', ( localize(
|
|
245
|
+
? action('mergeEditor.acceptInput1', ( localize(11273, 'Accept {0}', this.model.input1.title)), state.toggle(1), state.includesInput1)
|
|
246
246
|
: undefined,
|
|
247
247
|
this.baseRange.input2Diffs.length > 0
|
|
248
|
-
? action('mergeEditor.acceptInput2', ( localize(
|
|
248
|
+
? action('mergeEditor.acceptInput2', ( localize(11273, 'Accept {0}', this.model.input2.title)), state.toggle(2), state.includesInput2)
|
|
249
249
|
: undefined,
|
|
250
250
|
this.baseRange.isConflicting
|
|
251
|
-
? setFields(action('mergeEditor.acceptBoth', ( localize(
|
|
251
|
+
? setFields(action('mergeEditor.acceptBoth', ( localize(11274, 'Accept Both')), state.withInputValue(1, !both).withInputValue(2, !both), both), { enabled: this.baseRange.canBeCombined })
|
|
252
252
|
: undefined,
|
|
253
253
|
( (new Separator())),
|
|
254
254
|
this.baseRange.isConflicting
|
|
255
|
-
? setFields(action('mergeEditor.swap', ( localize(
|
|
255
|
+
? setFields(action('mergeEditor.swap', ( localize(11275, 'Swap')), state.swap(), false), { enabled: !state.kind && (!both || this.baseRange.isOrderRelevant) })
|
|
256
256
|
: undefined,
|
|
257
|
-
setFields(( (new Action('mergeEditor.markAsHandled', ( localize(
|
|
257
|
+
setFields(( (new Action('mergeEditor.markAsHandled', ( localize(11276, 'Mark as Handled')), undefined, true, () => {
|
|
258
258
|
transaction((tx) => {
|
|
259
259
|
this.model.setHandled(this.baseRange, !handled, tx);
|
|
260
260
|
});
|
|
@@ -297,10 +297,10 @@ class MergeConflictGutterItemView extends Disposable {
|
|
|
297
297
|
const item = this.item.read(reader);
|
|
298
298
|
const value = item.toggleState.read(reader);
|
|
299
299
|
const iconMap = {
|
|
300
|
-
[InputState.excluded]: { icon: undefined, checked: false, title: ( localize(
|
|
301
|
-
[InputState.unrecognized]: { icon: Codicon.circleFilled, checked: false, title: ( localize(
|
|
302
|
-
[InputState.first]: { icon: Codicon.check, checked: true, title: ( localize(
|
|
303
|
-
[InputState.second]: { icon: Codicon.checkAll, checked: true, title: ( localize(
|
|
300
|
+
[InputState.excluded]: { icon: undefined, checked: false, title: ( localize(11277, "Accept")) },
|
|
301
|
+
[InputState.unrecognized]: { icon: Codicon.circleFilled, checked: false, title: ( localize(11278, "Accept (result is dirty)")) },
|
|
302
|
+
[InputState.first]: { icon: Codicon.check, checked: true, title: ( localize(11279, "Undo accept")) },
|
|
303
|
+
[InputState.second]: { icon: Codicon.checkAll, checked: true, title: ( localize(11280, "Undo accept (currently second)")) },
|
|
304
304
|
};
|
|
305
305
|
const state = iconMap[value];
|
|
306
306
|
checkBox.setIcon(state.icon);
|
package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js
CHANGED
|
@@ -131,7 +131,7 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
this.editor.setModel(vm.model.resultTextModel);
|
|
134
|
-
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(
|
|
134
|
+
reset(this.htmlElements.title, ...renderLabelWithIcons(( localize(11281, 'Result'))));
|
|
135
135
|
reset(this.htmlElements.description, ...renderLabelWithIcons(this._labelService.getUriLabel(vm.model.resultTextModel.uri, { relative: true })));
|
|
136
136
|
}));
|
|
137
137
|
const remainingConflictsActionBar = this._register(( (new ActionBar(this.htmlElements.detail))));
|
|
@@ -146,8 +146,8 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
146
146
|
}
|
|
147
147
|
const count = model.unhandledConflictsCount.read(reader);
|
|
148
148
|
const text = count === 1
|
|
149
|
-
? ( localize(
|
|
150
|
-
: ( localize(
|
|
149
|
+
? ( localize(11282, '{0} Conflict Remaining', count))
|
|
150
|
+
: ( localize(11283, '{0} Conflicts Remaining ', count));
|
|
151
151
|
remainingConflictsActionBar.clear();
|
|
152
152
|
remainingConflictsActionBar.push({
|
|
153
153
|
class: undefined,
|
|
@@ -159,8 +159,8 @@ let ResultCodeEditorView = class ResultCodeEditorView extends CodeEditorView {
|
|
|
159
159
|
vm.goToNextModifiedBaseRange(m => !model.isHandled(m).get());
|
|
160
160
|
},
|
|
161
161
|
tooltip: count > 0
|
|
162
|
-
? ( localize(
|
|
163
|
-
: ( localize(
|
|
162
|
+
? ( localize(11284, 'Go to next conflict'))
|
|
163
|
+
: ( localize(11285, 'All conflicts handled, the merge can be completed now.')),
|
|
164
164
|
});
|
|
165
165
|
}));
|
|
166
166
|
this._register(applyObservableDecorations(this.editor, this.decorations));
|
|
@@ -262,13 +262,13 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
262
262
|
}
|
|
263
263
|
this._previewDisposable.add(value);
|
|
264
264
|
const title = this._direction === TypeHierarchyDirection.Supertypes
|
|
265
|
-
? ( localize(
|
|
266
|
-
: ( localize(
|
|
265
|
+
? ( localize(9545, "Supertypes of '{0}'", element.model.root.name))
|
|
266
|
+
: ( localize(9546, "Subtypes of '{0}'", element.model.root.name));
|
|
267
267
|
this.setTitle(title);
|
|
268
268
|
}
|
|
269
269
|
showLoading() {
|
|
270
270
|
this._parent.dataset['state'] = State.Loading;
|
|
271
|
-
this.setTitle(( localize(
|
|
271
|
+
this.setTitle(( localize(9547, "Loading...")));
|
|
272
272
|
this._show();
|
|
273
273
|
}
|
|
274
274
|
showMessage(message) {
|
|
@@ -287,8 +287,8 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
287
287
|
await this._tree.expand(root.element);
|
|
288
288
|
if (root.children.length === 0) {
|
|
289
289
|
this.showMessage(this._direction === TypeHierarchyDirection.Supertypes
|
|
290
|
-
? ( localize(
|
|
291
|
-
: ( localize(
|
|
290
|
+
? ( localize(9548, "No supertypes of '{0}'", model.root.name))
|
|
291
|
+
: ( localize(9549, "No subtypes of '{0}'", model.root.name)));
|
|
292
292
|
}
|
|
293
293
|
else {
|
|
294
294
|
this._parent.dataset['state'] = State.Data;
|
|
@@ -116,14 +116,14 @@ class AccessibilityProvider {
|
|
|
116
116
|
this.getDirection = getDirection;
|
|
117
117
|
}
|
|
118
118
|
getWidgetAriaLabel() {
|
|
119
|
-
return ( localize(
|
|
119
|
+
return ( localize(11242, "Type Hierarchy"));
|
|
120
120
|
}
|
|
121
121
|
getAriaLabel(element) {
|
|
122
122
|
if (this.getDirection() === TypeHierarchyDirection.Supertypes) {
|
|
123
|
-
return ( localize(
|
|
123
|
+
return ( localize(11243, "supertypes of {0}", element.item.name));
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
126
|
-
return ( localize(
|
|
126
|
+
return ( localize(11244, "subtypes of {0}", element.item.name));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|