@codingame/monaco-vscode-view-common-service-override 17.2.0 → 18.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/index.js +2 -2
- package/package.json +43 -42
- package/service-override/vs/workbench/contrib/webview/browser/pre/service-worker.js +328 -444
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +59 -59
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +170 -167
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +10 -9
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- 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/customEditor/browser/customEditor.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +12 -12
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +30 -30
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +4 -4
- 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/editorGutter.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +8 -9
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +15 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +10 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +5 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +7 -9
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +13 -13
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +7 -7
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +15 -11
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +10 -10
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +11 -11
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +2 -2
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +2 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +9 -9
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +4 -4
|
@@ -21,27 +21,28 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
21
21
|
'terminalEditor',
|
|
22
22
|
'mainThreadWebview-simpleBrowser.view',
|
|
23
23
|
'mainThreadWebview-browserPreview',
|
|
24
|
-
'workbench.editor.chatSession'
|
|
24
|
+
'workbench.editor.chatSession',
|
|
25
|
+
'workbench.editor.processExplorer'
|
|
25
26
|
])); }
|
|
26
27
|
static { this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
27
28
|
{
|
|
28
29
|
id: 'workbench.input.interactive',
|
|
29
|
-
label: ( localize(
|
|
30
|
+
label: ( localize(3242, 'Interactive Window')),
|
|
30
31
|
priority: RegisteredEditorPriority.builtin
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
34
|
id: 'mainThreadWebview-markdown.preview',
|
|
34
|
-
label: ( localize(
|
|
35
|
+
label: ( localize(3243, "Markdown Preview")),
|
|
35
36
|
priority: RegisteredEditorPriority.builtin
|
|
36
37
|
},
|
|
37
38
|
{
|
|
38
39
|
id: 'mainThreadWebview-simpleBrowser.view',
|
|
39
|
-
label: ( localize(
|
|
40
|
+
label: ( localize(3244, "Simple Browser")),
|
|
40
41
|
priority: RegisteredEditorPriority.builtin
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
44
|
id: 'mainThreadWebview-browserPreview',
|
|
44
|
-
label: ( localize(
|
|
45
|
+
label: ( localize(3245, "Live Preview")),
|
|
45
46
|
priority: RegisteredEditorPriority.builtin
|
|
46
47
|
}
|
|
47
48
|
]; }
|
|
@@ -86,7 +87,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
86
87
|
'workbench.editor.autoLockGroups': {
|
|
87
88
|
type: 'object',
|
|
88
89
|
description: ( localize(
|
|
89
|
-
|
|
90
|
+
3246,
|
|
90
91
|
"If an editor matching one of the listed types is opened as the first in an editor group and more than one group is open, the group is automatically locked. Locked groups will only be used for opening editors when explicitly chosen by a user gesture (for example drag and drop), but not by default. Consequently, the active editor in a locked group is less likely to be replaced accidentally with a different editor."
|
|
91
92
|
)),
|
|
92
93
|
properties: autoLockGroupConfiguration,
|
|
@@ -104,7 +105,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
104
105
|
default: '',
|
|
105
106
|
enum: [...binaryEditorCandidates, ''],
|
|
106
107
|
description: ( localize(
|
|
107
|
-
|
|
108
|
+
3247,
|
|
108
109
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
109
110
|
)),
|
|
110
111
|
}
|
|
@@ -117,7 +118,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
117
118
|
'workbench.editorAssociations': {
|
|
118
119
|
type: 'object',
|
|
119
120
|
markdownDescription: ( localize(
|
|
120
|
-
|
|
121
|
+
3248,
|
|
121
122
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
122
123
|
)),
|
|
123
124
|
patternProperties: {
|
|
@@ -139,7 +140,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
139
140
|
minimum: 1,
|
|
140
141
|
scope: ConfigurationScope.RESOURCE,
|
|
141
142
|
markdownDescription: ( localize(
|
|
142
|
-
|
|
143
|
+
3249,
|
|
143
144
|
"Controls the minimum size of a file in MB before asking for confirmation when opening in the editor. Note that this setting may not apply to all editor types and environments."
|
|
144
145
|
)),
|
|
145
146
|
}
|
|
@@ -24,12 +24,12 @@ import { registerIcon } from '@codingame/monaco-vscode-api/vscode/vs/platform/th
|
|
|
24
24
|
import { isCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
25
25
|
|
|
26
26
|
var CallHierarchyController_1;
|
|
27
|
-
const _ctxHasCallHierarchyProvider = ( new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(
|
|
28
|
-
const _ctxCallHierarchyVisible = ( new RawContextKey('callHierarchyVisible', false, ( localize(
|
|
27
|
+
const _ctxHasCallHierarchyProvider = ( new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4309, 'Whether a call hierarchy provider is available'))));
|
|
28
|
+
const _ctxCallHierarchyVisible = ( new RawContextKey('callHierarchyVisible', false, ( localize(4310, 'Whether call hierarchy peek is currently showing'))));
|
|
29
29
|
const _ctxCallHierarchyDirection = ( new RawContextKey(
|
|
30
30
|
'callHierarchyDirection',
|
|
31
31
|
undefined,
|
|
32
|
-
{ type: 'string', description: ( localize(
|
|
32
|
+
{ type: 'string', description: ( localize(4311, 'Whether call hierarchy shows incoming or outgoing calls')) }
|
|
33
33
|
));
|
|
34
34
|
function sanitizedDirection(candidate) {
|
|
35
35
|
return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo
|
|
@@ -117,14 +117,14 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
117
117
|
this._widget.showModel(model);
|
|
118
118
|
}
|
|
119
119
|
else {
|
|
120
|
-
this._widget.showMessage(( localize(
|
|
120
|
+
this._widget.showMessage(( localize(4312, "No results")));
|
|
121
121
|
}
|
|
122
122
|
}).catch(err => {
|
|
123
123
|
if (isCancellationError(err)) {
|
|
124
124
|
this.endCallHierarchy();
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
|
-
this._widget.showMessage(( localize(
|
|
127
|
+
this._widget.showMessage(( localize(4313, "Failed to show call hierarchy")));
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
showOutgoingCalls() {
|
|
@@ -152,7 +152,7 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
|
|
152
152
|
constructor() {
|
|
153
153
|
super({
|
|
154
154
|
id: 'editor.showCallHierarchy',
|
|
155
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(4314, 'Peek Call Hierarchy')),
|
|
156
156
|
menu: {
|
|
157
157
|
id: MenuId.EditorContextPeek,
|
|
158
158
|
group: 'navigation',
|
|
@@ -176,8 +176,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
176
176
|
constructor() {
|
|
177
177
|
super({
|
|
178
178
|
id: 'editor.showIncomingCalls',
|
|
179
|
-
title: ( localize2(
|
|
180
|
-
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(
|
|
179
|
+
title: ( localize2(4315, 'Show Incoming Calls')),
|
|
180
|
+
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4316, 'Icon for incoming calls in the call hierarchy view.'))),
|
|
181
181
|
precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom)))),
|
|
182
182
|
keybinding: {
|
|
183
183
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -198,8 +198,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
198
198
|
constructor() {
|
|
199
199
|
super({
|
|
200
200
|
id: 'editor.showOutgoingCalls',
|
|
201
|
-
title: ( localize2(
|
|
202
|
-
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(
|
|
201
|
+
title: ( localize2(4317, 'Show Outgoing Calls')),
|
|
202
|
+
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4318, 'Icon for outgoing calls in the call hierarchy view.'))),
|
|
203
203
|
precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo)))),
|
|
204
204
|
keybinding: {
|
|
205
205
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -220,7 +220,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
220
220
|
constructor() {
|
|
221
221
|
super({
|
|
222
222
|
id: 'editor.refocusCallHierarchy',
|
|
223
|
-
title: ( localize2(
|
|
223
|
+
title: ( localize2(4319, 'Refocus Call Hierarchy')),
|
|
224
224
|
precondition: _ctxCallHierarchyVisible,
|
|
225
225
|
keybinding: {
|
|
226
226
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -236,7 +236,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
236
236
|
constructor() {
|
|
237
237
|
super({
|
|
238
238
|
id: 'editor.closeCallHierarchy',
|
|
239
|
-
title: ( localize(
|
|
239
|
+
title: ( localize(4320, 'Close')),
|
|
240
240
|
icon: Codicon.close,
|
|
241
241
|
precondition: _ctxCallHierarchyVisible,
|
|
242
242
|
keybinding: {
|
|
@@ -270,13 +270,13 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
270
270
|
}
|
|
271
271
|
this._previewDisposable.add(value);
|
|
272
272
|
const title = this._direction === CallHierarchyDirection.CallsFrom
|
|
273
|
-
? ( localize(
|
|
274
|
-
: ( localize(
|
|
273
|
+
? ( localize(4321, "Calls from '{0}'", element.model.root.name))
|
|
274
|
+
: ( localize(4322, "Callers of '{0}'", element.model.root.name));
|
|
275
275
|
this.setTitle(title);
|
|
276
276
|
}
|
|
277
277
|
showLoading() {
|
|
278
278
|
this._parent.dataset['state'] = State.Loading;
|
|
279
|
-
this.setTitle(( localize(
|
|
279
|
+
this.setTitle(( localize(4323, "Loading...")));
|
|
280
280
|
this._show();
|
|
281
281
|
}
|
|
282
282
|
showMessage(message) {
|
|
@@ -295,8 +295,8 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
295
295
|
await this._tree.expand(root.element);
|
|
296
296
|
if (root.children.length === 0) {
|
|
297
297
|
this.showMessage(this._direction === CallHierarchyDirection.CallsFrom
|
|
298
|
-
? ( localize(
|
|
299
|
-
: ( localize(
|
|
298
|
+
? ( localize(4324, "No calls from '{0}'", model.root.name))
|
|
299
|
+
: ( localize(4325, "No callers of '{0}'", model.root.name)));
|
|
300
300
|
}
|
|
301
301
|
else {
|
|
302
302
|
this._parent.dataset['state'] = State.Data;
|
|
@@ -107,14 +107,14 @@ class AccessibilityProvider {
|
|
|
107
107
|
this.getDirection = getDirection;
|
|
108
108
|
}
|
|
109
109
|
getWidgetAriaLabel() {
|
|
110
|
-
return localize(
|
|
110
|
+
return localize(4326, "Call Hierarchy");
|
|
111
111
|
}
|
|
112
112
|
getAriaLabel(element) {
|
|
113
113
|
if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
|
|
114
|
-
return localize(
|
|
114
|
+
return localize(4327, "calls from {0}", element.item.name);
|
|
115
115
|
}
|
|
116
116
|
else {
|
|
117
|
-
return localize(
|
|
117
|
+
return localize(4328, "callers of {0}", element.item.name);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
3
3
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
4
4
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
5
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
5
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-dcfc2191-2da1-54c7-8fb7-e92c5d11ecef-common/vscode/vs/workbench/browser/editor';
|
|
6
6
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
7
7
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
8
8
|
import { CustomEditorInputSerializer, ComplexCustomWorkingCopyEditorHandler } from './customEditorInputFactory.js';
|
|
@@ -8,7 +8,7 @@ import { ICustomEditorService } from "@codingame/monaco-vscode-api/vscode/vs/wor
|
|
|
8
8
|
import { IWebviewService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service";
|
|
9
9
|
import { DeserializedWebview, SerializedWebview, SerializedWebviewOptions, WebviewEditorInputSerializer } from "../../webviewPanel/browser/webviewEditorInputSerializer.js";
|
|
10
10
|
import { IWebviewWorkbenchService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service";
|
|
11
|
-
import { IWorkingCopyBackupMeta, IWorkingCopyIdentifier } from "@codingame/monaco-vscode-
|
|
11
|
+
import { IWorkingCopyBackupMeta, IWorkingCopyIdentifier } from "@codingame/monaco-vscode-a4683c2b-a0d2-5112-96ba-eedc605346d2-common/vscode/vs/workbench/services/workingCopy/common/workingCopy";
|
|
12
12
|
import { IWorkingCopyBackupService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup.service";
|
|
13
13
|
import { IWorkingCopyEditorHandler } from "@codingame/monaco-vscode-working-copy-service-override/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService";
|
|
14
14
|
import { IWorkingCopyEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/workingCopy/common/workingCopyEditorService.service";
|
|
@@ -7,8 +7,8 @@ import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
|
7
7
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
8
8
|
import { CustomEditorInput } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput';
|
|
9
9
|
import { ICustomEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/customEditor/common/customEditor.service';
|
|
10
|
-
import { NotebookEditorInput } from '@codingame/monaco-vscode-
|
|
11
|
-
import { WebviewContentPurpose } from '@codingame/monaco-vscode-
|
|
10
|
+
import { NotebookEditorInput } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
11
|
+
import { WebviewContentPurpose } from '@codingame/monaco-vscode-4372ad43-a220-5e78-83e6-95a9cfd64384-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
12
12
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
13
13
|
import { WebviewEditorInputSerializer, reviveWebviewExtensionDescription, restoreWebviewContentOptions, restoreWebviewOptions } from '../../webviewPanel/browser/webviewEditorInputSerializer.js';
|
|
14
14
|
import { IWebviewWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
@@ -3,7 +3,7 @@ import { Emitter } from '@codingame/monaco-vscode-api/vscode/vs/base/common/even
|
|
|
3
3
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
4
4
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
5
5
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
6
|
-
import { Memento } from '@codingame/monaco-vscode-
|
|
6
|
+
import { Memento } from '@codingame/monaco-vscode-924e8f00-6faf-5059-b518-e43427d29ab3-common/vscode/vs/workbench/common/memento';
|
|
7
7
|
import { CustomEditorInfo } from './customEditor.js';
|
|
8
8
|
import { customEditorsExtensionPoint } from './extensionPoint.js';
|
|
9
9
|
import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
@@ -32,7 +32,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
32
32
|
this.add(( new CustomEditorInfo({
|
|
33
33
|
id: webviewEditorContribution.viewType,
|
|
34
34
|
displayName: webviewEditorContribution.displayName,
|
|
35
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
35
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(5522, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
36
36
|
selector: webviewEditorContribution.selector || [],
|
|
37
37
|
priority: getPriorityFromContribution(webviewEditorContribution, extension.description),
|
|
38
38
|
})));
|
|
@@ -6,7 +6,7 @@ import { globMatchesResource, RegisteredEditorPriority, priorityToRank } from '@
|
|
|
6
6
|
|
|
7
7
|
const CONTEXT_ACTIVE_CUSTOM_EDITOR_ID = ( new RawContextKey('activeCustomEditorId', '', {
|
|
8
8
|
type: 'string',
|
|
9
|
-
description: ( localize(
|
|
9
|
+
description: ( localize(5523, "The viewType of the currently active custom editor.")),
|
|
10
10
|
}));
|
|
11
11
|
const CONTEXT_FOCUSED_CUSTOM_EDITOR_IS_EDITABLE = ( new RawContextKey('focusedCustomEditorIsEditable', false));
|
|
12
12
|
var CustomEditorPriority;
|
|
@@ -16,7 +16,7 @@ const Fields = ( Object.freeze({
|
|
|
16
16
|
priority: 'priority',
|
|
17
17
|
}));
|
|
18
18
|
const CustomEditorsContribution = {
|
|
19
|
-
description: ( localize(
|
|
19
|
+
description: ( localize(5525, 'Contributed custom editors.')),
|
|
20
20
|
type: 'array',
|
|
21
21
|
defaultSnippets: [{
|
|
22
22
|
body: [{
|
|
@@ -38,20 +38,20 @@ const CustomEditorsContribution = {
|
|
|
38
38
|
[Fields.viewType]: {
|
|
39
39
|
type: 'string',
|
|
40
40
|
markdownDescription: ( localize(
|
|
41
|
-
|
|
41
|
+
5526,
|
|
42
42
|
'Identifier for the custom editor. This must be unique across all custom editors, so we recommend including your extension id as part of `viewType`. The `viewType` is used when registering custom editors with `vscode.registerCustomEditorProvider` and in the `onCustomEditor:${id}` [activation event](https://code.visualstudio.com/api/references/activation-events).'
|
|
43
43
|
)),
|
|
44
44
|
},
|
|
45
45
|
[Fields.displayName]: {
|
|
46
46
|
type: 'string',
|
|
47
47
|
description: ( localize(
|
|
48
|
-
|
|
48
|
+
5527,
|
|
49
49
|
'Human readable name of the custom editor. This is displayed to users when selecting which editor to use.'
|
|
50
50
|
)),
|
|
51
51
|
},
|
|
52
52
|
[Fields.selector]: {
|
|
53
53
|
type: 'array',
|
|
54
|
-
description: ( localize(
|
|
54
|
+
description: ( localize(5528, 'Set of globs that the custom editor is enabled for.')),
|
|
55
55
|
items: {
|
|
56
56
|
type: 'object',
|
|
57
57
|
defaultSnippets: [{
|
|
@@ -62,7 +62,7 @@ const CustomEditorsContribution = {
|
|
|
62
62
|
properties: {
|
|
63
63
|
filenamePattern: {
|
|
64
64
|
type: 'string',
|
|
65
|
-
description: ( localize(
|
|
65
|
+
description: ( localize(5529, 'Glob that the custom editor is enabled for.')),
|
|
66
66
|
},
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -70,7 +70,7 @@ const CustomEditorsContribution = {
|
|
|
70
70
|
[Fields.priority]: {
|
|
71
71
|
type: 'string',
|
|
72
72
|
markdownDeprecationMessage: ( localize(
|
|
73
|
-
|
|
73
|
+
5530,
|
|
74
74
|
'Controls if the custom editor is enabled automatically when the user opens a file. This may be overridden by users using the `workbench.editorAssociations` setting.'
|
|
75
75
|
)),
|
|
76
76
|
enum: [
|
|
@@ -79,11 +79,11 @@ const CustomEditorsContribution = {
|
|
|
79
79
|
],
|
|
80
80
|
markdownEnumDescriptions: [
|
|
81
81
|
( localize(
|
|
82
|
-
|
|
82
|
+
5531,
|
|
83
83
|
'The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource.'
|
|
84
84
|
)),
|
|
85
85
|
( localize(
|
|
86
|
-
|
|
86
|
+
5532,
|
|
87
87
|
'The editor is not automatically used when the user opens a resource, but a user can switch to the editor using the `Reopen With` command.'
|
|
88
88
|
)),
|
|
89
89
|
],
|
|
@@ -119,9 +119,9 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
119
119
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
120
120
|
}
|
|
121
121
|
const headers = [
|
|
122
|
-
( localize(
|
|
123
|
-
( localize(
|
|
124
|
-
( localize(
|
|
122
|
+
( localize(5533, "View Type")),
|
|
123
|
+
( localize(5534, "Priority")),
|
|
124
|
+
( localize(5535, "Filename Pattern")),
|
|
125
125
|
];
|
|
126
126
|
const rows = ( customEditors
|
|
127
127
|
.map(customEditor => {
|
|
@@ -142,7 +142,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
142
142
|
}
|
|
143
143
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
144
144
|
id: 'customEditors',
|
|
145
|
-
label: ( localize(
|
|
145
|
+
label: ( localize(5536, "Custom Editors")),
|
|
146
146
|
access: {
|
|
147
147
|
canToggle: false
|
|
148
148
|
},
|
|
@@ -180,8 +180,8 @@ let LanguageStatus = class LanguageStatus {
|
|
|
180
180
|
isOneBusy = isOneBusy || (!isPinned && status.busy);
|
|
181
181
|
}
|
|
182
182
|
const props = {
|
|
183
|
-
name: ( localize(
|
|
184
|
-
ariaLabel: ( localize(
|
|
183
|
+
name: ( localize(7558, "Editor Language Status")),
|
|
184
|
+
ariaLabel: ( localize(7559, "Editor Language Status: {0}", ariaLabels.join(', next: '))),
|
|
185
185
|
tooltip: this._combinedEntryTooltip,
|
|
186
186
|
command: ShowTooltipCommand,
|
|
187
187
|
text: isOneBusy ? '$(loading~spin)' : text,
|
|
@@ -274,7 +274,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
274
274
|
}, { hoverDelegate: nativeHoverDelegate }, this._hoverService, this._openerService)));
|
|
275
275
|
}
|
|
276
276
|
const actionBar = ( new ActionBar(right, { hoverDelegate: nativeHoverDelegate }));
|
|
277
|
-
const actionLabel = isPinned ? ( localize(
|
|
277
|
+
const actionLabel = isPinned ? ( localize(7560, "Remove from Status Bar")) : ( localize(7561, "Add to Status Bar"));
|
|
278
278
|
actionBar.setAriaLabel(actionLabel);
|
|
279
279
|
store.add(actionBar);
|
|
280
280
|
let action;
|
|
@@ -334,10 +334,10 @@ let LanguageStatus = class LanguageStatus {
|
|
|
334
334
|
}
|
|
335
335
|
const textValue = typeof status.label === 'string' ? status.label : status.label.value;
|
|
336
336
|
if (status.detail) {
|
|
337
|
-
return { label: ( localize(
|
|
337
|
+
return { label: ( localize(7562, '{0}, {1}', textValue, status.detail)) };
|
|
338
338
|
}
|
|
339
339
|
else {
|
|
340
|
-
return { label: ( localize(
|
|
340
|
+
return { label: ( localize(7563, '{0}', textValue)) };
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
static _asStatusbarEntry(item) {
|
|
@@ -350,7 +350,7 @@ let LanguageStatus = class LanguageStatus {
|
|
|
350
350
|
}
|
|
351
351
|
const textValue = typeof item.label === 'string' ? item.label : item.label.shortValue;
|
|
352
352
|
return {
|
|
353
|
-
name: ( localize(
|
|
353
|
+
name: ( localize(7564, '{0} (Language Status)', item.name)),
|
|
354
354
|
text: computeText(textValue, item.busy),
|
|
355
355
|
ariaLabel: LanguageStatus_1._accessibilityInformation(item).label,
|
|
356
356
|
role: item.accessibilityInfo?.role,
|
|
@@ -372,7 +372,7 @@ class ResetAction extends Action2 {
|
|
|
372
372
|
constructor() {
|
|
373
373
|
super({
|
|
374
374
|
id: 'editor.inlayHints.Reset',
|
|
375
|
-
title: ( localize2(
|
|
375
|
+
title: ( localize2(7565, "Reset Language Status Interaction Counter")),
|
|
376
376
|
category: Categories.View,
|
|
377
377
|
f1: true
|
|
378
378
|
});
|
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(7566, "Configure"));
|
|
17
17
|
let LimitIndicatorContribution = class LimitIndicatorContribution extends Disposable {
|
|
18
18
|
constructor(editorService, languageStatusService) {
|
|
19
19
|
super();
|
|
@@ -41,9 +41,9 @@ LimitIndicatorContribution = ( __decorate([
|
|
|
41
41
|
class ColorDecorationAccessor {
|
|
42
42
|
constructor() {
|
|
43
43
|
this.id = 'decoratorsLimitInfo';
|
|
44
|
-
this.name = ( localize(
|
|
45
|
-
this.label = ( localize(
|
|
46
|
-
this.source = ( localize(
|
|
44
|
+
this.name = ( localize(7567, 'Color Decorator Status'));
|
|
45
|
+
this.label = ( localize(7568, 'Color decorators'));
|
|
46
|
+
this.source = ( localize(7569, 'Color Decorators'));
|
|
47
47
|
this.settingsId = 'editor.colorDecoratorsLimit';
|
|
48
48
|
}
|
|
49
49
|
getLimitReporter(editor) {
|
|
@@ -53,9 +53,9 @@ class ColorDecorationAccessor {
|
|
|
53
53
|
class FoldingRangeAccessor {
|
|
54
54
|
constructor() {
|
|
55
55
|
this.id = 'foldingLimitInfo';
|
|
56
|
-
this.name = ( localize(
|
|
57
|
-
this.label = ( localize(
|
|
58
|
-
this.source = ( localize(
|
|
56
|
+
this.name = ( localize(7570, 'Folding Status'));
|
|
57
|
+
this.label = ( localize(7571, 'Folding ranges'));
|
|
58
|
+
this.source = ( localize(7572, 'Folding'));
|
|
59
59
|
this.settingsId = 'editor.foldingMaximumRegions';
|
|
60
60
|
}
|
|
61
61
|
getLimitReporter(editor) {
|
|
@@ -97,7 +97,7 @@ class LanguageStatusEntry {
|
|
|
97
97
|
name: this.accessor.name,
|
|
98
98
|
severity: Severity.Warning,
|
|
99
99
|
label: this.accessor.label,
|
|
100
|
-
detail: ( localize(
|
|
100
|
+
detail: ( localize(7573, 'only {0} shown for performance reasons', info.limited)),
|
|
101
101
|
command: { id: openSettingsCommand, arguments: [this.accessor.settingsId], title: configureSettingsLabel },
|
|
102
102
|
accessibilityInfo: undefined,
|
|
103
103
|
source: this.accessor.source,
|