@codingame/monaco-vscode-view-common-service-override 22.1.5 → 22.1.6
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 +41 -41
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +9 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +8 -8
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "22.1.
|
|
3
|
+
"version": "22.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-common service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,46 +15,46 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "22.1.
|
|
19
|
-
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "22.1.
|
|
20
|
-
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "22.1.
|
|
21
|
-
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "22.1.
|
|
22
|
-
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "22.1.
|
|
23
|
-
"@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "22.1.
|
|
24
|
-
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "22.1.
|
|
25
|
-
"@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "22.1.
|
|
26
|
-
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "22.1.
|
|
27
|
-
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "22.1.
|
|
28
|
-
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "22.1.
|
|
29
|
-
"@codingame/monaco-vscode-615ce609-8555-545a-a549-47bd9f80e9f8-common": "22.1.
|
|
30
|
-
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "22.1.
|
|
31
|
-
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "22.1.
|
|
32
|
-
"@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common": "22.1.
|
|
33
|
-
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "22.1.
|
|
34
|
-
"@codingame/monaco-vscode-7869cfe8-f42c-5721-9f2b-7d04a6a41f16-common": "22.1.
|
|
35
|
-
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "22.1.
|
|
36
|
-
"@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "22.1.
|
|
37
|
-
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "22.1.
|
|
38
|
-
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "22.1.
|
|
39
|
-
"@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "22.1.
|
|
40
|
-
"@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "22.1.
|
|
41
|
-
"@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "22.1.
|
|
42
|
-
"@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "22.1.
|
|
43
|
-
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "22.1.
|
|
44
|
-
"@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common": "22.1.
|
|
45
|
-
"@codingame/monaco-vscode-api": "22.1.
|
|
46
|
-
"@codingame/monaco-vscode-bc6d9a89-1625-5010-b57e-ff44151144fe-common": "22.1.
|
|
47
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "22.1.
|
|
48
|
-
"@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "22.1.
|
|
49
|
-
"@codingame/monaco-vscode-d26a96d3-122c-5a3d-a04d-deb5ff0f19c0-common": "22.1.
|
|
50
|
-
"@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "22.1.
|
|
51
|
-
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "22.1.
|
|
52
|
-
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "22.1.
|
|
53
|
-
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "22.1.
|
|
54
|
-
"@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "22.1.
|
|
55
|
-
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "22.1.
|
|
56
|
-
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "22.1.
|
|
57
|
-
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "22.1.
|
|
18
|
+
"@codingame/monaco-vscode-0c06bfba-d24d-5c4d-90cd-b40cefb7f811-common": "22.1.6",
|
|
19
|
+
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "22.1.6",
|
|
20
|
+
"@codingame/monaco-vscode-158b9837-fc78-5d9c-86f5-9134e4358643-common": "22.1.6",
|
|
21
|
+
"@codingame/monaco-vscode-1b4486de-4fe4-59c4-9e6d-34f265ff6625-common": "22.1.6",
|
|
22
|
+
"@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common": "22.1.6",
|
|
23
|
+
"@codingame/monaco-vscode-3109a756-1f83-5d09-945b-9f0fcad928f0-common": "22.1.6",
|
|
24
|
+
"@codingame/monaco-vscode-40cada32-7e9c-528a-81fc-766e4da54147-common": "22.1.6",
|
|
25
|
+
"@codingame/monaco-vscode-4a316137-39d1-5d77-8b53-112db3547c1e-common": "22.1.6",
|
|
26
|
+
"@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common": "22.1.6",
|
|
27
|
+
"@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common": "22.1.6",
|
|
28
|
+
"@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common": "22.1.6",
|
|
29
|
+
"@codingame/monaco-vscode-615ce609-8555-545a-a549-47bd9f80e9f8-common": "22.1.6",
|
|
30
|
+
"@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common": "22.1.6",
|
|
31
|
+
"@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common": "22.1.6",
|
|
32
|
+
"@codingame/monaco-vscode-6db1b967-5327-5c5c-8c17-bd92774c0fb2-common": "22.1.6",
|
|
33
|
+
"@codingame/monaco-vscode-72a1b7d3-3f58-5545-9b7e-f579bd003081-common": "22.1.6",
|
|
34
|
+
"@codingame/monaco-vscode-7869cfe8-f42c-5721-9f2b-7d04a6a41f16-common": "22.1.6",
|
|
35
|
+
"@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common": "22.1.6",
|
|
36
|
+
"@codingame/monaco-vscode-897bebad-39df-57cb-8a57-36a271d038be-common": "22.1.6",
|
|
37
|
+
"@codingame/monaco-vscode-89a82baf-8ded-5b2f-b8af-e5fbd72dc5ad-common": "22.1.6",
|
|
38
|
+
"@codingame/monaco-vscode-8ccb7637-50ea-5359-97bf-00015d7fe567-common": "22.1.6",
|
|
39
|
+
"@codingame/monaco-vscode-9c84f943-bcb5-5bcf-92a6-91f66a732f26-common": "22.1.6",
|
|
40
|
+
"@codingame/monaco-vscode-9efc1f50-c7de-55d6-8b28-bcc88bd49b5a-common": "22.1.6",
|
|
41
|
+
"@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common": "22.1.6",
|
|
42
|
+
"@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common": "22.1.6",
|
|
43
|
+
"@codingame/monaco-vscode-a8d3bd74-e63e-5327-96e8-4f931661e329-common": "22.1.6",
|
|
44
|
+
"@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common": "22.1.6",
|
|
45
|
+
"@codingame/monaco-vscode-api": "22.1.6",
|
|
46
|
+
"@codingame/monaco-vscode-bc6d9a89-1625-5010-b57e-ff44151144fe-common": "22.1.6",
|
|
47
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "22.1.6",
|
|
48
|
+
"@codingame/monaco-vscode-caeb744c-8e3f-5c11-80fb-0f057d24d544-common": "22.1.6",
|
|
49
|
+
"@codingame/monaco-vscode-d26a96d3-122c-5a3d-a04d-deb5ff0f19c0-common": "22.1.6",
|
|
50
|
+
"@codingame/monaco-vscode-d481a59e-259c-524e-bee1-76483d75d3a1-common": "22.1.6",
|
|
51
|
+
"@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common": "22.1.6",
|
|
52
|
+
"@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common": "22.1.6",
|
|
53
|
+
"@codingame/monaco-vscode-e59ecb8c-db32-5324-8fe4-cf9921fd92b8-common": "22.1.6",
|
|
54
|
+
"@codingame/monaco-vscode-e72c94ca-257a-5b75-8b68-5a5fa3c18255-common": "22.1.6",
|
|
55
|
+
"@codingame/monaco-vscode-f1bbc6d3-6129-583c-a2ba-c80b832993d2-common": "22.1.6",
|
|
56
|
+
"@codingame/monaco-vscode-f24e325c-2ce0-5bba-8236-bfc4f53180ab-common": "22.1.6",
|
|
57
|
+
"@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common": "22.1.6"
|
|
58
58
|
},
|
|
59
59
|
"main": "index.js",
|
|
60
60
|
"module": "index.js",
|
|
@@ -24,11 +24,11 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
24
24
|
this.keyboardLayoutService = keyboardLayoutService;
|
|
25
25
|
this.statusbarService = statusbarService;
|
|
26
26
|
this.pickerElement = this._register(( new MutableDisposable()));
|
|
27
|
-
const name = ( localize(
|
|
27
|
+
const name = ( localize(9448, "Keyboard Layout"));
|
|
28
28
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
29
29
|
if (layout) {
|
|
30
30
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
31
|
-
const text = ( localize(
|
|
31
|
+
const text = ( localize(9449, "Layout: {0}", layoutInfo.label));
|
|
32
32
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
33
33
|
name,
|
|
34
34
|
text,
|
|
@@ -40,7 +40,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
40
40
|
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
41
41
|
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
42
42
|
if (this.pickerElement.value) {
|
|
43
|
-
const text = ( localize(
|
|
43
|
+
const text = ( localize(9449, "Layout: {0}", layoutInfo.label));
|
|
44
44
|
this.pickerElement.value.update({
|
|
45
45
|
name,
|
|
46
46
|
text,
|
|
@@ -49,7 +49,7 @@ let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution ex
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
else {
|
|
52
|
-
const text = ( localize(
|
|
52
|
+
const text = ( localize(9449, "Layout: {0}", layoutInfo.label));
|
|
53
53
|
this.pickerElement.value = this.statusbarService.addEntry({
|
|
54
54
|
name,
|
|
55
55
|
text,
|
|
@@ -67,11 +67,11 @@ KeyboardLayoutPickerContribution = ( __decorate([
|
|
|
67
67
|
registerWorkbenchContribution2(KeyboardLayoutPickerContribution.ID, KeyboardLayoutPickerContribution, WorkbenchPhase.BlockStartup);
|
|
68
68
|
const DEFAULT_CONTENT = [
|
|
69
69
|
`// ${( localize(
|
|
70
|
-
|
|
70
|
+
9450,
|
|
71
71
|
'Defines the keyboard layout used in VS Code in the browser environment.'
|
|
72
72
|
))}`,
|
|
73
73
|
`// ${( localize(
|
|
74
|
-
|
|
74
|
+
9451,
|
|
75
75
|
'Open VS Code and run "Developer: Inspect Key Mappings (JSON)" from Command Palette.'
|
|
76
76
|
))}`,
|
|
77
77
|
``,
|
|
@@ -82,7 +82,7 @@ registerAction2(class extends Action2 {
|
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: KEYBOARD_LAYOUT_OPEN_PICKER,
|
|
85
|
-
title: ( localize2(
|
|
85
|
+
title: ( localize2(9452, "Change Keyboard Layout")),
|
|
86
86
|
f1: true
|
|
87
87
|
});
|
|
88
88
|
}
|
|
@@ -112,17 +112,17 @@ registerAction2(class extends Action2 {
|
|
|
112
112
|
});
|
|
113
113
|
if (picks.length > 0) {
|
|
114
114
|
const platform = isMacintosh ? 'Mac' : isWindows ? 'Win' : 'Linux';
|
|
115
|
-
picks.unshift({ type: 'separator', label: ( localize(
|
|
115
|
+
picks.unshift({ type: 'separator', label: ( localize(9453, "Keyboard Layouts ({0})", platform)) });
|
|
116
116
|
}
|
|
117
|
-
const configureKeyboardLayout = { label: ( localize(
|
|
117
|
+
const configureKeyboardLayout = { label: ( localize(9454, "Configure Keyboard Layout")) };
|
|
118
118
|
picks.unshift(configureKeyboardLayout);
|
|
119
119
|
const autoDetectMode = {
|
|
120
|
-
label: ( localize(
|
|
120
|
+
label: ( localize(9455, "Auto Detect")),
|
|
121
121
|
description: isAutoDetect ? `Current: ${parseKeyboardLayoutDescription(currentLayout).label}` : undefined,
|
|
122
122
|
picked: isAutoDetect ? true : undefined
|
|
123
123
|
};
|
|
124
124
|
picks.unshift(autoDetectMode);
|
|
125
|
-
const pick = await quickInputService.pick(picks, { placeHolder: ( localize(
|
|
125
|
+
const pick = await quickInputService.pick(picks, { placeHolder: ( localize(9456, "Select Keyboard Layout")), matchOnDescription: true });
|
|
126
126
|
if (!pick) {
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
@@ -144,7 +144,7 @@ registerAction2(class extends Action2 {
|
|
|
144
144
|
options: { pinned: true }
|
|
145
145
|
});
|
|
146
146
|
}, (error) => {
|
|
147
|
-
throw ( new Error(( localize(
|
|
147
|
+
throw ( new Error(( localize(9457, "Unable to create '{0}' ({1}).", (file.toString()), error))));
|
|
148
148
|
});
|
|
149
149
|
return Promise.resolve();
|
|
150
150
|
}
|
|
@@ -18,7 +18,7 @@ registerWorkbenchContribution2(SashSettingsController.ID, SashSettingsController
|
|
|
18
18
|
minimum: 1,
|
|
19
19
|
maximum: 20,
|
|
20
20
|
description: ( localize(
|
|
21
|
-
|
|
21
|
+
9980,
|
|
22
22
|
"Controls the feedback area size in pixels of the dragging area in between views/editors. Set it to a larger value if you feel it's hard to resize views using the mouse."
|
|
23
23
|
))
|
|
24
24
|
},
|
|
@@ -28,7 +28,7 @@ registerWorkbenchContribution2(SashSettingsController.ID, SashSettingsController
|
|
|
28
28
|
minimum: 0,
|
|
29
29
|
maximum: 2000,
|
|
30
30
|
description: ( localize(
|
|
31
|
-
|
|
31
|
+
9981,
|
|
32
32
|
"Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
|
|
33
33
|
))
|
|
34
34
|
},
|
|
@@ -117,8 +117,8 @@ let SyncScroll = class SyncScroll extends Disposable {
|
|
|
117
117
|
toggleStatusbarItem(active) {
|
|
118
118
|
if (active) {
|
|
119
119
|
if (!this.statusBarEntry.value) {
|
|
120
|
-
const text = ( localize(
|
|
121
|
-
const tooltip = ( localize(
|
|
120
|
+
const text = ( localize(10193, 'Scrolling Locked'));
|
|
121
|
+
const tooltip = ( localize(10194, 'Lock Scrolling Enabled'));
|
|
122
122
|
this.statusBarEntry.value = this.statusbarService.addEntry({
|
|
123
123
|
name: text,
|
|
124
124
|
text,
|
|
@@ -144,13 +144,13 @@ let SyncScroll = class SyncScroll extends Disposable {
|
|
|
144
144
|
super({
|
|
145
145
|
id: 'workbench.action.toggleLockedScrolling',
|
|
146
146
|
title: {
|
|
147
|
-
...( localize2(
|
|
148
|
-
mnemonicTitle: ( localize(
|
|
147
|
+
...( localize2(10195, "Toggle Locked Scrolling Across Editors")),
|
|
148
|
+
mnemonicTitle: ( localize(10196, "Locked Scrolling")),
|
|
149
149
|
},
|
|
150
150
|
category: Categories.View,
|
|
151
151
|
f1: true,
|
|
152
152
|
metadata: {
|
|
153
|
-
description: ( localize(
|
|
153
|
+
description: ( localize(10197, "Synchronize Scrolling Editors")),
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
}
|
|
@@ -163,8 +163,8 @@ let SyncScroll = class SyncScroll extends Disposable {
|
|
|
163
163
|
super({
|
|
164
164
|
id: 'workbench.action.holdLockedScrolling',
|
|
165
165
|
title: {
|
|
166
|
-
...( localize2(
|
|
167
|
-
mnemonicTitle: ( localize(
|
|
166
|
+
...( localize2(10198, "Hold Locked Scrolling Across Editors")),
|
|
167
|
+
mnemonicTitle: ( localize(10199, "Locked Scrolling")),
|
|
168
168
|
},
|
|
169
169
|
category: Categories.View,
|
|
170
170
|
});
|
|
@@ -22,12 +22,12 @@ import { TypeHierarchyTreePeekWidget } from './typeHierarchyPeek.js';
|
|
|
22
22
|
import { TypeHierarchyDirection, TypeHierarchyProviderRegistry, TypeHierarchyModel } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
|
|
23
23
|
|
|
24
24
|
var TypeHierarchyController_1;
|
|
25
|
-
const _ctxHasTypeHierarchyProvider = ( new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(
|
|
26
|
-
const _ctxTypeHierarchyVisible = ( new RawContextKey('typeHierarchyVisible', false, ( localize(
|
|
25
|
+
const _ctxHasTypeHierarchyProvider = ( new RawContextKey('editorHasTypeHierarchyProvider', false, ( localize(12315, 'Whether a type hierarchy provider is available'))));
|
|
26
|
+
const _ctxTypeHierarchyVisible = ( new RawContextKey('typeHierarchyVisible', false, ( localize(12316, 'Whether type hierarchy peek is currently showing'))));
|
|
27
27
|
const _ctxTypeHierarchyDirection = ( new RawContextKey(
|
|
28
28
|
'typeHierarchyDirection',
|
|
29
29
|
undefined,
|
|
30
|
-
{ type: 'string', description: ( localize(
|
|
30
|
+
{ type: 'string', description: ( localize(12317, 'whether type hierarchy shows super types or subtypes')) }
|
|
31
31
|
));
|
|
32
32
|
function sanitizedDirection(candidate) {
|
|
33
33
|
return candidate === TypeHierarchyDirection.Subtypes || candidate === TypeHierarchyDirection.Supertypes
|
|
@@ -96,14 +96,14 @@ let TypeHierarchyController = class TypeHierarchyController {
|
|
|
96
96
|
this._widget.showModel(model);
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
|
-
this._widget.showMessage(( localize(
|
|
99
|
+
this._widget.showMessage(( localize(12318, "No results")));
|
|
100
100
|
}
|
|
101
101
|
}).catch(err => {
|
|
102
102
|
if (isCancellationError(err)) {
|
|
103
103
|
this.endTypeHierarchy();
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
|
-
this._widget.showMessage(( localize(
|
|
106
|
+
this._widget.showMessage(( localize(12319, "Failed to show type hierarchy")));
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
async startTypeHierarchyFromTypeHierarchy() {
|
|
@@ -148,7 +148,7 @@ registerAction2(class PeekTypeHierarchyAction extends EditorAction2 {
|
|
|
148
148
|
constructor() {
|
|
149
149
|
super({
|
|
150
150
|
id: 'editor.showTypeHierarchy',
|
|
151
|
-
title: ( localize2(
|
|
151
|
+
title: ( localize2(12320, 'Peek Type Hierarchy')),
|
|
152
152
|
menu: {
|
|
153
153
|
id: MenuId.EditorContextPeek,
|
|
154
154
|
group: 'navigation',
|
|
@@ -167,7 +167,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
167
167
|
constructor() {
|
|
168
168
|
super({
|
|
169
169
|
id: 'editor.showSupertypes',
|
|
170
|
-
title: ( localize2(
|
|
170
|
+
title: ( localize2(12321, 'Show Supertypes')),
|
|
171
171
|
icon: Codicon.typeHierarchySuper,
|
|
172
172
|
precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Subtypes)))),
|
|
173
173
|
keybinding: {
|
|
@@ -189,7 +189,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
189
189
|
constructor() {
|
|
190
190
|
super({
|
|
191
191
|
id: 'editor.showSubtypes',
|
|
192
|
-
title: ( localize2(
|
|
192
|
+
title: ( localize2(12322, 'Show Subtypes')),
|
|
193
193
|
icon: Codicon.typeHierarchySub,
|
|
194
194
|
precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo(TypeHierarchyDirection.Supertypes)))),
|
|
195
195
|
keybinding: {
|
|
@@ -211,7 +211,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
211
211
|
constructor() {
|
|
212
212
|
super({
|
|
213
213
|
id: 'editor.refocusTypeHierarchy',
|
|
214
|
-
title: ( localize2(
|
|
214
|
+
title: ( localize2(12323, 'Refocus Type Hierarchy')),
|
|
215
215
|
precondition: _ctxTypeHierarchyVisible,
|
|
216
216
|
keybinding: {
|
|
217
217
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -227,7 +227,7 @@ registerAction2(class extends EditorAction2 {
|
|
|
227
227
|
constructor() {
|
|
228
228
|
super({
|
|
229
229
|
id: 'editor.closeTypeHierarchy',
|
|
230
|
-
title: ( localize(
|
|
230
|
+
title: ( localize(12324, 'Close')),
|
|
231
231
|
icon: Codicon.close,
|
|
232
232
|
precondition: _ctxTypeHierarchyVisible,
|
|
233
233
|
keybinding: {
|
|
@@ -265,13 +265,13 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
265
265
|
}
|
|
266
266
|
this._previewDisposable.add(value);
|
|
267
267
|
const title = this._direction === TypeHierarchyDirection.Supertypes
|
|
268
|
-
? ( localize(
|
|
269
|
-
: ( localize(
|
|
268
|
+
? ( localize(12325, "Supertypes of '{0}'", element.model.root.name))
|
|
269
|
+
: ( localize(12326, "Subtypes of '{0}'", element.model.root.name));
|
|
270
270
|
this.setTitle(title);
|
|
271
271
|
}
|
|
272
272
|
showLoading() {
|
|
273
273
|
this._parent.dataset['state'] = State.Loading;
|
|
274
|
-
this.setTitle(( localize(
|
|
274
|
+
this.setTitle(( localize(12327, "Loading...")));
|
|
275
275
|
this._show();
|
|
276
276
|
}
|
|
277
277
|
showMessage(message) {
|
|
@@ -290,8 +290,8 @@ let TypeHierarchyTreePeekWidget = class TypeHierarchyTreePeekWidget extends Peek
|
|
|
290
290
|
await this._tree.expand(root.element);
|
|
291
291
|
if (root.children.length === 0) {
|
|
292
292
|
this.showMessage(this._direction === TypeHierarchyDirection.Supertypes
|
|
293
|
-
? ( localize(
|
|
294
|
-
: ( localize(
|
|
293
|
+
? ( localize(12328, "No supertypes of '{0}'", model.root.name))
|
|
294
|
+
: ( localize(12329, "No subtypes of '{0}'", model.root.name)));
|
|
295
295
|
}
|
|
296
296
|
else {
|
|
297
297
|
this._parent.dataset['state'] = State.Data;
|
|
@@ -106,14 +106,14 @@ class AccessibilityProvider {
|
|
|
106
106
|
this.getDirection = getDirection;
|
|
107
107
|
}
|
|
108
108
|
getWidgetAriaLabel() {
|
|
109
|
-
return localize(
|
|
109
|
+
return localize(12330, "Type Hierarchy");
|
|
110
110
|
}
|
|
111
111
|
getAriaLabel(element) {
|
|
112
112
|
if (this.getDirection() === TypeHierarchyDirection.Supertypes) {
|
|
113
|
-
return localize(
|
|
113
|
+
return localize(12331, "supertypes of {0}", element.item.name);
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
|
-
return localize(
|
|
116
|
+
return localize(12332, "subtypes of {0}", element.item.name);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -159,7 +159,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
159
159
|
this._hasFindResult.fire(didFind);
|
|
160
160
|
}));
|
|
161
161
|
this._register(this.on('fatal-error', (e) => {
|
|
162
|
-
notificationService.error(( localize(
|
|
162
|
+
notificationService.error(( localize(12632, "Error loading webview: {0}", e.message)));
|
|
163
163
|
this._onFatalError.fire({ message: e.message });
|
|
164
164
|
}));
|
|
165
165
|
this._register(this.on('did-keydown', (data) => {
|
|
@@ -15,7 +15,7 @@ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
15
15
|
const webviewActiveContextKeyExpr = ( ContextKeyExpr.and(( ContextKeyExpr.equals('activeEditor', WebviewEditor.ID)), ( EditorContextKeys.focus.toNegated() )));
|
|
16
16
|
class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
17
17
|
static { this.ID = 'editor.action.webvieweditor.showFind'; }
|
|
18
|
-
static { this.LABEL = ( localize(
|
|
18
|
+
static { this.LABEL = ( localize(12633, "Show find")); }
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: ShowWebViewEditorFindWidgetAction.ID,
|
|
@@ -36,7 +36,7 @@ class ShowWebViewEditorFindWidgetAction extends Action2 {
|
|
|
36
36
|
}
|
|
37
37
|
class HideWebViewEditorFindCommand extends Action2 {
|
|
38
38
|
static { this.ID = 'editor.action.webvieweditor.hideFind'; }
|
|
39
|
-
static { this.LABEL = ( localize(
|
|
39
|
+
static { this.LABEL = ( localize(12634, "Stop find")); }
|
|
40
40
|
constructor() {
|
|
41
41
|
super({
|
|
42
42
|
id: HideWebViewEditorFindCommand.ID,
|
|
@@ -57,7 +57,7 @@ class HideWebViewEditorFindCommand extends Action2 {
|
|
|
57
57
|
}
|
|
58
58
|
class WebViewEditorFindNextCommand extends Action2 {
|
|
59
59
|
static { this.ID = 'editor.action.webvieweditor.findNext'; }
|
|
60
|
-
static { this.LABEL = ( localize(
|
|
60
|
+
static { this.LABEL = ( localize(12635, 'Find next')); }
|
|
61
61
|
constructor() {
|
|
62
62
|
super({
|
|
63
63
|
id: WebViewEditorFindNextCommand.ID,
|
|
@@ -78,7 +78,7 @@ class WebViewEditorFindNextCommand extends Action2 {
|
|
|
78
78
|
}
|
|
79
79
|
class WebViewEditorFindPreviousCommand extends Action2 {
|
|
80
80
|
static { this.ID = 'editor.action.webvieweditor.findPrevious'; }
|
|
81
|
-
static { this.LABEL = ( localize(
|
|
81
|
+
static { this.LABEL = ( localize(12636, 'Find previous')); }
|
|
82
82
|
constructor() {
|
|
83
83
|
super({
|
|
84
84
|
id: WebViewEditorFindPreviousCommand.ID,
|
|
@@ -99,7 +99,7 @@ class WebViewEditorFindPreviousCommand extends Action2 {
|
|
|
99
99
|
}
|
|
100
100
|
class ReloadWebviewAction extends Action2 {
|
|
101
101
|
static { this.ID = 'workbench.action.webview.reloadWebviewAction'; }
|
|
102
|
-
static { this.LABEL = ( localize2(
|
|
102
|
+
static { this.LABEL = ( localize2(12637, "Reload Webviews")); }
|
|
103
103
|
constructor() {
|
|
104
104
|
super({
|
|
105
105
|
id: ReloadWebviewAction.ID,
|
|
@@ -18,7 +18,7 @@ import '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vsc
|
|
|
18
18
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
19
19
|
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
20
20
|
|
|
21
|
-
(( Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(
|
|
21
|
+
(( Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(WebviewEditor, WebviewEditor.ID, ( localize(12639, "webview editor"))), [( new SyncDescriptor(WebviewInput))]);
|
|
22
22
|
let WebviewPanelContribution = class WebviewPanelContribution extends Disposable {
|
|
23
23
|
static { this.ID = 'workbench.contrib.webviewPanel'; }
|
|
24
24
|
constructor(editorService, editorGroupService) {
|
|
@@ -450,8 +450,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
450
450
|
if (storedChoices[globForResource] && storedChoices[globForResource].find(editorID => editorID === currentEditor.editorId)) {
|
|
451
451
|
return;
|
|
452
452
|
}
|
|
453
|
-
const handle = this.notificationService.prompt(Severity.Warning, ( localize(
|
|
454
|
-
label: ( localize(
|
|
453
|
+
const handle = this.notificationService.prompt(Severity.Warning, ( localize(13348, 'There are multiple default editors available for the resource.')), [{
|
|
454
|
+
label: ( localize(13349, 'Configure Default')),
|
|
455
455
|
run: async () => {
|
|
456
456
|
const picked = await this.doPickEditor(untypedInput, true);
|
|
457
457
|
if (!picked) {
|
|
@@ -472,7 +472,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
472
472
|
}
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
|
-
label: ( localize(
|
|
475
|
+
label: ( localize(13350, 'Keep {0}', editorName)),
|
|
476
476
|
run: writeCurrentEditorsToStorage
|
|
477
477
|
}
|
|
478
478
|
]);
|
|
@@ -498,9 +498,9 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
498
498
|
}
|
|
499
499
|
});
|
|
500
500
|
const quickPickEntries = [];
|
|
501
|
-
const currentlyActiveLabel = ( localize(
|
|
502
|
-
const currentDefaultLabel = ( localize(
|
|
503
|
-
const currentDefaultAndActiveLabel = ( localize(
|
|
501
|
+
const currentlyActiveLabel = ( localize(13351, "Active"));
|
|
502
|
+
const currentDefaultLabel = ( localize(13352, "Default"));
|
|
503
|
+
const currentDefaultAndActiveLabel = ( localize(13353, "Active and Default"));
|
|
504
504
|
let defaultViewType = defaultSetting;
|
|
505
505
|
if (!defaultViewType && registeredEditors.length > 2 && registeredEditors[1]?.editorInfo.priority !== RegisteredEditorPriority.option) {
|
|
506
506
|
defaultViewType = registeredEditors[1]?.editorInfo.id;
|
|
@@ -525,7 +525,7 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
525
525
|
quickPickEntries.push(separator);
|
|
526
526
|
const configureDefaultEntry = {
|
|
527
527
|
id: EditorResolverService_1.configureDefaultID,
|
|
528
|
-
label: ( localize(
|
|
528
|
+
label: ( localize(13354, "Configure default editor for '{0}'...", `*${extname(resource)}`)),
|
|
529
529
|
};
|
|
530
530
|
quickPickEntries.push(configureDefaultEntry);
|
|
531
531
|
}
|
|
@@ -540,8 +540,8 @@ let EditorResolverService = class EditorResolverService extends Disposable {
|
|
|
540
540
|
const disposables = ( new DisposableStore());
|
|
541
541
|
const editorPicker = disposables.add(this.quickInputService.createQuickPick({ useSeparators: true }));
|
|
542
542
|
const placeHolderMessage = showDefaultPicker ?
|
|
543
|
-
( localize(
|
|
544
|
-
( localize(
|
|
543
|
+
( localize(13355, "Select new default editor for '{0}'", `*${extname(resource)}`)) :
|
|
544
|
+
( localize(13356, "Select editor for '{0}'", basename(resource)));
|
|
545
545
|
editorPicker.placeholder = placeHolderMessage;
|
|
546
546
|
editorPicker.canAcceptInBackground = true;
|
|
547
547
|
editorPicker.items = editorPicks;
|
|
@@ -77,33 +77,33 @@ let HistoryService = class HistoryService extends Disposable {
|
|
|
77
77
|
return matcher;
|
|
78
78
|
})));
|
|
79
79
|
this.editorHelper = this.instantiationService.createInstance(EditorHelper);
|
|
80
|
-
this.canNavigateBackContextKey = (( new RawContextKey('canNavigateBack', false, ( localize(
|
|
81
|
-
this.canNavigateForwardContextKey = (( new RawContextKey('canNavigateForward', false, ( localize(
|
|
80
|
+
this.canNavigateBackContextKey = (( new RawContextKey('canNavigateBack', false, ( localize(13569, "Whether it is possible to navigate back in editor history"))))).bindTo(this.contextKeyService);
|
|
81
|
+
this.canNavigateForwardContextKey = (( new RawContextKey('canNavigateForward', false, ( localize(13570, "Whether it is possible to navigate forward in editor history"))))).bindTo(this.contextKeyService);
|
|
82
82
|
this.canNavigateBackInNavigationsContextKey = (( new RawContextKey('canNavigateBackInNavigationLocations', false, ( localize(
|
|
83
|
-
|
|
83
|
+
13571,
|
|
84
84
|
"Whether it is possible to navigate back in editor navigation locations history"
|
|
85
85
|
))))).bindTo(this.contextKeyService);
|
|
86
86
|
this.canNavigateForwardInNavigationsContextKey = (( new RawContextKey('canNavigateForwardInNavigationLocations', false, ( localize(
|
|
87
|
-
|
|
87
|
+
13572,
|
|
88
88
|
"Whether it is possible to navigate forward in editor navigation locations history"
|
|
89
89
|
))))).bindTo(this.contextKeyService);
|
|
90
90
|
this.canNavigateToLastNavigationLocationContextKey = (( new RawContextKey('canNavigateToLastNavigationLocation', false, ( localize(
|
|
91
|
-
|
|
91
|
+
13573,
|
|
92
92
|
"Whether it is possible to navigate to the last editor navigation location"
|
|
93
93
|
))))).bindTo(this.contextKeyService);
|
|
94
94
|
this.canNavigateBackInEditsContextKey = (( new RawContextKey('canNavigateBackInEditLocations', false, ( localize(
|
|
95
|
-
|
|
95
|
+
13574,
|
|
96
96
|
"Whether it is possible to navigate back in editor edit locations history"
|
|
97
97
|
))))).bindTo(this.contextKeyService);
|
|
98
98
|
this.canNavigateForwardInEditsContextKey = (( new RawContextKey('canNavigateForwardInEditLocations', false, ( localize(
|
|
99
|
-
|
|
99
|
+
13575,
|
|
100
100
|
"Whether it is possible to navigate forward in editor edit locations history"
|
|
101
101
|
))))).bindTo(this.contextKeyService);
|
|
102
102
|
this.canNavigateToLastEditLocationContextKey = (( new RawContextKey('canNavigateToLastEditLocation', false, ( localize(
|
|
103
|
-
|
|
103
|
+
13576,
|
|
104
104
|
"Whether it is possible to navigate to the last editor edit location"
|
|
105
105
|
))))).bindTo(this.contextKeyService);
|
|
106
|
-
this.canReopenClosedEditorContextKey = (( new RawContextKey('canReopenClosedEditor', false, ( localize(
|
|
106
|
+
this.canReopenClosedEditorContextKey = (( new RawContextKey('canReopenClosedEditor', false, ( localize(13577, "Whether it is possible to reopen the last closed editor"))))).bindTo(this.contextKeyService);
|
|
107
107
|
this.registerListeners();
|
|
108
108
|
if (this.editorService.activeEditorPane) {
|
|
109
109
|
this.onDidActiveEditorChange();
|
|
@@ -132,23 +132,23 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
132
132
|
let title;
|
|
133
133
|
const source = options.source && typeof options.source !== 'string' ? options.source.label : options.source;
|
|
134
134
|
if (progressTitle && progressMessage) {
|
|
135
|
-
text = ( localize(
|
|
136
|
-
title = source ? ( localize(
|
|
135
|
+
text = ( localize(13704, "{0}: {1}", progressTitle, progressMessage));
|
|
136
|
+
title = source ? ( localize(13705, "[{0}] {1}: {2}", source, progressTitle, progressMessage)) : text;
|
|
137
137
|
}
|
|
138
138
|
else if (progressTitle) {
|
|
139
139
|
text = progressTitle;
|
|
140
|
-
title = source ? ( localize(
|
|
140
|
+
title = source ? ( localize(13706, "[{0}]: {1}", source, progressTitle)) : text;
|
|
141
141
|
}
|
|
142
142
|
else if (progressMessage) {
|
|
143
143
|
text = progressMessage;
|
|
144
|
-
title = source ? ( localize(
|
|
144
|
+
title = source ? ( localize(13706, "[{0}]: {1}", source, progressMessage)) : text;
|
|
145
145
|
}
|
|
146
146
|
else {
|
|
147
147
|
this.updateWindowProgress(idx + 1);
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
150
150
|
const statusEntryProperties = {
|
|
151
|
-
name: ( localize(
|
|
151
|
+
name: ( localize(13707, "Progress Message")),
|
|
152
152
|
text,
|
|
153
153
|
showProgress: options.type || true,
|
|
154
154
|
ariaLabel: text,
|
|
@@ -244,7 +244,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
244
244
|
if (options.cancellable) {
|
|
245
245
|
const cancelAction = new (class extends Action {
|
|
246
246
|
constructor() {
|
|
247
|
-
super('progress.cancel', typeof options.cancellable === 'string' ? options.cancellable : ( localize(
|
|
247
|
+
super('progress.cancel', typeof options.cancellable === 'string' ? options.cancellable : ( localize(13708, "Cancel")), undefined, true);
|
|
248
248
|
}
|
|
249
249
|
async run() {
|
|
250
250
|
progressStateModel.cancel();
|
|
@@ -422,8 +422,8 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
422
422
|
const buttons = options.buttons || [];
|
|
423
423
|
if (!options.sticky) {
|
|
424
424
|
buttons.push(options.cancellable
|
|
425
|
-
? (typeof options.cancellable === 'boolean' ? ( localize(
|
|
426
|
-
: ( localize(
|
|
425
|
+
? (typeof options.cancellable === 'boolean' ? ( localize(13708, "Cancel")) : options.cancellable)
|
|
426
|
+
: ( localize(13709, "Dismiss")));
|
|
427
427
|
}
|
|
428
428
|
dialog = ( new Dialog(
|
|
429
429
|
this.layoutService.activeContainer,
|
|
@@ -346,7 +346,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
346
346
|
const container = this.viewContainersRegistry.registerViewContainer({
|
|
347
347
|
id,
|
|
348
348
|
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [id, { mergeViewWithContainerWhenSingleView: true }])),
|
|
349
|
-
title: { value: ( localize(
|
|
349
|
+
title: { value: ( localize(14074, "User View Container")), original: 'User View Container' },
|
|
350
350
|
icon: location === ViewContainerLocation.Sidebar ? defaultViewIcon : undefined,
|
|
351
351
|
storageId: getViewContainerStorageId(id),
|
|
352
352
|
hideIfEmpty: true
|
|
@@ -560,7 +560,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
560
560
|
title: viewDescriptor.name,
|
|
561
561
|
metadata: {
|
|
562
562
|
description: ( localize2(
|
|
563
|
-
|
|
563
|
+
14075,
|
|
564
564
|
'Toggles the visibility of the {0} view if the view container it is located in is visible',
|
|
565
565
|
viewDescriptor.name.value
|
|
566
566
|
))
|
|
@@ -591,10 +591,10 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
591
591
|
super({
|
|
592
592
|
id: `${viewDescriptor.id}.removeView`,
|
|
593
593
|
viewPaneContainerId: viewContainerModel.viewContainer.id,
|
|
594
|
-
title: ( localize(
|
|
594
|
+
title: ( localize(14076, "Hide '{0}'", viewDescriptor.name.value)),
|
|
595
595
|
metadata: {
|
|
596
596
|
description: ( localize2(
|
|
597
|
-
|
|
597
|
+
14077,
|
|
598
598
|
'Hides the {0} view if it is visible and the view container it is located in is visible',
|
|
599
599
|
viewDescriptor.name.value
|
|
600
600
|
))
|
|
@@ -624,7 +624,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
624
624
|
constructor() {
|
|
625
625
|
super({
|
|
626
626
|
id: `${viewContainer.id}.resetViewContainerLocation`,
|
|
627
|
-
title: ( localize2(
|
|
627
|
+
title: ( localize2(14078, "Reset Location")),
|
|
628
628
|
menu: [{
|
|
629
629
|
id: MenuId.ViewContainerTitleContext,
|
|
630
630
|
group: '1_viewActions',
|