@codingame/monaco-vscode-view-common-service-override 21.6.0 → 22.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 +41 -41
- package/service-override/vs/workbench/contrib/webview/browser/pre/service-worker.js +14 -9
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +62 -62
- 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 +167 -170
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +14 -14
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +10 -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/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +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 +7 -9
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.d.ts +5 -7
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +16 -15
- 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 +10 -6
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -3
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.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 +9 -9
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -6
|
@@ -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(9447, "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(9448, "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(9448, "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(9448, "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
|
+
9449,
|
|
71
71
|
'Defines the keyboard layout used in VS Code in the browser environment.'
|
|
72
72
|
))}`,
|
|
73
73
|
`// ${( localize(
|
|
74
|
-
|
|
74
|
+
9450,
|
|
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(9451, "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(9452, "Keyboard Layouts ({0})", platform)) });
|
|
116
116
|
}
|
|
117
|
-
const configureKeyboardLayout = { label: ( localize(
|
|
117
|
+
const configureKeyboardLayout = { label: ( localize(9453, "Configure Keyboard Layout")) };
|
|
118
118
|
picks.unshift(configureKeyboardLayout);
|
|
119
119
|
const autoDetectMode = {
|
|
120
|
-
label: ( localize(
|
|
120
|
+
label: ( localize(9454, "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(9455, "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(9456, "Unable to create '{0}' ({1}).", (file.toString()), error))));
|
|
148
148
|
});
|
|
149
149
|
return Promise.resolve();
|
|
150
150
|
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
import { isIOS } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
2
3
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
3
|
-
import { Extensions
|
|
4
|
-
import { LifecyclePhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle';
|
|
4
|
+
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
5
5
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
6
6
|
import { workbenchConfigurationNodeBase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
|
|
7
|
-
import {
|
|
7
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
8
8
|
import { SashSettingsController } from './sash.js';
|
|
9
|
-
import { isIOS } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
10
9
|
|
|
11
|
-
(
|
|
12
|
-
|
|
13
|
-
( Registry.as(Extensions$1.Configuration))
|
|
10
|
+
registerWorkbenchContribution2(SashSettingsController.ID, SashSettingsController, WorkbenchPhase.AfterRestored);
|
|
11
|
+
( Registry.as(Extensions.Configuration))
|
|
14
12
|
.registerConfiguration({
|
|
15
13
|
...workbenchConfigurationNodeBase,
|
|
16
14
|
properties: {
|
|
@@ -20,7 +18,7 @@ import { isIOS } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platfo
|
|
|
20
18
|
minimum: 1,
|
|
21
19
|
maximum: 20,
|
|
22
20
|
description: ( localize(
|
|
23
|
-
|
|
21
|
+
9979,
|
|
24
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."
|
|
25
23
|
))
|
|
26
24
|
},
|
|
@@ -30,7 +28,7 @@ import { isIOS } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platfo
|
|
|
30
28
|
minimum: 0,
|
|
31
29
|
maximum: 2000,
|
|
32
30
|
description: ( localize(
|
|
33
|
-
|
|
31
|
+
9980,
|
|
34
32
|
"Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
|
|
35
33
|
))
|
|
36
34
|
},
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
2
|
import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service";
|
|
3
3
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
4
|
-
import { ILayoutService } from "@codingame/monaco-vscode-api/vscode/vs/platform/layout/browser/layoutService.service";
|
|
5
4
|
export declare const minSize = 1;
|
|
6
5
|
export declare const maxSize = 20;
|
|
7
|
-
export declare class SashSettingsController implements IWorkbenchContribution
|
|
6
|
+
export declare class SashSettingsController extends Disposable implements IWorkbenchContribution {
|
|
8
7
|
private readonly configurationService;
|
|
9
|
-
|
|
10
|
-
private readonly
|
|
11
|
-
constructor(configurationService: IConfigurationService
|
|
8
|
+
static readonly ID = "workbench.contrib.sash";
|
|
9
|
+
private readonly styleSheet;
|
|
10
|
+
constructor(configurationService: IConfigurationService);
|
|
12
11
|
private onDidChangeSize;
|
|
13
12
|
private onDidChangeHoverDelay;
|
|
14
|
-
dispose(): void;
|
|
15
13
|
}
|
|
@@ -3,40 +3,41 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { clamp } from '@codingame/monaco-vscode-api/vscode/vs/base/common/numbers';
|
|
4
4
|
import { setGlobalSashSize, setGlobalHoverDelay } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/sash/sash';
|
|
5
5
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
6
|
-
import {
|
|
6
|
+
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
7
|
import { IConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service';
|
|
8
|
-
import {
|
|
8
|
+
import { createStyleSheet } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/domStylesheets';
|
|
9
9
|
|
|
10
|
-
let SashSettingsController = class SashSettingsController {
|
|
11
|
-
|
|
10
|
+
let SashSettingsController = class SashSettingsController extends Disposable {
|
|
11
|
+
static { this.ID = 'workbench.contrib.sash'; }
|
|
12
|
+
constructor(configurationService) {
|
|
13
|
+
super();
|
|
12
14
|
this.configurationService = configurationService;
|
|
13
|
-
this.
|
|
14
|
-
this.disposables = ( new DisposableStore());
|
|
15
|
+
this.styleSheet = createStyleSheet();
|
|
15
16
|
const onDidChangeSize = Event.filter(configurationService.onDidChangeConfiguration, e => e.affectsConfiguration('workbench.sash.size'));
|
|
16
|
-
onDidChangeSize(this.onDidChangeSize, this, this.
|
|
17
|
+
onDidChangeSize(this.onDidChangeSize, this, this._store);
|
|
17
18
|
this.onDidChangeSize();
|
|
18
19
|
const onDidChangeHoverDelay = Event.filter(configurationService.onDidChangeConfiguration, e => e.affectsConfiguration('workbench.sash.hoverDelay'));
|
|
19
|
-
onDidChangeHoverDelay(this.onDidChangeHoverDelay, this, this.
|
|
20
|
+
onDidChangeHoverDelay(this.onDidChangeHoverDelay, this, this._store);
|
|
20
21
|
this.onDidChangeHoverDelay();
|
|
21
22
|
}
|
|
22
23
|
onDidChangeSize() {
|
|
23
24
|
const configuredSize = this.configurationService.getValue('workbench.sash.size');
|
|
24
25
|
const size = clamp(configuredSize, 4, 20);
|
|
25
26
|
const hoverSize = clamp(configuredSize, 1, 8);
|
|
26
|
-
this.
|
|
27
|
-
|
|
27
|
+
this.styleSheet.textContent = `
|
|
28
|
+
.monaco-workbench {
|
|
29
|
+
--vscode-sash-size: ${size}px;
|
|
30
|
+
--vscode-sash-hover-size: ${hoverSize}px;
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
28
33
|
setGlobalSashSize(size);
|
|
29
34
|
}
|
|
30
35
|
onDidChangeHoverDelay() {
|
|
31
36
|
setGlobalHoverDelay(this.configurationService.getValue('workbench.sash.hoverDelay'));
|
|
32
37
|
}
|
|
33
|
-
dispose() {
|
|
34
|
-
this.disposables.dispose();
|
|
35
|
-
}
|
|
36
38
|
};
|
|
37
39
|
SashSettingsController = ( __decorate([
|
|
38
|
-
( __param(0, IConfigurationService))
|
|
39
|
-
( __param(1, ILayoutService))
|
|
40
|
+
( __param(0, IConfigurationService))
|
|
40
41
|
], SashSettingsController));
|
|
41
42
|
|
|
42
43
|
export { SashSettingsController };
|
|
@@ -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(10192, 'Scrolling Locked'));
|
|
121
|
+
const tooltip = ( localize(10193, '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(10194, "Toggle Locked Scrolling Across Editors")),
|
|
148
|
+
mnemonicTitle: ( localize(10195, "Locked Scrolling")),
|
|
149
149
|
},
|
|
150
150
|
category: Categories.View,
|
|
151
151
|
f1: true,
|
|
152
152
|
metadata: {
|
|
153
|
-
description: ( localize(
|
|
153
|
+
description: ( localize(10196, "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(10197, "Hold Locked Scrolling Across Editors")),
|
|
167
|
+
mnemonicTitle: ( localize(10198, "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(12314, 'Whether a type hierarchy provider is available'))));
|
|
26
|
+
const _ctxTypeHierarchyVisible = ( new RawContextKey('typeHierarchyVisible', false, ( localize(12315, '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(12316, '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(12317, "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(12318, "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(12319, '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(12320, '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(12321, '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(12322, '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(12323, '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(12324, "Supertypes of '{0}'", element.model.root.name))
|
|
269
|
+
: ( localize(12325, "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(12326, "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(12327, "No supertypes of '{0}'", model.root.name))
|
|
294
|
+
: ( localize(12328, "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(12329, "Type Hierarchy");
|
|
110
110
|
}
|
|
111
111
|
getAriaLabel(element) {
|
|
112
112
|
if (this.getDirection() === TypeHierarchyDirection.Supertypes) {
|
|
113
|
-
return localize(
|
|
113
|
+
return localize(12330, "supertypes of {0}", element.item.name);
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
|
-
return localize(
|
|
116
|
+
return localize(12331, "subtypes of {0}", element.item.name);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { isFirefox } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/browser';
|
|
4
|
-
import { getWindowById, createElement, EventType, addDisposableListener, getWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
4
|
+
import { getWindowById, getActiveElement, createElement, EventType, addDisposableListener, getWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
5
|
import { parentOriginHash } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/iframe';
|
|
6
6
|
import { ThrottledDelayer, promiseWithResolvers } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
7
7
|
import { streamToBuffer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/buffer';
|
|
8
8
|
import { CancellationTokenSource } from '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
9
9
|
import { Emitter, Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
10
10
|
import { Disposable, toDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
11
|
-
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
12
11
|
import { FileAccess, COI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
12
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
13
13
|
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
14
14
|
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
15
15
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
@@ -59,7 +59,8 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
59
59
|
if (!this.window) {
|
|
60
60
|
return false;
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
const activeElement = getActiveElement(this.window.document);
|
|
63
|
+
if (activeElement && activeElement !== this.element) {
|
|
63
64
|
return false;
|
|
64
65
|
}
|
|
65
66
|
return true;
|
|
@@ -158,7 +159,7 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
158
159
|
this._hasFindResult.fire(didFind);
|
|
159
160
|
}));
|
|
160
161
|
this._register(this.on('fatal-error', (e) => {
|
|
161
|
-
notificationService.error(( localize(
|
|
162
|
+
notificationService.error(( localize(12631, "Error loading webview: {0}", e.message)));
|
|
162
163
|
this._onFatalError.fire({ message: e.message });
|
|
163
164
|
}));
|
|
164
165
|
this._register(this.on('did-keydown', (data) => {
|
|
@@ -623,8 +624,11 @@ let WebviewElement = class WebviewElement extends Disposable {
|
|
|
623
624
|
if (!this.isFocused || !this.element) {
|
|
624
625
|
return;
|
|
625
626
|
}
|
|
626
|
-
if (this.window
|
|
627
|
-
|
|
627
|
+
if (this.window) {
|
|
628
|
+
const activeElement = getActiveElement(this.window?.document);
|
|
629
|
+
if (activeElement && activeElement !== this.element && activeElement?.tagName !== 'BODY') {
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
628
632
|
}
|
|
629
633
|
this.window?.document.body?.focus();
|
|
630
634
|
this._send('focus', undefined);
|
|
@@ -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(12632, "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(12633, "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(12634, '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(12635, '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(12636, "Reload Webviews")); }
|
|
103
103
|
constructor() {
|
|
104
104
|
super({
|
|
105
105
|
id: ReloadWebviewAction.ID,
|
|
@@ -6,7 +6,7 @@ import { registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform
|
|
|
6
6
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
7
7
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
8
8
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
9
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
9
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/editor';
|
|
10
10
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
11
11
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
12
12
|
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
@@ -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(12638, "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) {
|
|
@@ -7,7 +7,7 @@ import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
7
7
|
import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service";
|
|
8
8
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
9
9
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
10
|
-
import { ViewPane } from "@codingame/monaco-vscode-
|
|
10
|
+
import { ViewPane } from "@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane";
|
|
11
11
|
import { IViewletViewOptions } from "@codingame/monaco-vscode-2a94c04a-b85b-5669-b06b-89c1bfa11cb9-common/vscode/vs/workbench/browser/parts/views/viewsViewlet";
|
|
12
12
|
import { IViewBadge } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
13
13
|
import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service";
|
|
@@ -15,15 +15,15 @@ import { IProgressService } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
15
15
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
16
16
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
17
17
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
18
|
-
import { ViewPane, ViewPaneShowActions } from '@codingame/monaco-vscode-
|
|
19
|
-
import { Memento } from '@codingame/monaco-vscode-
|
|
18
|
+
import { ViewPane, ViewPaneShowActions } from '@codingame/monaco-vscode-501b06ab-3f58-516b-8a1a-c29d375d3da4-common/vscode/vs/workbench/browser/parts/views/viewPane';
|
|
19
|
+
import { Memento } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/common/memento';
|
|
20
20
|
import { IViewDescriptorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service';
|
|
21
21
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
22
22
|
import { ExtensionKeyedWebviewOriginStore, WebviewContentPurpose } from '@codingame/monaco-vscode-a654b07e-8806-5425-b124-18f03ba8e11a-common/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
23
23
|
import { IWebviewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
24
24
|
import { WebviewWindowDragMonitor } from '@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/webview/browser/webviewWindowDragMonitor';
|
|
25
25
|
import { IWebviewViewService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.service';
|
|
26
|
-
import { NumberBadge } from '@codingame/monaco-vscode-
|
|
26
|
+
import { NumberBadge } from '@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/workbench/services/activity/common/activity';
|
|
27
27
|
import { IActivityService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service';
|
|
28
28
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
29
29
|
import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
3
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
3
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/editor';
|
|
4
4
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
5
5
|
|
|
6
6
|
class EditorPaneService {
|
|
@@ -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(13347, 'There are multiple default editors available for the resource.')), [{
|
|
454
|
+
label: ( localize(13348, '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(13349, '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(13350, "Active"));
|
|
502
|
+
const currentDefaultLabel = ( localize(13351, "Default"));
|
|
503
|
+
const currentDefaultAndActiveLabel = ( localize(13352, "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(13353, "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(13354, "Select new default editor for '{0}'", `*${extname(resource)}`)) :
|
|
544
|
+
( localize(13355, "Select editor for '{0}'", basename(resource)));
|
|
545
545
|
editorPicker.placeholder = placeHolderMessage;
|
|
546
546
|
editorPicker.canAcceptInBackground = true;
|
|
547
547
|
editorPicker.items = editorPicks;
|