@codingame/monaco-vscode-view-common-service-override 34.1.1 → 35.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/package.json +3 -3
- package/vscode/src/vs/sessions/common/theme.d.ts +2 -0
- package/vscode/src/vs/sessions/common/theme.js +40 -27
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +57 -57
- package/vscode/src/vs/workbench/browser/actions/helpActions.js +20 -20
- 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 +190 -170
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +28 -13
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubar.contribution.js +8 -8
- package/vscode/src/vs/workbench/browser/workbench.zenMode.contribution.js +15 -15
- 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 +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +4 -4
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.d.ts +7 -7
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +26 -26
- 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 +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/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 +4 -4
- 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/contrib/webviewView/browser/webviewViewPane.js +8 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +8 -8
- package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +5 -0
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +49 -18
- 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
|
@@ -3,9 +3,11 @@ import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/l
|
|
|
3
3
|
import { IEditorResolverService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service";
|
|
4
4
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
5
5
|
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
6
|
+
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
6
7
|
export declare class DynamicEditorConfigurations extends Disposable implements IWorkbenchContribution {
|
|
7
8
|
private readonly editorResolverService;
|
|
8
9
|
private readonly environmentService;
|
|
10
|
+
private readonly configurationService;
|
|
9
11
|
static readonly ID = "workbench.contrib.dynamicEditorConfigurations";
|
|
10
12
|
private static readonly AUTO_LOCK_DEFAULT_ENABLED;
|
|
11
13
|
private static readonly AUTO_LOCK_EXTRA_EDITORS;
|
|
@@ -16,7 +18,7 @@ export declare class DynamicEditorConfigurations extends Disposable implements I
|
|
|
16
18
|
private editorAssociationsConfigurationNode;
|
|
17
19
|
private diffEditorAssociationsConfigurationNode;
|
|
18
20
|
private editorLargeFileConfirmationConfigurationNode;
|
|
19
|
-
constructor(editorResolverService: IEditorResolverService, extensionService: IExtensionService, environmentService: IWorkbenchEnvironmentService);
|
|
21
|
+
constructor(editorResolverService: IEditorResolverService, extensionService: IExtensionService, environmentService: IWorkbenchEnvironmentService, configurationService: IConfigurationService);
|
|
20
22
|
private registerListeners;
|
|
21
23
|
private updateDynamicEditorConfigurations;
|
|
22
24
|
}
|
|
@@ -5,13 +5,14 @@ import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/regist
|
|
|
5
5
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
6
|
import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
7
7
|
import { workbenchConfigurationNodeBase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
|
|
8
|
-
import { toRegisteredEditorPriorityInfo, RegisteredEditorPriority,
|
|
8
|
+
import { toRegisteredEditorPriorityInfo, RegisteredEditorPriority, markdownDefaultEditorAgentsWindowSettingId, editorsAssociationsSettingId, editorsAssociationsAgentsWindowDefault, diffEditorsAssociationsSettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
9
9
|
import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
10
10
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
11
11
|
import { coalesce } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
12
12
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
13
13
|
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
14
14
|
import { getLargeFileConfirmationLimit, ByteSize } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
15
|
+
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
15
16
|
|
|
16
17
|
var DynamicEditorConfigurations_1;
|
|
17
18
|
let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disposable {
|
|
@@ -33,19 +34,19 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
33
34
|
this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
34
35
|
{
|
|
35
36
|
id: "workbench.input.interactive",
|
|
36
|
-
label: ( localize(
|
|
37
|
+
label: ( localize(3663, "Interactive Window")),
|
|
37
38
|
priority: toRegisteredEditorPriorityInfo(RegisteredEditorPriority.builtin)
|
|
38
39
|
}, {
|
|
39
40
|
id: "mainThreadWebview-markdown.preview",
|
|
40
|
-
label: ( localize(
|
|
41
|
+
label: ( localize(3664, "Markdown Preview")),
|
|
41
42
|
priority: toRegisteredEditorPriorityInfo(RegisteredEditorPriority.builtin)
|
|
42
43
|
}, {
|
|
43
44
|
id: "mainThreadWebview-simpleBrowser.view",
|
|
44
|
-
label: ( localize(
|
|
45
|
+
label: ( localize(3665, "Simple Browser")),
|
|
45
46
|
priority: toRegisteredEditorPriorityInfo(RegisteredEditorPriority.builtin)
|
|
46
47
|
}, {
|
|
47
48
|
id: "mainThreadWebview-browserPreview",
|
|
48
|
-
label: ( localize(
|
|
49
|
+
label: ( localize(3666, "Live Preview")),
|
|
49
50
|
priority: toRegisteredEditorPriorityInfo(RegisteredEditorPriority.builtin)
|
|
50
51
|
}];
|
|
51
52
|
}
|
|
@@ -53,10 +54,16 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
53
54
|
this.AUTO_LOCK_REMOVE_EDITORS = ( new Set([
|
|
54
55
|
"vscode-interactive-input", "interactive", "vscode.markdown.preview.editor"]));
|
|
55
56
|
}
|
|
56
|
-
constructor(
|
|
57
|
+
constructor(
|
|
58
|
+
editorResolverService,
|
|
59
|
+
extensionService,
|
|
60
|
+
environmentService,
|
|
61
|
+
configurationService
|
|
62
|
+
) {
|
|
57
63
|
super();
|
|
58
64
|
this.editorResolverService = editorResolverService;
|
|
59
65
|
this.environmentService = environmentService;
|
|
66
|
+
this.configurationService = configurationService;
|
|
60
67
|
this.configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
61
68
|
(async () => {
|
|
62
69
|
await extensionService.whenInstalledExtensionsRegistered();
|
|
@@ -68,6 +75,11 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
68
75
|
this._register(
|
|
69
76
|
Event.debounce(this.editorResolverService.onDidChangeEditorRegistrations, (_, e) => e)(() => this.updateDynamicEditorConfigurations())
|
|
70
77
|
);
|
|
78
|
+
this._register(this.configurationService.onDidChangeConfiguration(e => {
|
|
79
|
+
if (e.affectsConfiguration(markdownDefaultEditorAgentsWindowSettingId)) {
|
|
80
|
+
this.updateDynamicEditorConfigurations();
|
|
81
|
+
}
|
|
82
|
+
}));
|
|
71
83
|
}
|
|
72
84
|
updateDynamicEditorConfigurations() {
|
|
73
85
|
const lockableEditors = [
|
|
@@ -94,7 +106,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
94
106
|
"workbench.editor.autoLockGroups": {
|
|
95
107
|
type: "object",
|
|
96
108
|
description: ( localize(
|
|
97
|
-
|
|
109
|
+
3667,
|
|
98
110
|
"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
111
|
)),
|
|
100
112
|
properties: autoLockGroupConfiguration,
|
|
@@ -112,20 +124,21 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
112
124
|
default: "",
|
|
113
125
|
enum: [...binaryEditorCandidates, ""],
|
|
114
126
|
description: ( localize(
|
|
115
|
-
|
|
127
|
+
3668,
|
|
116
128
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
117
129
|
))
|
|
118
130
|
}
|
|
119
131
|
}
|
|
120
132
|
};
|
|
121
133
|
const oldEditorAssociationsConfigurationNode = this.editorAssociationsConfigurationNode;
|
|
134
|
+
const markdownDefaultEditorEnabled = this.configurationService.getValue(markdownDefaultEditorAgentsWindowSettingId) === true;
|
|
122
135
|
this.editorAssociationsConfigurationNode = {
|
|
123
136
|
...workbenchConfigurationNodeBase,
|
|
124
137
|
properties: {
|
|
125
138
|
[editorsAssociationsSettingId]: {
|
|
126
139
|
type: "object",
|
|
127
140
|
markdownDescription: ( localize(
|
|
128
|
-
|
|
141
|
+
3669,
|
|
129
142
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
130
143
|
)),
|
|
131
144
|
patternProperties: {
|
|
@@ -135,7 +148,9 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
135
148
|
}
|
|
136
149
|
},
|
|
137
150
|
agentsWindow: {
|
|
138
|
-
default: editorsAssociationsAgentsWindowDefault
|
|
151
|
+
default: editorsAssociationsAgentsWindowDefault({
|
|
152
|
+
markdownDefaultEditor: markdownDefaultEditorEnabled
|
|
153
|
+
})
|
|
139
154
|
}
|
|
140
155
|
}
|
|
141
156
|
}
|
|
@@ -147,7 +162,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
147
162
|
[diffEditorsAssociationsSettingId]: {
|
|
148
163
|
type: "object",
|
|
149
164
|
markdownDescription: ( localize(
|
|
150
|
-
|
|
165
|
+
3670,
|
|
151
166
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors for diff views (for example `\"*.md\": \"vscode.markdown.preview.editor\"`). These override `workbench.editorAssociations` for diffs."
|
|
152
167
|
)),
|
|
153
168
|
patternProperties: {
|
|
@@ -169,7 +184,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
169
184
|
minimum: 1,
|
|
170
185
|
scope: ConfigurationScope.RESOURCE,
|
|
171
186
|
markdownDescription: ( localize(
|
|
172
|
-
|
|
187
|
+
3671,
|
|
173
188
|
"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."
|
|
174
189
|
))
|
|
175
190
|
}
|
|
@@ -193,6 +208,6 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
193
208
|
});
|
|
194
209
|
}
|
|
195
210
|
};
|
|
196
|
-
DynamicEditorConfigurations = DynamicEditorConfigurations_1 = ( __decorate([( __param(0, IEditorResolverService)), ( __param(1, IExtensionService)), ( __param(2, IWorkbenchEnvironmentService))], DynamicEditorConfigurations));
|
|
211
|
+
DynamicEditorConfigurations = DynamicEditorConfigurations_1 = ( __decorate([( __param(0, IEditorResolverService)), ( __param(1, IExtensionService)), ( __param(2, IWorkbenchEnvironmentService)), ( __param(3, IConfigurationService))], DynamicEditorConfigurations));
|
|
197
212
|
|
|
198
213
|
export { DynamicEditorConfigurations };
|
|
@@ -8,7 +8,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
8
8
|
title: {
|
|
9
9
|
value: "File",
|
|
10
10
|
original: "File",
|
|
11
|
-
mnemonicTitle: ( localize(
|
|
11
|
+
mnemonicTitle: ( localize(3932, "&&File"))
|
|
12
12
|
},
|
|
13
13
|
order: 1
|
|
14
14
|
});
|
|
@@ -17,7 +17,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
17
17
|
title: {
|
|
18
18
|
value: "Edit",
|
|
19
19
|
original: "Edit",
|
|
20
|
-
mnemonicTitle: ( localize(
|
|
20
|
+
mnemonicTitle: ( localize(3933, "&&Edit"))
|
|
21
21
|
},
|
|
22
22
|
order: 2
|
|
23
23
|
});
|
|
@@ -26,7 +26,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
26
26
|
title: {
|
|
27
27
|
value: "Selection",
|
|
28
28
|
original: "Selection",
|
|
29
|
-
mnemonicTitle: ( localize(
|
|
29
|
+
mnemonicTitle: ( localize(3934, "&&Selection"))
|
|
30
30
|
},
|
|
31
31
|
order: 3
|
|
32
32
|
});
|
|
@@ -35,7 +35,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
35
35
|
title: {
|
|
36
36
|
value: "View",
|
|
37
37
|
original: "View",
|
|
38
|
-
mnemonicTitle: ( localize(
|
|
38
|
+
mnemonicTitle: ( localize(3935, "&&View"))
|
|
39
39
|
},
|
|
40
40
|
order: 4
|
|
41
41
|
});
|
|
@@ -44,7 +44,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
44
44
|
title: {
|
|
45
45
|
value: "Go",
|
|
46
46
|
original: "Go",
|
|
47
|
-
mnemonicTitle: ( localize(
|
|
47
|
+
mnemonicTitle: ( localize(3936, "&&Go"))
|
|
48
48
|
},
|
|
49
49
|
order: 5
|
|
50
50
|
});
|
|
@@ -53,7 +53,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
53
53
|
title: {
|
|
54
54
|
value: "Terminal",
|
|
55
55
|
original: "Terminal",
|
|
56
|
-
mnemonicTitle: ( localize(
|
|
56
|
+
mnemonicTitle: ( localize(3937, "&&Terminal"))
|
|
57
57
|
},
|
|
58
58
|
order: 7
|
|
59
59
|
});
|
|
@@ -62,7 +62,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
62
62
|
title: {
|
|
63
63
|
value: "Help",
|
|
64
64
|
original: "Help",
|
|
65
|
-
mnemonicTitle: ( localize(
|
|
65
|
+
mnemonicTitle: ( localize(3938, "&&Help"))
|
|
66
66
|
},
|
|
67
67
|
order: 8
|
|
68
68
|
});
|
|
@@ -71,7 +71,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarMainMenu, {
|
|
|
71
71
|
title: {
|
|
72
72
|
value: "Preferences",
|
|
73
73
|
original: "Preferences",
|
|
74
|
-
mnemonicTitle: ( localize(
|
|
74
|
+
mnemonicTitle: ( localize(3939, "&&Preferences"))
|
|
75
75
|
},
|
|
76
76
|
when: IsMacNativeContext,
|
|
77
77
|
order: 9
|
|
@@ -16,40 +16,40 @@ import { ZenHideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingle
|
|
|
16
16
|
registry.registerConfiguration({
|
|
17
17
|
"id": "zenMode",
|
|
18
18
|
"order": 9,
|
|
19
|
-
"title": ( localize(
|
|
19
|
+
"title": ( localize(4267, "Zen Mode")),
|
|
20
20
|
"type": "object",
|
|
21
21
|
"properties": {
|
|
22
22
|
"zenMode.fullScreen": {
|
|
23
23
|
"type": "boolean",
|
|
24
24
|
"default": true,
|
|
25
25
|
"description": ( localize(
|
|
26
|
-
|
|
26
|
+
4268,
|
|
27
27
|
"Controls whether turning on Zen Mode also puts the workbench into full screen mode."
|
|
28
28
|
))
|
|
29
29
|
},
|
|
30
30
|
"zenMode.centerLayout": {
|
|
31
31
|
"type": "boolean",
|
|
32
32
|
"default": true,
|
|
33
|
-
"description": ( localize(
|
|
33
|
+
"description": ( localize(4269, "Controls whether turning on Zen Mode also centers the layout."))
|
|
34
34
|
},
|
|
35
35
|
"zenMode.showTabs": {
|
|
36
36
|
"type": "string",
|
|
37
37
|
"enum": ["multiple", "single", "none"],
|
|
38
38
|
"description": ( localize(
|
|
39
|
-
|
|
39
|
+
4270,
|
|
40
40
|
"Controls whether turning on Zen Mode should show multiple editor tabs, a single editor tab, or hide the editor title area completely."
|
|
41
41
|
)),
|
|
42
|
-
"enumDescriptions": [( localize(
|
|
43
|
-
|
|
42
|
+
"enumDescriptions": [( localize(4271, "Each editor is displayed as a tab in the editor title area.")), ( localize(
|
|
43
|
+
4272,
|
|
44
44
|
"The active editor is displayed as a single large tab in the editor title area."
|
|
45
|
-
)), ( localize(
|
|
45
|
+
)), ( localize(4273, "The editor title area is not displayed."))],
|
|
46
46
|
"default": "multiple"
|
|
47
47
|
},
|
|
48
48
|
"zenMode.hideStatusBar": {
|
|
49
49
|
"type": "boolean",
|
|
50
50
|
"default": true,
|
|
51
51
|
"description": ( localize(
|
|
52
|
-
|
|
52
|
+
4274,
|
|
53
53
|
"Controls whether turning on Zen Mode also hides the status bar at the bottom of the workbench."
|
|
54
54
|
))
|
|
55
55
|
},
|
|
@@ -57,7 +57,7 @@ import { ZenHideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingle
|
|
|
57
57
|
"type": "boolean",
|
|
58
58
|
"default": true,
|
|
59
59
|
"description": ( localize(
|
|
60
|
-
|
|
60
|
+
4275,
|
|
61
61
|
"Controls whether turning on Zen Mode also hides the activity bar either at the left or right of the workbench."
|
|
62
62
|
))
|
|
63
63
|
},
|
|
@@ -65,7 +65,7 @@ import { ZenHideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingle
|
|
|
65
65
|
"type": "boolean",
|
|
66
66
|
"default": true,
|
|
67
67
|
"description": ( localize(
|
|
68
|
-
|
|
68
|
+
4276,
|
|
69
69
|
"Controls whether turning on Zen Mode also hides the editor line numbers."
|
|
70
70
|
))
|
|
71
71
|
},
|
|
@@ -73,7 +73,7 @@ import { ZenHideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingle
|
|
|
73
73
|
"type": "boolean",
|
|
74
74
|
"default": true,
|
|
75
75
|
"description": ( localize(
|
|
76
|
-
|
|
76
|
+
4277,
|
|
77
77
|
"Controls whether a window should restore to Zen Mode if it was exited in Zen Mode."
|
|
78
78
|
))
|
|
79
79
|
},
|
|
@@ -81,7 +81,7 @@ import { ZenHideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingle
|
|
|
81
81
|
"type": "boolean",
|
|
82
82
|
"default": true,
|
|
83
83
|
"description": ( localize(
|
|
84
|
-
|
|
84
|
+
4278,
|
|
85
85
|
"Controls whether notifications do not disturb mode should be enabled while in Zen Mode. If true, only error notifications will pop out."
|
|
86
86
|
))
|
|
87
87
|
}
|
|
@@ -93,7 +93,7 @@ registerAction2(ZenShowMultipleEditorTabsAction);
|
|
|
93
93
|
registerAction2(ZenShowSingleEditorTabAction);
|
|
94
94
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
95
95
|
submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu,
|
|
96
|
-
title: ( localize(
|
|
96
|
+
title: ( localize(4279, "Tab Bar")),
|
|
97
97
|
group: "3_workbench_layout_move",
|
|
98
98
|
order: 10,
|
|
99
99
|
when: InEditorZenModeContext
|
|
@@ -103,8 +103,8 @@ registerAction2(class extends Action2 {
|
|
|
103
103
|
super({
|
|
104
104
|
id: "workbench.action.toggleZenMode",
|
|
105
105
|
title: {
|
|
106
|
-
...( localize2(
|
|
107
|
-
mnemonicTitle: ( localize(
|
|
106
|
+
...( localize2(4280, "Toggle Zen Mode")),
|
|
107
|
+
mnemonicTitle: ( localize(4281, "Zen Mode"))
|
|
108
108
|
},
|
|
109
109
|
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated()),
|
|
110
110
|
category: Categories.View,
|
|
@@ -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(5004, "Whether a call hierarchy provider is available"))));
|
|
28
|
+
const _ctxCallHierarchyVisible = ( new RawContextKey("callHierarchyVisible", false, ( localize(5005, "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(5006, "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(5007, "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(5008, "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(5009, "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(5010, "Show Incoming Calls")),
|
|
211
|
+
icon: registerIcon("callhierarchy-incoming", Codicon.callIncoming, ( localize(5011, "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(5012, "Show Outgoing Calls")),
|
|
233
|
+
icon: registerIcon("callhierarchy-outgoing", Codicon.callOutgoing, ( localize(5013, "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(5014, "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(5015, "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(5016, "Calls from '{0}'", element.model.root.name)) : ( localize(5017, "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(5018, "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(5019, "No calls from '{0}'", model.root.name)) : ( localize(5020, "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) {
|
|
@@ -131,13 +131,13 @@ class AccessibilityProvider {
|
|
|
131
131
|
this.getDirection = getDirection;
|
|
132
132
|
}
|
|
133
133
|
getWidgetAriaLabel() {
|
|
134
|
-
return localize(
|
|
134
|
+
return localize(5021, "Call Hierarchy");
|
|
135
135
|
}
|
|
136
136
|
getAriaLabel(element) {
|
|
137
137
|
if (this.getDirection() === CallHierarchyDirection.CallsFrom) {
|
|
138
|
-
return localize(
|
|
138
|
+
return localize(5022, "calls from {0}", element.item.name);
|
|
139
139
|
} else {
|
|
140
|
-
return localize(
|
|
140
|
+
return localize(5023, "callers of {0}", element.item.name);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -42,7 +42,7 @@ class ContributedCustomEditors extends Disposable {
|
|
|
42
42
|
this.add(( new CustomEditorInfo({
|
|
43
43
|
id: webviewEditorContribution.viewType,
|
|
44
44
|
displayName: webviewEditorContribution.displayName,
|
|
45
|
-
providerDisplayName: extension.description.isBuiltin ? ( localize(
|
|
45
|
+
providerDisplayName: extension.description.isBuiltin ? ( localize(9346, "Built-in")) : extension.description.displayName || extension.description.identifier.value,
|
|
46
46
|
selector: webviewEditorContribution.selector || [],
|
|
47
47
|
priority
|
|
48
48
|
})));
|
|
@@ -89,13 +89,13 @@ function normalizeStoredCustomEditorDescriptor(descriptor) {
|
|
|
89
89
|
}
|
|
90
90
|
function getPriorityFromContribution(contribution, extension, includeDiffAndMergePriority) {
|
|
91
91
|
const editorPriority = getSinglePriorityFromContribution(
|
|
92
|
-
typeof contribution === "string" ? contribution : contribution?.
|
|
92
|
+
typeof contribution === "string" ? contribution : contribution?.textEditor,
|
|
93
93
|
extension
|
|
94
94
|
) ?? RegisteredEditorPriority.default;
|
|
95
95
|
return {
|
|
96
96
|
editor: editorPriority,
|
|
97
|
-
diff: includeDiffAndMergePriority && typeof contribution !== "string" ? getSinglePriorityFromContribution(contribution?.
|
|
98
|
-
merge: includeDiffAndMergePriority && typeof contribution !== "string" ? getSinglePriorityFromContribution(contribution?.
|
|
97
|
+
diff: includeDiffAndMergePriority && typeof contribution !== "string" ? getSinglePriorityFromContribution(contribution?.diffEditor, extension) ?? editorPriority : editorPriority,
|
|
98
|
+
merge: includeDiffAndMergePriority && typeof contribution !== "string" ? getSinglePriorityFromContribution(contribution?.mergeEditor, extension) ?? editorPriority : editorPriority
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
101
|
function getSinglePriorityFromContribution(value, extension) {
|
|
@@ -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(9347, "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;
|
|
@@ -55,11 +55,11 @@ declare const customEditorsContributionSchema: {
|
|
|
55
55
|
{
|
|
56
56
|
readonly type: "object";
|
|
57
57
|
readonly required: [
|
|
58
|
-
"
|
|
58
|
+
"textEditor"
|
|
59
59
|
];
|
|
60
60
|
readonly additionalProperties: false;
|
|
61
61
|
readonly properties: {
|
|
62
|
-
readonly
|
|
62
|
+
readonly textEditor: {
|
|
63
63
|
readonly markdownDescription: string;
|
|
64
64
|
readonly type: "string";
|
|
65
65
|
readonly enum: [
|
|
@@ -71,7 +71,7 @@ declare const customEditorsContributionSchema: {
|
|
|
71
71
|
string
|
|
72
72
|
];
|
|
73
73
|
};
|
|
74
|
-
readonly
|
|
74
|
+
readonly diffEditor: {
|
|
75
75
|
readonly markdownDescription: string;
|
|
76
76
|
readonly type: "string";
|
|
77
77
|
readonly enum: [
|
|
@@ -83,7 +83,7 @@ declare const customEditorsContributionSchema: {
|
|
|
83
83
|
string
|
|
84
84
|
];
|
|
85
85
|
};
|
|
86
|
-
readonly
|
|
86
|
+
readonly mergeEditor: {
|
|
87
87
|
readonly markdownDescription: string;
|
|
88
88
|
readonly type: "string";
|
|
89
89
|
readonly enum: [
|
|
@@ -110,9 +110,9 @@ export declare const customEditorsExtensionPoint: import("@codingame/monaco-vsco
|
|
|
110
110
|
readonly filenamePattern: string | undefined;
|
|
111
111
|
}[];
|
|
112
112
|
readonly priority: CustomEditorPriority.default | CustomEditorPriority.option | {
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
readonly
|
|
113
|
+
readonly textEditor: CustomEditorPriority.default | CustomEditorPriority.option;
|
|
114
|
+
readonly diffEditor: CustomEditorPriority.default | CustomEditorPriority.option | undefined;
|
|
115
|
+
readonly mergeEditor: CustomEditorPriority.default | CustomEditorPriority.option | undefined;
|
|
116
116
|
} | undefined;
|
|
117
117
|
}[]>;
|
|
118
118
|
export {};
|