@codingame/monaco-vscode-view-common-service-override 32.0.0 → 32.0.2
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/service-override/vs/workbench/contrib/webview/browser/pre/index.html +37 -75
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +16 -16
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -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 +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +10 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +7 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +3 -3
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +8 -8
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +7 -7
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +5 -5
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +9 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "32.0.
|
|
3
|
+
"version": "32.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-common service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "32.0.
|
|
19
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "32.0.
|
|
18
|
+
"@codingame/monaco-vscode-api": "32.0.2",
|
|
19
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "32.0.2"
|
|
20
20
|
},
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"module": "index.js",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
7
|
<meta http-equiv="Content-Security-Policy"
|
|
8
|
-
content="default-src 'none'; script-src 'sha256-
|
|
8
|
+
content="default-src 'none'; script-src 'sha256-2bgY7b4AY+EULl24tUGduYOHUHUBH5EuIHGYqk8TM+k=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
|
|
9
9
|
|
|
10
10
|
<!-- Disable pinch zooming -->
|
|
11
11
|
<meta name="viewport"
|
|
@@ -53,9 +53,6 @@
|
|
|
53
53
|
|
|
54
54
|
perfMark('scriptStart');
|
|
55
55
|
|
|
56
|
-
/** @type {MessageChannel | undefined} */
|
|
57
|
-
let outerIframeMessageChannel;
|
|
58
|
-
|
|
59
56
|
/**
|
|
60
57
|
* Use polling to track focus of main webview and iframes within the webview
|
|
61
58
|
*
|
|
@@ -201,7 +198,7 @@
|
|
|
201
198
|
::highlight(current-find-highlight) {
|
|
202
199
|
background-color: var(--vscode-editor-findMatchBackground);
|
|
203
200
|
}
|
|
204
|
-
|
|
201
|
+
}`;
|
|
205
202
|
|
|
206
203
|
/**
|
|
207
204
|
* @param {boolean} allowMultipleAPIAcquire
|
|
@@ -258,65 +255,30 @@
|
|
|
258
255
|
}
|
|
259
256
|
|
|
260
257
|
const swPath = encodeURI(`${serviceWorkerUri}?v=${expectedWorkerVersion}&vscode-resource-base-authority=${searchParams.get('vscode-resource-base-authority')}&remoteAuthority=${searchParams.get('remoteAuthority') ?? ''}`);
|
|
261
|
-
navigator.serviceWorker.register(swPath, { type: 'module' })
|
|
258
|
+
navigator.serviceWorker.register(swPath, { type: 'module', updateViaCache: 'none' })
|
|
262
259
|
.then(async registration => {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
navigator.serviceWorker.removeEventListener('message', versionHandler);
|
|
272
|
-
if (event.data.version === expectedWorkerVersion) {
|
|
273
|
-
return resolve();
|
|
274
|
-
} else {
|
|
275
|
-
console.log(`Found unexpected service worker version. Found: ${event.data.version}. Expected: ${expectedWorkerVersion}`);
|
|
276
|
-
console.log(`Attempting to reload service worker`);
|
|
277
|
-
|
|
278
|
-
// If we have the wrong version, try once (and only once) to unregister and re-register
|
|
279
|
-
// Note that `.update` doesn't seem to work desktop electron at the moment so we use
|
|
280
|
-
// `unregister` and `register` here.
|
|
281
|
-
return registration.unregister()
|
|
282
|
-
.then(() => navigator.serviceWorker.register(swPath))
|
|
283
|
-
.finally(() => { resolve(); });
|
|
284
|
-
}
|
|
285
|
-
};
|
|
286
|
-
navigator.serviceWorker.addEventListener('message', versionHandler);
|
|
287
|
-
|
|
288
|
-
const postVersionMessage = (/** @type {ServiceWorker} */ controller) => {
|
|
289
|
-
outerIframeMessageChannel = new MessageChannel();
|
|
290
|
-
controller.postMessage({ channel: 'version' }, [outerIframeMessageChannel.port2]);
|
|
291
|
-
};
|
|
292
|
-
|
|
293
|
-
// At this point, either the service worker is ready and
|
|
294
|
-
// became our controller, or we need to wait for it.
|
|
295
|
-
// Note that navigator.serviceWorker.controller could be a
|
|
296
|
-
// controller from a previously loaded service worker.
|
|
297
|
-
const currentController = navigator.serviceWorker.controller;
|
|
298
|
-
if (currentController?.scriptURL.endsWith(swPath)) {
|
|
299
|
-
// service worker already loaded & ready to receive messages
|
|
300
|
-
postVersionMessage(currentController);
|
|
301
|
-
} else {
|
|
302
|
-
if (currentController) {
|
|
303
|
-
console.log(`Found unexpected service worker controller. Found: ${currentController.scriptURL}. Expected: ${swPath}. Waiting for controllerchange.`);
|
|
304
|
-
} else {
|
|
305
|
-
console.log(`No service worker controller found. Waiting for controllerchange.`);
|
|
306
|
-
}
|
|
260
|
+
if (navigator.serviceWorker.controller) {
|
|
261
|
+
// A previous SW is already controlling. Force an update
|
|
262
|
+
// check so we don't serve stale resources after a VS Code
|
|
263
|
+
// update. register() resolves before the update check
|
|
264
|
+
// completes, so we must call update() explicitly to wait
|
|
265
|
+
// for the download + byte-comparison to finish.
|
|
266
|
+
registration = await registration.update();
|
|
267
|
+
}
|
|
307
268
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
}
|
|
317
|
-
};
|
|
318
|
-
navigator.serviceWorker.addEventListener('controllerchange', onControllerChange);
|
|
269
|
+
// If a new worker was found, wait for it to take control via skipWaiting() + clients.claim() in the SW.
|
|
270
|
+
if (
|
|
271
|
+
// New worker
|
|
272
|
+
registration.installing || registration.waiting
|
|
273
|
+
// First ever load
|
|
274
|
+
|| !navigator.serviceWorker.controller
|
|
275
|
+
) {
|
|
276
|
+
await new Promise(r => {
|
|
277
|
+
navigator.serviceWorker.addEventListener('controllerchange', r, { once: true });
|
|
278
|
+
});
|
|
319
279
|
}
|
|
280
|
+
|
|
281
|
+
return resolve();
|
|
320
282
|
}).catch(error => {
|
|
321
283
|
if (!onElectron && error instanceof Error && error.message.includes('user denied permission')) {
|
|
322
284
|
return reject(new Error(`Could not register service worker. Please make sure third party cookies are enabled: ${error}`));
|
|
@@ -460,11 +422,21 @@
|
|
|
460
422
|
|
|
461
423
|
if (!disableServiceWorker) {
|
|
462
424
|
hostMessaging.onMessage('did-load-resource', (_event, data) => {
|
|
463
|
-
|
|
425
|
+
const transfer = data.stream ? [data.stream] : [];
|
|
426
|
+
assertIsDefined(navigator.serviceWorker.controller).postMessage({ channel: 'did-load-resource', data }, transfer);
|
|
464
427
|
});
|
|
465
428
|
|
|
466
|
-
|
|
467
|
-
|
|
429
|
+
for (const channel of [
|
|
430
|
+
'did-load-resource-end',
|
|
431
|
+
'did-load-localhost',
|
|
432
|
+
]) {
|
|
433
|
+
hostMessaging.onMessage(channel, (_event, data) => {
|
|
434
|
+
assertIsDefined(navigator.serviceWorker.controller).postMessage({ channel, data });
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
hostMessaging.onMessage('did-load-resource-chunk', (_event, data) => {
|
|
439
|
+
assertIsDefined(navigator.serviceWorker.controller).postMessage({ channel: 'did-load-resource-chunk', data }, data.data?.buffer ? [data.data.buffer] : []);
|
|
468
440
|
});
|
|
469
441
|
|
|
470
442
|
navigator.serviceWorker.addEventListener('message', event => {
|
|
@@ -711,7 +683,7 @@
|
|
|
711
683
|
* @param {KeyboardEvent} e
|
|
712
684
|
* @return {boolean}
|
|
713
685
|
*/
|
|
714
|
-
|
|
686
|
+
function isHelp(e) {
|
|
715
687
|
// 112: keyCode of "F1"
|
|
716
688
|
return e.keyCode === 112;
|
|
717
689
|
}
|
|
@@ -1220,16 +1192,6 @@
|
|
|
1220
1192
|
unloadMonitor.onIframeLoaded(newFrame);
|
|
1221
1193
|
}
|
|
1222
1194
|
|
|
1223
|
-
if (!disableServiceWorker && outerIframeMessageChannel) {
|
|
1224
|
-
outerIframeMessageChannel.port1.onmessage = event => {
|
|
1225
|
-
switch (event.data.channel) {
|
|
1226
|
-
case 'load-resource':
|
|
1227
|
-
case 'load-localhost':
|
|
1228
|
-
hostMessaging.postMessage(event.data.channel, event.data);
|
|
1229
|
-
return;
|
|
1230
|
-
}
|
|
1231
|
-
};
|
|
1232
|
-
}
|
|
1233
1195
|
});
|
|
1234
1196
|
|
|
1235
1197
|
// propagate vscode-context-menu-visible class
|
|
@@ -37,7 +37,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
37
37
|
this.add(( new CustomEditorInfo({
|
|
38
38
|
id: webviewEditorContribution.viewType,
|
|
39
39
|
displayName: webviewEditorContribution.displayName,
|
|
40
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
40
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(8485, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
41
41
|
selector: webviewEditorContribution.selector || [],
|
|
42
42
|
priority: getPriorityFromContribution(webviewEditorContribution, extension.description, "priority") ?? RegisteredEditorPriority.default,
|
|
43
43
|
diffEditorPriority: hasCustomEditorPriorityProposal ? getPriorityFromContribution(webviewEditorContribution, extension.description, "diffEditorPriority") : undefined,
|
|
@@ -6,7 +6,7 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from '@
|
|
|
6
6
|
|
|
7
7
|
const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( new RawContextKey("activeCustomEditorId", "", {
|
|
8
8
|
type: "string",
|
|
9
|
-
description: ( localize(
|
|
9
|
+
description: ( localize(8486, "The viewType of the currently active custom editor."))
|
|
10
10
|
}));
|
|
11
11
|
const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( new RawContextKey("focusedCustomEditorIsEditable", false));
|
|
12
12
|
var CustomEditorPriority;
|
|
@@ -25,20 +25,20 @@ const customEditorsContributionSchema = {
|
|
|
25
25
|
[Fields.viewType]: {
|
|
26
26
|
type: "string",
|
|
27
27
|
markdownDescription: ( localize(
|
|
28
|
-
|
|
28
|
+
8488,
|
|
29
29
|
"Identifier for the custom editor. This must be unique across all custom editors, so we recommend including your extension id as part of `viewType`. The `viewType` is used when registering custom editors with `vscode.registerCustomEditorProvider` and in the `onCustomEditor:${id}` [activation event](https://code.visualstudio.com/api/references/activation-events)."
|
|
30
30
|
))
|
|
31
31
|
},
|
|
32
32
|
[Fields.displayName]: {
|
|
33
33
|
type: "string",
|
|
34
34
|
description: ( localize(
|
|
35
|
-
|
|
35
|
+
8489,
|
|
36
36
|
"Human readable name of the custom editor. This is displayed to users when selecting which editor to use."
|
|
37
37
|
))
|
|
38
38
|
},
|
|
39
39
|
[Fields.selector]: {
|
|
40
40
|
type: "array",
|
|
41
|
-
description: ( localize(
|
|
41
|
+
description: ( localize(8490, "Set of globs that the custom editor is enabled for.")),
|
|
42
42
|
items: {
|
|
43
43
|
type: "object",
|
|
44
44
|
defaultSnippets: [{
|
|
@@ -50,7 +50,7 @@ const customEditorsContributionSchema = {
|
|
|
50
50
|
properties: {
|
|
51
51
|
filenamePattern: {
|
|
52
52
|
type: "string",
|
|
53
|
-
description: ( localize(
|
|
53
|
+
description: ( localize(8491, "Glob that the custom editor is enabled for."))
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -58,15 +58,15 @@ const customEditorsContributionSchema = {
|
|
|
58
58
|
[Fields.priority]: {
|
|
59
59
|
type: "string",
|
|
60
60
|
markdownDescription: ( localize(
|
|
61
|
-
|
|
61
|
+
8492,
|
|
62
62
|
"Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting."
|
|
63
63
|
)),
|
|
64
64
|
enum: [CustomEditorPriority.default, CustomEditorPriority.option],
|
|
65
65
|
markdownEnumDescriptions: [( localize(
|
|
66
|
-
|
|
66
|
+
8493,
|
|
67
67
|
"The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource."
|
|
68
68
|
)), ( localize(
|
|
69
|
-
|
|
69
|
+
8494,
|
|
70
70
|
"The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command."
|
|
71
71
|
))],
|
|
72
72
|
default: CustomEditorPriority.default
|
|
@@ -74,30 +74,30 @@ const customEditorsContributionSchema = {
|
|
|
74
74
|
[Fields.diffEditorPriority]: {
|
|
75
75
|
type: "string",
|
|
76
76
|
markdownDescription: ( localize(
|
|
77
|
-
|
|
77
|
+
8495,
|
|
78
78
|
"Controls if the custom editor is enabled automatically when the user opens a diff. When not specified, the value of `priority` is used."
|
|
79
79
|
)),
|
|
80
80
|
enum: [CustomEditorPriority.default, CustomEditorPriority.option],
|
|
81
81
|
markdownEnumDescriptions: [( localize(
|
|
82
|
-
|
|
82
|
+
8496,
|
|
83
83
|
"The editor is automatically used when the user opens a diff, provided that no other default custom editors are registered for that resource."
|
|
84
84
|
)), ( localize(
|
|
85
|
-
|
|
85
|
+
8497,
|
|
86
86
|
"The editor is not automatically used when the user opens a diff, but a user can switch to the editor using the `Reopen With` command."
|
|
87
87
|
))]
|
|
88
88
|
},
|
|
89
89
|
[Fields.mergeEditorPriority]: {
|
|
90
90
|
type: "string",
|
|
91
91
|
markdownDescription: ( localize(
|
|
92
|
-
|
|
92
|
+
8498,
|
|
93
93
|
"Controls if the custom editor is enabled automatically when the user opens a merge editor. When not specified, the value of `priority` is used."
|
|
94
94
|
)),
|
|
95
95
|
enum: [CustomEditorPriority.default, CustomEditorPriority.option],
|
|
96
96
|
markdownEnumDescriptions: [( localize(
|
|
97
|
-
|
|
97
|
+
8499,
|
|
98
98
|
"The editor is automatically used when the user opens a merge editor, provided that no other default custom editors are registered for that resource."
|
|
99
99
|
)), ( localize(
|
|
100
|
-
|
|
100
|
+
8500,
|
|
101
101
|
"The editor is not automatically used when the user opens a merge editor, but a user can switch to the editor using the `Reopen With` command."
|
|
102
102
|
))]
|
|
103
103
|
}
|
|
@@ -107,7 +107,7 @@ const customEditorsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
107
107
|
extensionPoint: "customEditors",
|
|
108
108
|
deps: [languagesExtPoint],
|
|
109
109
|
jsonSchema: {
|
|
110
|
-
description: ( localize(
|
|
110
|
+
description: ( localize(8501, "Contributed custom editors.")),
|
|
111
111
|
type: "array",
|
|
112
112
|
defaultSnippets: [{
|
|
113
113
|
body: [{
|
|
@@ -148,7 +148,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
148
148
|
dispose: () => {}
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
const headers = [( localize(
|
|
151
|
+
const headers = [( localize(8502, "View Type")), ( localize(8503, "Priority")), ( localize(8504, "Filename Pattern"))];
|
|
152
152
|
const rows = ( customEditors.map(customEditor => {
|
|
153
153
|
return [
|
|
154
154
|
customEditor.viewType,
|
|
@@ -167,7 +167,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
167
167
|
}
|
|
168
168
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
169
169
|
id: "customEditors",
|
|
170
|
-
label: ( localize(
|
|
170
|
+
label: ( localize(8505, "Custom Editors")),
|
|
171
171
|
access: {
|
|
172
172
|
canToggle: false
|
|
173
173
|
},
|
|
@@ -206,8 +206,8 @@ let LanguageStatus = class LanguageStatus {
|
|
|
206
206
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
207
207
|
}
|
|
208
208
|
const props = {
|
|
209
|
-
name: ( localize(
|
|
210
|
-
ariaLabel: ( localize(
|
|
209
|
+
name: ( localize(10597, "Editor Language Status")),
|
|
210
|
+
ariaLabel: ( localize(10598, "Editor Language Status: {0}", ariaLabels.join(", next: "))),
|
|
211
211
|
tooltip: this._combinedEntryTooltip,
|
|
212
212
|
command: ShowTooltipCommand,
|
|
213
213
|
text: isOneBusy ? "$(loading~spin)" : text
|
|
@@ -325,7 +325,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
325
325
|
const actionBar = ( new ActionBar(right, {
|
|
326
326
|
hoverDelegate: nativeHoverDelegate
|
|
327
327
|
}));
|
|
328
|
-
const actionLabel = isPinned ? ( localize(
|
|
328
|
+
const actionLabel = isPinned ? ( localize(10599, "Remove from Status Bar")) : ( localize(10600, "Add to Status Bar"));
|
|
329
329
|
actionBar.setAriaLabel(actionLabel);
|
|
330
330
|
store.add(actionBar);
|
|
331
331
|
let action;
|
|
@@ -393,11 +393,11 @@ let LanguageStatus = class LanguageStatus {
|
|
|
393
393
|
const textValue = typeof status.label === "string" ? status.label : status.label.value;
|
|
394
394
|
if (status.detail) {
|
|
395
395
|
return {
|
|
396
|
-
label: ( localize(
|
|
396
|
+
label: ( localize(10601, "{0}, {1}", textValue, status.detail))
|
|
397
397
|
};
|
|
398
398
|
} else {
|
|
399
399
|
return {
|
|
400
|
-
label: ( localize(
|
|
400
|
+
label: ( localize(10602, "{0}", textValue))
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
403
|
}
|
|
@@ -410,7 +410,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
410
410
|
}
|
|
411
411
|
const textValue = typeof item.label === "string" ? item.label : item.label.shortValue;
|
|
412
412
|
return {
|
|
413
|
-
name: ( localize(
|
|
413
|
+
name: ( localize(10603, "{0} (Language Status)", item.name)),
|
|
414
414
|
text: computeText(textValue, item.busy),
|
|
415
415
|
ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
|
|
416
416
|
role: item.accessibilityInfo?.role,
|
|
@@ -428,7 +428,7 @@ class ResetAction extends Action2 {
|
|
|
428
428
|
constructor() {
|
|
429
429
|
super({
|
|
430
430
|
id: "editor.inlayHints.Reset",
|
|
431
|
-
title: ( localize2(
|
|
431
|
+
title: ( localize2(10604, "Reset Language Status Interaction Counter")),
|
|
432
432
|
category: Categories.View,
|
|
433
433
|
f1: true
|
|
434
434
|
});
|
package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js
CHANGED
|
@@ -13,7 +13,7 @@ import { FoldingController } from '@codingame/monaco-vscode-api/vscode/vs/editor
|
|
|
13
13
|
import { ColorDetector } from '@codingame/monaco-vscode-api/vscode/vs/editor/contrib/colorPicker/browser/colorDetector';
|
|
14
14
|
|
|
15
15
|
const openSettingsCommand = "workbench.action.openSettings";
|
|
16
|
-
const configureSettingsLabel = ( localize(
|
|
16
|
+
const configureSettingsLabel = ( localize(10605, "Configure"));
|
|
17
17
|
let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
|
|
18
18
|
constructor(editorService, languageStatusService) {
|
|
19
19
|
super();
|
|
@@ -38,9 +38,9 @@ LimitIndicatorContribution = ( __decorate([( __param(0, IEditorService)), ( __pa
|
|
|
38
38
|
class ColorDecorationAccessor {
|
|
39
39
|
constructor() {
|
|
40
40
|
this.id = "decoratorsLimitInfo";
|
|
41
|
-
this.name = ( localize(
|
|
42
|
-
this.label = ( localize(
|
|
43
|
-
this.source = ( localize(
|
|
41
|
+
this.name = ( localize(10606, "Color Decorator Status"));
|
|
42
|
+
this.label = ( localize(10607, "Color decorators"));
|
|
43
|
+
this.source = ( localize(10608, "Color Decorators"));
|
|
44
44
|
this.settingsId = "editor.colorDecoratorsLimit";
|
|
45
45
|
}
|
|
46
46
|
getLimitReporter(editor) {
|
|
@@ -50,9 +50,9 @@ class ColorDecorationAccessor {
|
|
|
50
50
|
class FoldingRangeAccessor {
|
|
51
51
|
constructor() {
|
|
52
52
|
this.id = "foldingLimitInfo";
|
|
53
|
-
this.name = ( localize(
|
|
54
|
-
this.label = ( localize(
|
|
55
|
-
this.source = ( localize(
|
|
53
|
+
this.name = ( localize(10609, "Folding Status"));
|
|
54
|
+
this.label = ( localize(10610, "Folding ranges"));
|
|
55
|
+
this.source = ( localize(10611, "Folding"));
|
|
56
56
|
this.settingsId = "editor.foldingMaximumRegions";
|
|
57
57
|
}
|
|
58
58
|
getLimitReporter(editor) {
|
|
@@ -94,7 +94,7 @@ class LanguageStatusEntry {
|
|
|
94
94
|
name: this.accessor.name,
|
|
95
95
|
severity: Severity.Warning,
|
|
96
96
|
label: this.accessor.label,
|
|
97
|
-
detail: ( localize(
|
|
97
|
+
detail: ( localize(10612, "only {0} shown for performance reasons", info.limited)),
|
|
98
98
|
command: {
|
|
99
99
|
id: openSettingsCommand,
|
|
100
100
|
arguments: [this.accessor.settingsId],
|
|
@@ -65,7 +65,7 @@ class OpenMergeEditor extends Action2 {
|
|
|
65
65
|
constructor() {
|
|
66
66
|
super({
|
|
67
67
|
id: "_open.mergeEditor",
|
|
68
|
-
title: ( localize2(
|
|
68
|
+
title: ( localize2(11251, "Open Merge Editor"))
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
run(accessor, ...args) {
|
|
@@ -152,7 +152,7 @@ class SetMixedLayout extends Action2 {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: "merge.mixedLayout",
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(11252, "Mixed Layout")),
|
|
156
156
|
toggled: ( ctxMergeEditorLayout.isEqualTo("mixed")),
|
|
157
157
|
menu: [{
|
|
158
158
|
id: MenuId.EditorTitle,
|
|
@@ -176,7 +176,7 @@ class SetColumnLayout extends Action2 {
|
|
|
176
176
|
constructor() {
|
|
177
177
|
super({
|
|
178
178
|
id: "merge.columnLayout",
|
|
179
|
-
title: ( localize2(
|
|
179
|
+
title: ( localize2(11253, "Column Layout")),
|
|
180
180
|
toggled: ( ctxMergeEditorLayout.isEqualTo("columns")),
|
|
181
181
|
menu: [{
|
|
182
182
|
id: MenuId.EditorTitle,
|
|
@@ -200,7 +200,7 @@ class ShowNonConflictingChanges extends Action2 {
|
|
|
200
200
|
constructor() {
|
|
201
201
|
super({
|
|
202
202
|
id: "merge.showNonConflictingChanges",
|
|
203
|
-
title: ( localize2(
|
|
203
|
+
title: ( localize2(11254, "Show Non-Conflicting Changes")),
|
|
204
204
|
toggled: ( ctxMergeEditorShowNonConflictingChanges.isEqualTo(true)),
|
|
205
205
|
menu: [{
|
|
206
206
|
id: MenuId.EditorTitle,
|
|
@@ -224,7 +224,7 @@ class ShowHideBase extends Action2 {
|
|
|
224
224
|
constructor() {
|
|
225
225
|
super({
|
|
226
226
|
id: "merge.showBase",
|
|
227
|
-
title: ( localize2(
|
|
227
|
+
title: ( localize2(11255, "Show Base")),
|
|
228
228
|
toggled: ( ctxMergeEditorShowBase.isEqualTo(true)),
|
|
229
229
|
menu: [{
|
|
230
230
|
id: MenuId.EditorTitle,
|
|
@@ -247,7 +247,7 @@ class ShowHideTopBase extends Action2 {
|
|
|
247
247
|
constructor() {
|
|
248
248
|
super({
|
|
249
249
|
id: "merge.showBaseTop",
|
|
250
|
-
title: ( localize2(
|
|
250
|
+
title: ( localize2(11256, "Show Base Top")),
|
|
251
251
|
toggled: ( ContextKeyExpr.and(ctxMergeEditorShowBase, ctxMergeEditorShowBaseAtTop)),
|
|
252
252
|
menu: [{
|
|
253
253
|
id: MenuId.EditorTitle,
|
|
@@ -270,7 +270,7 @@ class ShowHideCenterBase extends Action2 {
|
|
|
270
270
|
constructor() {
|
|
271
271
|
super({
|
|
272
272
|
id: "merge.showBaseCenter",
|
|
273
|
-
title: ( localize2(
|
|
273
|
+
title: ( localize2(11257, "Show Base Center")),
|
|
274
274
|
toggled: ( ContextKeyExpr.and(ctxMergeEditorShowBase, ( ctxMergeEditorShowBaseAtTop.negate()))),
|
|
275
275
|
menu: [{
|
|
276
276
|
id: MenuId.EditorTitle,
|
|
@@ -289,13 +289,13 @@ class ShowHideCenterBase extends Action2 {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
const mergeEditorCategory = ( localize2(
|
|
292
|
+
const mergeEditorCategory = ( localize2(11258, "Merge Editor"));
|
|
293
293
|
class OpenResultResource extends MergeEditorAction {
|
|
294
294
|
constructor() {
|
|
295
295
|
super({
|
|
296
296
|
id: "merge.openResult",
|
|
297
297
|
icon: Codicon.goToFile,
|
|
298
|
-
title: ( localize2(
|
|
298
|
+
title: ( localize2(11259, "Open File")),
|
|
299
299
|
category: mergeEditorCategory,
|
|
300
300
|
menu: [{
|
|
301
301
|
id: MenuId.EditorTitle,
|
|
@@ -318,7 +318,7 @@ class GoToNextUnhandledConflict extends MergeEditorAction {
|
|
|
318
318
|
super({
|
|
319
319
|
id: "merge.goToNextUnhandledConflict",
|
|
320
320
|
category: mergeEditorCategory,
|
|
321
|
-
title: ( localize2(
|
|
321
|
+
title: ( localize2(11260, "Go to Next Unhandled Conflict")),
|
|
322
322
|
icon: Codicon.arrowDown,
|
|
323
323
|
menu: [{
|
|
324
324
|
id: MenuId.EditorTitle,
|
|
@@ -340,7 +340,7 @@ class GoToPreviousUnhandledConflict extends MergeEditorAction {
|
|
|
340
340
|
super({
|
|
341
341
|
id: "merge.goToPreviousUnhandledConflict",
|
|
342
342
|
category: mergeEditorCategory,
|
|
343
|
-
title: ( localize2(
|
|
343
|
+
title: ( localize2(11261, "Go to Previous Unhandled Conflict")),
|
|
344
344
|
icon: Codicon.arrowUp,
|
|
345
345
|
menu: [{
|
|
346
346
|
id: MenuId.EditorTitle,
|
|
@@ -362,7 +362,7 @@ class ToggleActiveConflictInput1 extends MergeEditorAction {
|
|
|
362
362
|
super({
|
|
363
363
|
id: "merge.toggleActiveConflictInput1",
|
|
364
364
|
category: mergeEditorCategory,
|
|
365
|
-
title: ( localize2(
|
|
365
|
+
title: ( localize2(11262, "Toggle Current Conflict from Left")),
|
|
366
366
|
f1: true,
|
|
367
367
|
precondition: ctxIsMergeEditor
|
|
368
368
|
});
|
|
@@ -376,7 +376,7 @@ class ToggleActiveConflictInput2 extends MergeEditorAction {
|
|
|
376
376
|
super({
|
|
377
377
|
id: "merge.toggleActiveConflictInput2",
|
|
378
378
|
category: mergeEditorCategory,
|
|
379
|
-
title: ( localize2(
|
|
379
|
+
title: ( localize2(11263, "Toggle Current Conflict from Right")),
|
|
380
380
|
f1: true,
|
|
381
381
|
precondition: ctxIsMergeEditor
|
|
382
382
|
});
|
|
@@ -390,8 +390,8 @@ class CompareInput1WithBaseCommand extends MergeEditorAction {
|
|
|
390
390
|
super({
|
|
391
391
|
id: "mergeEditor.compareInput1WithBase",
|
|
392
392
|
category: mergeEditorCategory,
|
|
393
|
-
title: ( localize2(
|
|
394
|
-
shortTitle: ( localize(
|
|
393
|
+
title: ( localize2(11264, "Compare Input 1 With Base")),
|
|
394
|
+
shortTitle: ( localize(11265, "Compare With Base")),
|
|
395
395
|
f1: true,
|
|
396
396
|
precondition: ctxIsMergeEditor,
|
|
397
397
|
menu: {
|
|
@@ -411,8 +411,8 @@ class CompareInput2WithBaseCommand extends MergeEditorAction {
|
|
|
411
411
|
super({
|
|
412
412
|
id: "mergeEditor.compareInput2WithBase",
|
|
413
413
|
category: mergeEditorCategory,
|
|
414
|
-
title: ( localize2(
|
|
415
|
-
shortTitle: ( localize(
|
|
414
|
+
title: ( localize2(11266, "Compare Input 2 With Base")),
|
|
415
|
+
shortTitle: ( localize(11265, "Compare With Base")),
|
|
416
416
|
f1: true,
|
|
417
417
|
precondition: ctxIsMergeEditor,
|
|
418
418
|
menu: {
|
|
@@ -457,7 +457,7 @@ class OpenBaseFile extends MergeEditorAction {
|
|
|
457
457
|
super({
|
|
458
458
|
id: "merge.openBaseEditor",
|
|
459
459
|
category: mergeEditorCategory,
|
|
460
|
-
title: ( localize2(
|
|
460
|
+
title: ( localize2(11267, "Open Base File")),
|
|
461
461
|
f1: true,
|
|
462
462
|
precondition: ctxIsMergeEditor
|
|
463
463
|
});
|
|
@@ -472,7 +472,7 @@ class AcceptAllInput1 extends MergeEditorAction {
|
|
|
472
472
|
super({
|
|
473
473
|
id: "merge.acceptAllInput1",
|
|
474
474
|
category: mergeEditorCategory,
|
|
475
|
-
title: ( localize2(
|
|
475
|
+
title: ( localize2(11268, "Accept All Incoming Changes from Left")),
|
|
476
476
|
f1: true,
|
|
477
477
|
precondition: ctxIsMergeEditor,
|
|
478
478
|
menu: {
|
|
@@ -491,7 +491,7 @@ class AcceptAllInput2 extends MergeEditorAction {
|
|
|
491
491
|
super({
|
|
492
492
|
id: "merge.acceptAllInput2",
|
|
493
493
|
category: mergeEditorCategory,
|
|
494
|
-
title: ( localize2(
|
|
494
|
+
title: ( localize2(11269, "Accept All Current Changes from Right")),
|
|
495
495
|
f1: true,
|
|
496
496
|
precondition: ctxIsMergeEditor,
|
|
497
497
|
menu: {
|
|
@@ -510,8 +510,8 @@ class ResetToBaseAndAutoMergeCommand extends MergeEditorAction {
|
|
|
510
510
|
super({
|
|
511
511
|
id: "mergeEditor.resetResultToBaseAndAutoMerge",
|
|
512
512
|
category: mergeEditorCategory,
|
|
513
|
-
title: ( localize2(
|
|
514
|
-
shortTitle: ( localize(
|
|
513
|
+
title: ( localize2(11270, "Reset Result")),
|
|
514
|
+
shortTitle: ( localize(11271, "Reset")),
|
|
515
515
|
f1: true,
|
|
516
516
|
precondition: ctxIsMergeEditor,
|
|
517
517
|
menu: {
|
|
@@ -530,7 +530,7 @@ class ResetCloseWithConflictsChoice extends Action2 {
|
|
|
530
530
|
super({
|
|
531
531
|
id: "mergeEditor.resetCloseWithConflictsChoice",
|
|
532
532
|
category: mergeEditorCategory,
|
|
533
|
-
title: ( localize2(
|
|
533
|
+
title: ( localize2(11272, "Reset Choice for 'Close with Conflicts'")),
|
|
534
534
|
f1: true
|
|
535
535
|
});
|
|
536
536
|
}
|
|
@@ -543,7 +543,7 @@ class AcceptAllCombination extends MergeEditorAction2 {
|
|
|
543
543
|
super({
|
|
544
544
|
id: "mergeEditor.acceptAllCombination",
|
|
545
545
|
category: mergeEditorCategory,
|
|
546
|
-
title: ( localize2(
|
|
546
|
+
title: ( localize2(11273, "Accept All Combination")),
|
|
547
547
|
f1: true
|
|
548
548
|
});
|
|
549
549
|
}
|
|
@@ -572,7 +572,7 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
572
572
|
super({
|
|
573
573
|
id: "mergeEditor.acceptMerge",
|
|
574
574
|
category: mergeEditorCategory,
|
|
575
|
-
title: ( localize2(
|
|
575
|
+
title: ( localize2(11274, "Complete Merge")),
|
|
576
576
|
f1: true,
|
|
577
577
|
precondition: ctxIsMergeEditor,
|
|
578
578
|
keybinding: [{
|
|
@@ -597,12 +597,12 @@ class AcceptMerge extends MergeEditorAction2 {
|
|
|
597
597
|
confirmed
|
|
598
598
|
} = await dialogService.confirm({
|
|
599
599
|
message: ( localize(
|
|
600
|
-
|
|
600
|
+
11275,
|
|
601
601
|
"Do you want to complete the merge of {0}?",
|
|
602
602
|
basename(inputModel.resultUri)
|
|
603
603
|
)),
|
|
604
|
-
detail: ( localize(
|
|
605
|
-
primaryButton: ( localize(
|
|
604
|
+
detail: ( localize(11276, "The file contains unhandled conflicts.")),
|
|
605
|
+
primaryButton: ( localize(11277, "&&Complete with Conflicts"))
|
|
606
606
|
});
|
|
607
607
|
if (!confirmed) {
|
|
608
608
|
return {
|
|
@@ -622,7 +622,7 @@ class ToggleBetweenInputs extends MergeEditorAction2 {
|
|
|
622
622
|
super({
|
|
623
623
|
id: "mergeEditor.toggleBetweenInputs",
|
|
624
624
|
category: mergeEditorCategory,
|
|
625
|
-
title: ( localize2(
|
|
625
|
+
title: ( localize2(11278, "Toggle Between Merge Editor Inputs")),
|
|
626
626
|
f1: true,
|
|
627
627
|
precondition: ctxIsMergeEditor,
|
|
628
628
|
keybinding: [{
|