@codingame/monaco-vscode-view-common-service-override 26.2.2 → 28.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 +1 -1
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +56 -56
- package/vscode/src/vs/workbench/browser/actions/helpActions.js +21 -21
- 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 +166 -166
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.d.ts +3 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +14 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +3 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +4 -3
- 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 +10 -10
- 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/codeEditorView.js +1 -1
- 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 +2 -2
- 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 +8 -8
- 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 +4 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +19 -4
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +22 -14
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +11 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +7 -4
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +7 -3
- 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.d.ts +3 -1
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +14 -11
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.d.ts +7 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +71 -14
- package/vscode/src/vs/workbench/services/views/browser/viewsService.d.ts +75 -0
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +711 -0
|
@@ -33,19 +33,19 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
33
33
|
this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
34
34
|
{
|
|
35
35
|
id: "workbench.input.interactive",
|
|
36
|
-
label: ( localize(
|
|
36
|
+
label: ( localize(3457, "Interactive Window")),
|
|
37
37
|
priority: RegisteredEditorPriority.builtin
|
|
38
38
|
}, {
|
|
39
39
|
id: "mainThreadWebview-markdown.preview",
|
|
40
|
-
label: ( localize(
|
|
40
|
+
label: ( localize(3458, "Markdown Preview")),
|
|
41
41
|
priority: RegisteredEditorPriority.builtin
|
|
42
42
|
}, {
|
|
43
43
|
id: "mainThreadWebview-simpleBrowser.view",
|
|
44
|
-
label: ( localize(
|
|
44
|
+
label: ( localize(3459, "Simple Browser")),
|
|
45
45
|
priority: RegisteredEditorPriority.builtin
|
|
46
46
|
}, {
|
|
47
47
|
id: "mainThreadWebview-browserPreview",
|
|
48
|
-
label: ( localize(
|
|
48
|
+
label: ( localize(3460, "Live Preview")),
|
|
49
49
|
priority: RegisteredEditorPriority.builtin
|
|
50
50
|
}];
|
|
51
51
|
}
|
|
@@ -94,7 +94,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
94
94
|
"workbench.editor.autoLockGroups": {
|
|
95
95
|
type: "object",
|
|
96
96
|
description: ( localize(
|
|
97
|
-
|
|
97
|
+
3461,
|
|
98
98
|
"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."
|
|
99
99
|
)),
|
|
100
100
|
properties: autoLockGroupConfiguration,
|
|
@@ -112,7 +112,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
112
112
|
default: "",
|
|
113
113
|
enum: [...binaryEditorCandidates, ""],
|
|
114
114
|
description: ( localize(
|
|
115
|
-
|
|
115
|
+
3462,
|
|
116
116
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
117
117
|
))
|
|
118
118
|
}
|
|
@@ -125,7 +125,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
125
125
|
"workbench.editorAssociations": {
|
|
126
126
|
type: "object",
|
|
127
127
|
markdownDescription: ( localize(
|
|
128
|
-
|
|
128
|
+
3463,
|
|
129
129
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
130
130
|
)),
|
|
131
131
|
patternProperties: {
|
|
@@ -147,7 +147,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
147
147
|
minimum: 1,
|
|
148
148
|
scope: ConfigurationScope.RESOURCE,
|
|
149
149
|
markdownDescription: ( localize(
|
|
150
|
-
|
|
150
|
+
3464,
|
|
151
151
|
"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."
|
|
152
152
|
))
|
|
153
153
|
}
|
|
@@ -6,6 +6,7 @@ import { IPaneComposite } from "@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
6
6
|
import { ViewContainerLocation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
7
7
|
import { IPaneCompositePartService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service";
|
|
8
8
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
9
|
+
import { SINGLE_WINDOW_PARTS } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService";
|
|
9
10
|
export declare class PaneCompositePartService extends Disposable implements IPaneCompositePartService {
|
|
10
11
|
readonly _serviceBrand: undefined;
|
|
11
12
|
readonly onDidPaneCompositeOpen: Event<{
|
|
@@ -18,6 +19,8 @@ export declare class PaneCompositePartService extends Disposable implements IPan
|
|
|
18
19
|
}>;
|
|
19
20
|
private readonly paneCompositeParts;
|
|
20
21
|
constructor(instantiationService: IInstantiationService);
|
|
22
|
+
getRegistryId(viewContainerLocation: ViewContainerLocation): string;
|
|
23
|
+
getPartId(viewContainerLocation: ViewContainerLocation): SINGLE_WINDOW_PARTS;
|
|
21
24
|
openPaneComposite(id: string | undefined, viewContainerLocation: ViewContainerLocation, focus?: boolean): Promise<IPaneComposite | undefined>;
|
|
22
25
|
getActivePaneComposite(viewContainerLocation: ViewContainerLocation): IPaneComposite | undefined;
|
|
23
26
|
getPaneComposite(id: string, viewContainerLocation: ViewContainerLocation): PaneCompositeDescriptor | undefined;
|
|
@@ -7,7 +7,7 @@ import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
7
7
|
import { AuxiliaryBarPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart';
|
|
8
8
|
import { PanelPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/panel/panelPart';
|
|
9
9
|
import { SidebarPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
|
|
10
|
-
import { ViewContainerLocation
|
|
10
|
+
import { ViewContainerLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views';
|
|
11
11
|
import { Disposable, DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
12
12
|
|
|
13
13
|
let PaneCompositePartService = class PaneCompositePartService extends Disposable {
|
|
@@ -20,20 +20,31 @@ let PaneCompositePartService = class PaneCompositePartService extends Disposable
|
|
|
20
20
|
this.paneCompositeParts.set(ViewContainerLocation.Panel, panelPart);
|
|
21
21
|
this.paneCompositeParts.set(ViewContainerLocation.Sidebar, sideBarPart);
|
|
22
22
|
this.paneCompositeParts.set(ViewContainerLocation.AuxiliaryBar, auxiliaryBarPart);
|
|
23
|
+
const viewContainerLocations = [
|
|
24
|
+
ViewContainerLocation.Sidebar,
|
|
25
|
+
ViewContainerLocation.Panel,
|
|
26
|
+
ViewContainerLocation.AuxiliaryBar
|
|
27
|
+
];
|
|
23
28
|
const eventDisposables = this._register(( new DisposableStore()));
|
|
24
|
-
this.onDidPaneCompositeOpen = Event.any(...(
|
|
29
|
+
this.onDidPaneCompositeOpen = Event.any(...( viewContainerLocations.map(loc => ( Event.map(this.paneCompositeParts.get(loc).onDidPaneCompositeOpen, composite => {
|
|
25
30
|
return {
|
|
26
31
|
composite,
|
|
27
32
|
viewContainerLocation: loc
|
|
28
33
|
};
|
|
29
34
|
}, eventDisposables)))));
|
|
30
|
-
this.onDidPaneCompositeClose = Event.any(...(
|
|
35
|
+
this.onDidPaneCompositeClose = Event.any(...( viewContainerLocations.map(loc => ( Event.map(this.paneCompositeParts.get(loc).onDidPaneCompositeClose, composite => {
|
|
31
36
|
return {
|
|
32
37
|
composite,
|
|
33
38
|
viewContainerLocation: loc
|
|
34
39
|
};
|
|
35
40
|
}, eventDisposables)))));
|
|
36
41
|
}
|
|
42
|
+
getRegistryId(viewContainerLocation) {
|
|
43
|
+
return this.getPartByLocation(viewContainerLocation).registryId;
|
|
44
|
+
}
|
|
45
|
+
getPartId(viewContainerLocation) {
|
|
46
|
+
return this.getPartByLocation(viewContainerLocation).partId;
|
|
47
|
+
}
|
|
37
48
|
openPaneComposite(id, viewContainerLocation, focus) {
|
|
38
49
|
return this.getPartByLocation(viewContainerLocation).openPaneComposite(id, focus);
|
|
39
50
|
}
|
|
@@ -24,11 +24,11 @@ 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(4655, "Whether a call hierarchy provider is available"))));
|
|
28
|
+
const _ctxCallHierarchyVisible = ( new RawContextKey("callHierarchyVisible", false, ( localize(4656, "Whether call hierarchy peek is currently showing"))));
|
|
29
29
|
const _ctxCallHierarchyDirection = ( new RawContextKey("callHierarchyDirection", undefined, {
|
|
30
30
|
type: "string",
|
|
31
|
-
description: ( localize(
|
|
31
|
+
description: ( localize(4657, "Whether call hierarchy shows incoming or outgoing calls"))
|
|
32
32
|
}));
|
|
33
33
|
function sanitizedDirection(candidate) {
|
|
34
34
|
return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo ? candidate : CallHierarchyDirection.CallsTo;
|
|
@@ -149,14 +149,14 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
149
149
|
this._sessionDisposables.add(model);
|
|
150
150
|
this._widget.showModel(model);
|
|
151
151
|
} else {
|
|
152
|
-
this._widget.showMessage(( localize(
|
|
152
|
+
this._widget.showMessage(( localize(4658, "No results")));
|
|
153
153
|
}
|
|
154
154
|
}).catch(err => {
|
|
155
155
|
if (isCancellationError(err)) {
|
|
156
156
|
this.endCallHierarchy();
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
this._widget.showMessage(( localize(
|
|
159
|
+
this._widget.showMessage(( localize(4659, "Failed to show call hierarchy")));
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
showOutgoingCalls() {
|
|
@@ -183,7 +183,7 @@ registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
|
|
183
183
|
constructor() {
|
|
184
184
|
super({
|
|
185
185
|
id: "editor.showCallHierarchy",
|
|
186
|
-
title: ( localize2(
|
|
186
|
+
title: ( localize2(4660, "Peek Call Hierarchy")),
|
|
187
187
|
menu: {
|
|
188
188
|
id: MenuId.EditorContextPeek,
|
|
189
189
|
group: "navigation",
|
|
@@ -207,8 +207,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
207
207
|
constructor() {
|
|
208
208
|
super({
|
|
209
209
|
id: "editor.showIncomingCalls",
|
|
210
|
-
title: ( localize2(
|
|
211
|
-
icon: registerIcon("callhierarchy-incoming", Codicon.callIncoming, ( localize(
|
|
210
|
+
title: ( localize2(4661, "Show Incoming Calls")),
|
|
211
|
+
icon: registerIcon("callhierarchy-incoming", Codicon.callIncoming, ( localize(4662, "Icon for incoming calls in the call hierarchy view."))),
|
|
212
212
|
precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom)))),
|
|
213
213
|
keybinding: {
|
|
214
214
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -229,8 +229,8 @@ registerAction2(class extends EditorAction2 {
|
|
|
229
229
|
constructor() {
|
|
230
230
|
super({
|
|
231
231
|
id: "editor.showOutgoingCalls",
|
|
232
|
-
title: ( localize2(
|
|
233
|
-
icon: registerIcon("callhierarchy-outgoing", Codicon.callOutgoing, ( localize(
|
|
232
|
+
title: ( localize2(4663, "Show Outgoing Calls")),
|
|
233
|
+
icon: registerIcon("callhierarchy-outgoing", Codicon.callOutgoing, ( localize(4664, "Icon for outgoing calls in the call hierarchy view."))),
|
|
234
234
|
precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo)))),
|
|
235
235
|
keybinding: {
|
|
236
236
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -251,7 +251,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
251
251
|
constructor() {
|
|
252
252
|
super({
|
|
253
253
|
id: "editor.refocusCallHierarchy",
|
|
254
|
-
title: ( localize2(
|
|
254
|
+
title: ( localize2(4665, "Refocus Call Hierarchy")),
|
|
255
255
|
precondition: _ctxCallHierarchyVisible,
|
|
256
256
|
keybinding: {
|
|
257
257
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -267,7 +267,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
267
267
|
constructor() {
|
|
268
268
|
super({
|
|
269
269
|
id: "editor.closeCallHierarchy",
|
|
270
|
-
title: ( localize(
|
|
270
|
+
title: ( localize(4666, "Close")),
|
|
271
271
|
icon: Codicon.close,
|
|
272
272
|
precondition: _ctxCallHierarchyVisible,
|
|
273
273
|
keybinding: {
|
|
@@ -323,12 +323,12 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
323
323
|
this._previewDisposable.add(toDisposable(() => decorationsCollection.clear()));
|
|
324
324
|
}
|
|
325
325
|
this._previewDisposable.add(value);
|
|
326
|
-
const title = this._direction === CallHierarchyDirection.CallsFrom ? ( localize(
|
|
326
|
+
const title = this._direction === CallHierarchyDirection.CallsFrom ? ( localize(4667, "Calls from '{0}'", element.model.root.name)) : ( localize(4668, "Callers of '{0}'", element.model.root.name));
|
|
327
327
|
this.setTitle(title);
|
|
328
328
|
}
|
|
329
329
|
showLoading() {
|
|
330
330
|
this._parent.dataset["state"] = State.Loading;
|
|
331
|
-
this.setTitle(( localize(
|
|
331
|
+
this.setTitle(( localize(4669, "Loading...")));
|
|
332
332
|
this._show();
|
|
333
333
|
}
|
|
334
334
|
showMessage(message) {
|
|
@@ -346,7 +346,7 @@ let CallHierarchyTreePeekWidget = class CallHierarchyTreePeekWidget extends Peek
|
|
|
346
346
|
const root = this._tree.getNode(model).children[0];
|
|
347
347
|
await this._tree.expand(root.element);
|
|
348
348
|
if (root.children.length === 0) {
|
|
349
|
-
this.showMessage(this._direction === CallHierarchyDirection.CallsFrom ? ( localize(
|
|
349
|
+
this.showMessage(this._direction === CallHierarchyDirection.CallsFrom ? ( localize(4670, "No calls from '{0}'", model.root.name)) : ( localize(4671, "No callers of '{0}'", model.root.name)));
|
|
350
350
|
} else {
|
|
351
351
|
this._parent.dataset["state"] = State.Data;
|
|
352
352
|
if (!viewState || this._tree.getFocus().length === 0) {
|
|
@@ -105,6 +105,7 @@ class CallRenderer {
|
|
|
105
105
|
template.icon.className = "";
|
|
106
106
|
template.icon.classList.add(
|
|
107
107
|
"inline",
|
|
108
|
+
"codicon-colored",
|
|
108
109
|
...ThemeIcon.asClassNameArray(SymbolKinds.toIcon(element.item.kind))
|
|
109
110
|
);
|
|
110
111
|
template.label.setLabel(element.item.name, element.item.detail, {
|
|
@@ -130,13 +131,13 @@ class AccessibilityProvider {
|
|
|
130
131
|
this.getDirection = getDirection;
|
|
131
132
|
}
|
|
132
133
|
getWidgetAriaLabel() {
|
|
133
|
-
return localize(
|
|
134
|
+
return localize(4672, "Call Hierarchy");
|
|
134
135
|
}
|
|
135
136
|
getAriaLabel(element) {
|
|
136
137
|
if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
|
|
137
|
-
return localize(
|
|
138
|
+
return localize(4673, "calls from {0}", element.item.name);
|
|
138
139
|
} else {
|
|
139
|
-
return localize(
|
|
140
|
+
return localize(4674, "callers of {0}", element.item.name);
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
}
|
|
@@ -36,7 +36,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
36
36
|
this.add(( new CustomEditorInfo({
|
|
37
37
|
id: webviewEditorContribution.viewType,
|
|
38
38
|
displayName: webviewEditorContribution.displayName,
|
|
39
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
39
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(7721, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
40
40
|
selector: webviewEditorContribution.selector || [],
|
|
41
41
|
priority: getPriorityFromContribution(webviewEditorContribution, extension.description)
|
|
42
42
|
})));
|
|
@@ -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(7722, "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;
|
|
@@ -23,20 +23,20 @@ const customEditorsContributionSchema = {
|
|
|
23
23
|
[Fields.viewType]: {
|
|
24
24
|
type: "string",
|
|
25
25
|
markdownDescription: ( localize(
|
|
26
|
-
|
|
26
|
+
7724,
|
|
27
27
|
"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)."
|
|
28
28
|
))
|
|
29
29
|
},
|
|
30
30
|
[Fields.displayName]: {
|
|
31
31
|
type: "string",
|
|
32
32
|
description: ( localize(
|
|
33
|
-
|
|
33
|
+
7725,
|
|
34
34
|
"Human readable name of the custom editor. This is displayed to users when selecting which editor to use."
|
|
35
35
|
))
|
|
36
36
|
},
|
|
37
37
|
[Fields.selector]: {
|
|
38
38
|
type: "array",
|
|
39
|
-
description: ( localize(
|
|
39
|
+
description: ( localize(7726, "Set of globs that the custom editor is enabled for.")),
|
|
40
40
|
items: {
|
|
41
41
|
type: "object",
|
|
42
42
|
defaultSnippets: [{
|
|
@@ -48,7 +48,7 @@ const customEditorsContributionSchema = {
|
|
|
48
48
|
properties: {
|
|
49
49
|
filenamePattern: {
|
|
50
50
|
type: "string",
|
|
51
|
-
description: ( localize(
|
|
51
|
+
description: ( localize(7727, "Glob that the custom editor is enabled for."))
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -56,15 +56,15 @@ const customEditorsContributionSchema = {
|
|
|
56
56
|
[Fields.priority]: {
|
|
57
57
|
type: "string",
|
|
58
58
|
markdownDeprecationMessage: ( localize(
|
|
59
|
-
|
|
59
|
+
7728,
|
|
60
60
|
"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."
|
|
61
61
|
)),
|
|
62
62
|
enum: [CustomEditorPriority.default, CustomEditorPriority.option],
|
|
63
63
|
markdownEnumDescriptions: [( localize(
|
|
64
|
-
|
|
64
|
+
7729,
|
|
65
65
|
"The editor is automatically used when the user opens a resource, provided that no other default custom editors are registered for that resource."
|
|
66
66
|
)), ( localize(
|
|
67
|
-
|
|
67
|
+
7730,
|
|
68
68
|
"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."
|
|
69
69
|
))],
|
|
70
70
|
default: CustomEditorPriority.default
|
|
@@ -75,7 +75,7 @@ const customEditorsExtensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
75
75
|
extensionPoint: "customEditors",
|
|
76
76
|
deps: [languagesExtPoint],
|
|
77
77
|
jsonSchema: {
|
|
78
|
-
description: ( localize(
|
|
78
|
+
description: ( localize(7731, "Contributed custom editors.")),
|
|
79
79
|
type: "array",
|
|
80
80
|
defaultSnippets: [{
|
|
81
81
|
body: [{
|
|
@@ -116,7 +116,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
116
116
|
dispose: () => {}
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
const headers = [( localize(
|
|
119
|
+
const headers = [( localize(7732, "View Type")), ( localize(7733, "Priority")), ( localize(7734, "Filename Pattern"))];
|
|
120
120
|
const rows = ( customEditors.map(customEditor => {
|
|
121
121
|
return [
|
|
122
122
|
customEditor.viewType,
|
|
@@ -135,7 +135,7 @@ class CustomEditorsDataRenderer extends Disposable {
|
|
|
135
135
|
}
|
|
136
136
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
137
137
|
id: "customEditors",
|
|
138
|
-
label: ( localize(
|
|
138
|
+
label: ( localize(7735, "Custom Editors")),
|
|
139
139
|
access: {
|
|
140
140
|
canToggle: false
|
|
141
141
|
},
|
|
@@ -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(9844, "Editor Language Status")),
|
|
210
|
+
ariaLabel: ( localize(9845, "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(9846, "Remove from Status Bar")) : ( localize(9847, "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(9848, "{0}, {1}", textValue, status.detail))
|
|
397
397
|
};
|
|
398
398
|
} else {
|
|
399
399
|
return {
|
|
400
|
-
label: ( localize(
|
|
400
|
+
label: ( localize(9849, "{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(9850, "{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(9851, "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(9852, "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(9853, "Color Decorator Status"));
|
|
42
|
+
this.label = ( localize(9854, "Color decorators"));
|
|
43
|
+
this.source = ( localize(9855, "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(9856, "Folding Status"));
|
|
54
|
+
this.label = ( localize(9857, "Folding ranges"));
|
|
55
|
+
this.source = ( localize(9858, "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(9859, "only {0} shown for performance reasons", info.limited)),
|
|
98
98
|
command: {
|
|
99
99
|
id: openSettingsCommand,
|
|
100
100
|
arguments: [this.accessor.settingsId],
|