@codingame/monaco-vscode-view-common-service-override 4.5.0-improve-code-splitting.1
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/assets/fake.html +10 -0
- package/assets/index-no-csp.html +1230 -0
- package/assets/index.html +1231 -0
- package/assets/service-worker.js +457 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/override/vs/workbench/browser/parts/editor/textEditor.js +5 -0
- package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +11 -0
- package/package.json +32 -0
- package/tools/editorAssets.js +4 -0
- package/tools/url.js +10 -0
- package/viewCommon.d.ts +5 -0
- package/viewCommon.js +105 -0
- package/vscode/src/vs/base/browser/deviceAccess.js +61 -0
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +180 -0
- package/vscode/src/vs/base/browser/ui/grid/grid.js +494 -0
- package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +6 -0
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +1113 -0
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +12 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +24 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +64 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +907 -0
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +764 -0
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +301 -0
- package/vscode/src/vs/workbench/browser/media/style.css.js +6 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +671 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +6 -0
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +6 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +229 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +6 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +606 -0
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +346 -0
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +246 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +1403 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +188 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +523 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +1030 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +391 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +6 -0
- package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +6 -0
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +6 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +643 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +472 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +68 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +160 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +6 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +39 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +238 -0
- package/vscode/src/vs/workbench/browser/style.js +54 -0
- package/vscode/src/vs/workbench/browser/window.js +381 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +300 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +367 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +135 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +18 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +146 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +215 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +78 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +56 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +63 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +183 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +8 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +408 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +147 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +635 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +230 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +75 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +42 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +81 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +350 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +100 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +148 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +106 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +403 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +199 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +41 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +128 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +619 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +161 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +266 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +173 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +195 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +38 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +41 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +283 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +362 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +133 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +314 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +96 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +98 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +656 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +65 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +59 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +143 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +121 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +67 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +234 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +45 -0
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +145 -0
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +341 -0
- package/vscode/src/vs/workbench/services/driver/browser/driver.js +186 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +13 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +676 -0
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +1516 -0
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +6 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +527 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +102 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +133 -0
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +711 -0
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +603 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
+
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
4
|
+
import { Disposable, MutableDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
+
import { parseKeyboardLayoutDescription, areKeyboardLayoutsEqual, getKeyboardLayoutId } from 'vscode/vscode/vs/platform/keyboardLayout/common/keyboardLayout';
|
|
6
|
+
import { IKeyboardLayoutService } from 'vscode/vscode/vs/platform/keyboardLayout/common/keyboardLayout.service';
|
|
7
|
+
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
8
|
+
import { KEYBOARD_LAYOUT_OPEN_PICKER } from 'vscode/vscode/vs/workbench/contrib/preferences/common/preferences';
|
|
9
|
+
import { isMacintosh, isWindows } from 'vscode/vscode/vs/base/common/platform';
|
|
10
|
+
import { IQuickInputService } from 'vscode/vscode/vs/platform/quickinput/common/quickInput.service';
|
|
11
|
+
import { registerAction2, Action2 } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
12
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
13
|
+
import { IEnvironmentService } from 'vscode/vscode/vs/platform/environment/common/environment.service';
|
|
14
|
+
import { IFileService } from 'vscode/vscode/vs/platform/files/common/files.service';
|
|
15
|
+
import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
16
|
+
import { VSBuffer } from 'vscode/vscode/vs/base/common/buffer';
|
|
17
|
+
|
|
18
|
+
let KeyboardLayoutPickerContribution = class KeyboardLayoutPickerContribution extends Disposable {
|
|
19
|
+
static { this.ID = 'workbench.contrib.keyboardLayoutPicker'; }
|
|
20
|
+
constructor(keyboardLayoutService, statusbarService) {
|
|
21
|
+
super();
|
|
22
|
+
this.keyboardLayoutService = keyboardLayoutService;
|
|
23
|
+
this.statusbarService = statusbarService;
|
|
24
|
+
this.pickerElement = this._register(( new MutableDisposable()));
|
|
25
|
+
const name = ( localizeWithPath(
|
|
26
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
27
|
+
'status.workbench.keyboardLayout',
|
|
28
|
+
"Keyboard Layout"
|
|
29
|
+
));
|
|
30
|
+
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
31
|
+
if (layout) {
|
|
32
|
+
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
33
|
+
const text = ( localizeWithPath(
|
|
34
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
35
|
+
'keyboardLayout',
|
|
36
|
+
"Layout: {0}",
|
|
37
|
+
layoutInfo.label
|
|
38
|
+
));
|
|
39
|
+
this.pickerElement.value = this.statusbarService.addEntry({
|
|
40
|
+
name,
|
|
41
|
+
text,
|
|
42
|
+
ariaLabel: text,
|
|
43
|
+
command: KEYBOARD_LAYOUT_OPEN_PICKER
|
|
44
|
+
}, 'status.workbench.keyboardLayout', 1 );
|
|
45
|
+
}
|
|
46
|
+
this._register(this.keyboardLayoutService.onDidChangeKeyboardLayout(() => {
|
|
47
|
+
const layout = this.keyboardLayoutService.getCurrentKeyboardLayout();
|
|
48
|
+
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
49
|
+
if (this.pickerElement.value) {
|
|
50
|
+
const text = ( localizeWithPath(
|
|
51
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
52
|
+
'keyboardLayout',
|
|
53
|
+
"Layout: {0}",
|
|
54
|
+
layoutInfo.label
|
|
55
|
+
));
|
|
56
|
+
this.pickerElement.value.update({
|
|
57
|
+
name,
|
|
58
|
+
text,
|
|
59
|
+
ariaLabel: text,
|
|
60
|
+
command: KEYBOARD_LAYOUT_OPEN_PICKER
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const text = ( localizeWithPath(
|
|
65
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
66
|
+
'keyboardLayout',
|
|
67
|
+
"Layout: {0}",
|
|
68
|
+
layoutInfo.label
|
|
69
|
+
));
|
|
70
|
+
this.pickerElement.value = this.statusbarService.addEntry({
|
|
71
|
+
name,
|
|
72
|
+
text,
|
|
73
|
+
ariaLabel: text,
|
|
74
|
+
command: KEYBOARD_LAYOUT_OPEN_PICKER
|
|
75
|
+
}, 'status.workbench.keyboardLayout', 1 );
|
|
76
|
+
}
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
KeyboardLayoutPickerContribution = ( __decorate([
|
|
81
|
+
( __param(0, IKeyboardLayoutService)),
|
|
82
|
+
( __param(1, IStatusbarService))
|
|
83
|
+
], KeyboardLayoutPickerContribution));
|
|
84
|
+
registerWorkbenchContribution2(KeyboardLayoutPickerContribution.ID, KeyboardLayoutPickerContribution, 1 );
|
|
85
|
+
const DEFAULT_CONTENT = [
|
|
86
|
+
`// ${( localizeWithPath(
|
|
87
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
88
|
+
'displayLanguage',
|
|
89
|
+
'Defines the keyboard layout used in VS Code in the browser environment.'
|
|
90
|
+
))}`,
|
|
91
|
+
`// ${( localizeWithPath(
|
|
92
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
93
|
+
'doc',
|
|
94
|
+
'Open VS Code and run "Developer: Inspect Key Mappings (JSON)" from Command Palette.'
|
|
95
|
+
))}`,
|
|
96
|
+
``,
|
|
97
|
+
`// Once you have the keyboard layout info, please paste it below.`,
|
|
98
|
+
'\n'
|
|
99
|
+
].join('\n');
|
|
100
|
+
registerAction2(class extends Action2 {
|
|
101
|
+
constructor() {
|
|
102
|
+
super({
|
|
103
|
+
id: KEYBOARD_LAYOUT_OPEN_PICKER,
|
|
104
|
+
title: ( localize2WithPath(
|
|
105
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
106
|
+
'keyboard.chooseLayout',
|
|
107
|
+
"Change Keyboard Layout"
|
|
108
|
+
)),
|
|
109
|
+
f1: true
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
async run(accessor) {
|
|
113
|
+
const keyboardLayoutService = accessor.get(IKeyboardLayoutService);
|
|
114
|
+
const quickInputService = accessor.get(IQuickInputService);
|
|
115
|
+
const configurationService = accessor.get(IConfigurationService);
|
|
116
|
+
const environmentService = accessor.get(IEnvironmentService);
|
|
117
|
+
const editorService = accessor.get(IEditorService);
|
|
118
|
+
const fileService = accessor.get(IFileService);
|
|
119
|
+
const layouts = keyboardLayoutService.getAllKeyboardLayouts();
|
|
120
|
+
const currentLayout = keyboardLayoutService.getCurrentKeyboardLayout();
|
|
121
|
+
const layoutConfig = configurationService.getValue('keyboard.layout');
|
|
122
|
+
const isAutoDetect = layoutConfig === 'autodetect';
|
|
123
|
+
const picks = ( layouts.map(layout => {
|
|
124
|
+
const picked = !isAutoDetect && areKeyboardLayoutsEqual(currentLayout, layout);
|
|
125
|
+
const layoutInfo = parseKeyboardLayoutDescription(layout);
|
|
126
|
+
return {
|
|
127
|
+
layout: layout,
|
|
128
|
+
label: [layoutInfo.label, (layout && layout.isUserKeyboardLayout) ? '(User configured layout)' : ''].join(' '),
|
|
129
|
+
id: layout.text || layout.lang || layout.layout,
|
|
130
|
+
description: layoutInfo.description + (picked ? ' (Current layout)' : ''),
|
|
131
|
+
picked: !isAutoDetect && areKeyboardLayoutsEqual(currentLayout, layout)
|
|
132
|
+
};
|
|
133
|
+
})).sort((a, b) => {
|
|
134
|
+
return a.label < b.label ? -1 : (a.label > b.label ? 1 : 0);
|
|
135
|
+
});
|
|
136
|
+
if (picks.length > 0) {
|
|
137
|
+
const platform = isMacintosh ? 'Mac' : isWindows ? 'Win' : 'Linux';
|
|
138
|
+
picks.unshift({ type: 'separator', label: ( localizeWithPath(
|
|
139
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
140
|
+
'layoutPicks',
|
|
141
|
+
"Keyboard Layouts ({0})",
|
|
142
|
+
platform
|
|
143
|
+
)) });
|
|
144
|
+
}
|
|
145
|
+
const configureKeyboardLayout = { label: ( localizeWithPath(
|
|
146
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
147
|
+
'configureKeyboardLayout',
|
|
148
|
+
"Configure Keyboard Layout"
|
|
149
|
+
)) };
|
|
150
|
+
picks.unshift(configureKeyboardLayout);
|
|
151
|
+
const autoDetectMode = {
|
|
152
|
+
label: ( localizeWithPath(
|
|
153
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
154
|
+
'autoDetect',
|
|
155
|
+
"Auto Detect"
|
|
156
|
+
)),
|
|
157
|
+
description: isAutoDetect ? `Current: ${parseKeyboardLayoutDescription(currentLayout).label}` : undefined,
|
|
158
|
+
picked: isAutoDetect ? true : undefined
|
|
159
|
+
};
|
|
160
|
+
picks.unshift(autoDetectMode);
|
|
161
|
+
const pick = await quickInputService.pick(picks, { placeHolder: ( localizeWithPath(
|
|
162
|
+
'vs/workbench/contrib/preferences/browser/keyboardLayoutPicker',
|
|
163
|
+
'pickKeyboardLayout',
|
|
164
|
+
"Select Keyboard Layout"
|
|
165
|
+
)), matchOnDescription: true });
|
|
166
|
+
if (!pick) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (pick === autoDetectMode) {
|
|
170
|
+
configurationService.updateValue('keyboard.layout', 'autodetect');
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
if (pick === configureKeyboardLayout) {
|
|
174
|
+
const file = environmentService.keyboardLayoutResource;
|
|
175
|
+
await fileService.stat(file).then(undefined, () => {
|
|
176
|
+
return fileService.createFile(file, VSBuffer.fromString(DEFAULT_CONTENT));
|
|
177
|
+
}).then((stat) => {
|
|
178
|
+
if (!stat) {
|
|
179
|
+
return undefined;
|
|
180
|
+
}
|
|
181
|
+
return editorService.openEditor({
|
|
182
|
+
resource: stat.resource,
|
|
183
|
+
languageId: 'jsonc',
|
|
184
|
+
options: { pinned: true }
|
|
185
|
+
});
|
|
186
|
+
}, (error) => {
|
|
187
|
+
throw new Error(localizeWithPath('vs/workbench/contrib/preferences/browser/keyboardLayoutPicker', 'fail.createSettings', "Unable to create '{0}' ({1}).", file.toString(), error));
|
|
188
|
+
});
|
|
189
|
+
return Promise.resolve();
|
|
190
|
+
}
|
|
191
|
+
configurationService.updateValue('keyboard.layout', getKeyboardLayoutId(pick.layout));
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
export { KeyboardLayoutPickerContribution };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
2
|
+
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
3
|
+
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
|
+
import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
|
|
5
|
+
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
6
|
+
import { SashSettingsController } from './sash.js';
|
|
7
|
+
import { isIOS } from 'vscode/vscode/vs/base/common/platform';
|
|
8
|
+
|
|
9
|
+
( Registry.as(Extensions.Workbench))
|
|
10
|
+
.registerWorkbenchContribution(SashSettingsController, 3 );
|
|
11
|
+
( Registry.as(Extensions$1.Configuration))
|
|
12
|
+
.registerConfiguration({
|
|
13
|
+
...workbenchConfigurationNodeBase,
|
|
14
|
+
properties: {
|
|
15
|
+
'workbench.sash.size': {
|
|
16
|
+
type: 'number',
|
|
17
|
+
default: isIOS ? 20 : 4,
|
|
18
|
+
minimum: 1,
|
|
19
|
+
maximum: 20,
|
|
20
|
+
description: ( localizeWithPath(
|
|
21
|
+
'vs/workbench/contrib/sash/browser/sash.contribution',
|
|
22
|
+
'sashSize',
|
|
23
|
+
"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."
|
|
24
|
+
))
|
|
25
|
+
},
|
|
26
|
+
'workbench.sash.hoverDelay': {
|
|
27
|
+
type: 'number',
|
|
28
|
+
default: 300,
|
|
29
|
+
minimum: 0,
|
|
30
|
+
maximum: 2000,
|
|
31
|
+
description: ( localizeWithPath(
|
|
32
|
+
'vs/workbench/contrib/sash/browser/sash.contribution',
|
|
33
|
+
'sashHoverDelay',
|
|
34
|
+
"Controls the hover feedback delay in milliseconds of the dragging area in between views/editors."
|
|
35
|
+
))
|
|
36
|
+
},
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
+
import { clamp } from 'vscode/vscode/vs/base/common/numbers';
|
|
3
|
+
import { setGlobalSashSize, setGlobalHoverDelay } from 'vscode/vscode/vs/base/browser/ui/sash/sash';
|
|
4
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
5
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration.service';
|
|
7
|
+
import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService.service';
|
|
8
|
+
|
|
9
|
+
let SashSettingsController = class SashSettingsController {
|
|
10
|
+
constructor(configurationService, layoutService) {
|
|
11
|
+
this.configurationService = configurationService;
|
|
12
|
+
this.layoutService = layoutService;
|
|
13
|
+
this.disposables = ( new DisposableStore());
|
|
14
|
+
const onDidChangeSize = Event.filter(configurationService.onDidChangeConfiguration, e => e.affectsConfiguration('workbench.sash.size'));
|
|
15
|
+
onDidChangeSize(this.onDidChangeSize, this, this.disposables);
|
|
16
|
+
this.onDidChangeSize();
|
|
17
|
+
const onDidChangeHoverDelay = Event.filter(configurationService.onDidChangeConfiguration, e => e.affectsConfiguration('workbench.sash.hoverDelay'));
|
|
18
|
+
onDidChangeHoverDelay(this.onDidChangeHoverDelay, this, this.disposables);
|
|
19
|
+
this.onDidChangeHoverDelay();
|
|
20
|
+
}
|
|
21
|
+
onDidChangeSize() {
|
|
22
|
+
const configuredSize = this.configurationService.getValue('workbench.sash.size');
|
|
23
|
+
const size = clamp(configuredSize, 4, 20);
|
|
24
|
+
const hoverSize = clamp(configuredSize, 1, 8);
|
|
25
|
+
this.layoutService.mainContainer.style.setProperty('--vscode-sash-size', size + 'px');
|
|
26
|
+
this.layoutService.mainContainer.style.setProperty('--vscode-sash-hover-size', hoverSize + 'px');
|
|
27
|
+
setGlobalSashSize(size);
|
|
28
|
+
}
|
|
29
|
+
onDidChangeHoverDelay() {
|
|
30
|
+
setGlobalHoverDelay(this.configurationService.getValue('workbench.sash.hoverDelay'));
|
|
31
|
+
}
|
|
32
|
+
dispose() {
|
|
33
|
+
this.disposables.dispose();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
SashSettingsController = ( __decorate([
|
|
37
|
+
( __param(0, IConfigurationService)),
|
|
38
|
+
( __param(1, ILayoutService))
|
|
39
|
+
], SashSettingsController));
|
|
40
|
+
|
|
41
|
+
export { SashSettingsController };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
+
|
|
3
|
+
var css = ".monaco-workbench .type-hierarchy .message,.monaco-workbench .type-hierarchy .results{display:none}.monaco-workbench .type-hierarchy[data-state=data] .results{display:inherit;height:100%}.monaco-workbench .type-hierarchy[data-state=message] .message{align-items:center;display:flex;height:100%;justify-content:center}.monaco-workbench .type-hierarchy .editor,.monaco-workbench .type-hierarchy .tree{height:100%}.monaco-editor .type-hierarchy .tree{background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .type-hierarchy .tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-workbench .type-hierarchy .tree .typehierarchy-element{align-items:center;display:flex;flex:1;flex-flow:row nowrap}.monaco-workbench .type-hierarchy .tree .typehierarchy-element .monaco-icon-label{padding-left:4px}.monaco-editor .type-hierarchy .type-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .type-hierarchy .editor .monaco-editor .inputarea.ime-input,.monaco-editor .type-hierarchy .editor .monaco-editor .monaco-editor-background{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .type-hierarchy .editor .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}";
|
|
4
|
+
n(css,{});
|
|
5
|
+
|
|
6
|
+
export { css, css as default };
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
|
|
2
|
+
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
3
|
+
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
4
|
+
import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
5
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
6
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
|
+
import { registerEditorContribution, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
8
|
+
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
9
|
+
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
10
|
+
import { PeekContext } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
|
|
11
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
12
|
+
import { registerAction2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
13
|
+
import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
14
|
+
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
15
|
+
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
16
|
+
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
17
|
+
import { TypeHierarchyTreePeekWidget } from './typeHierarchyPeek.js';
|
|
18
|
+
import { TypeHierarchyProviderRegistry, TypeHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy';
|
|
19
|
+
|
|
20
|
+
var TypeHierarchyController_1;
|
|
21
|
+
const _ctxHasTypeHierarchyProvider = ( new RawContextKey('editorHasTypeHierarchyProvider', false, ( localizeWithPath(
|
|
22
|
+
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
23
|
+
'editorHasTypeHierarchyProvider',
|
|
24
|
+
'Whether a type hierarchy provider is available'
|
|
25
|
+
))));
|
|
26
|
+
const _ctxTypeHierarchyVisible = ( new RawContextKey('typeHierarchyVisible', false, ( localizeWithPath(
|
|
27
|
+
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
28
|
+
'typeHierarchyVisible',
|
|
29
|
+
'Whether type hierarchy peek is currently showing'
|
|
30
|
+
))));
|
|
31
|
+
const _ctxTypeHierarchyDirection = ( new RawContextKey(
|
|
32
|
+
'typeHierarchyDirection',
|
|
33
|
+
undefined,
|
|
34
|
+
{ type: 'string', description: ( localizeWithPath(
|
|
35
|
+
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
36
|
+
'typeHierarchyDirection',
|
|
37
|
+
'whether type hierarchy shows super types or subtypes'
|
|
38
|
+
)) }
|
|
39
|
+
));
|
|
40
|
+
function sanitizedDirection(candidate) {
|
|
41
|
+
return candidate === "subtypes" || candidate === "supertypes"
|
|
42
|
+
? candidate
|
|
43
|
+
: "subtypes" ;
|
|
44
|
+
}
|
|
45
|
+
let TypeHierarchyController = class TypeHierarchyController {
|
|
46
|
+
static { TypeHierarchyController_1 = this; }
|
|
47
|
+
static { this.Id = 'typeHierarchy'; }
|
|
48
|
+
static get(editor) {
|
|
49
|
+
return editor.getContribution(TypeHierarchyController_1.Id);
|
|
50
|
+
}
|
|
51
|
+
static { this._storageDirectionKey = 'typeHierarchy/defaultDirection'; }
|
|
52
|
+
constructor(_editor, _contextKeyService, _storageService, _editorService, _instantiationService) {
|
|
53
|
+
this._editor = _editor;
|
|
54
|
+
this._contextKeyService = _contextKeyService;
|
|
55
|
+
this._storageService = _storageService;
|
|
56
|
+
this._editorService = _editorService;
|
|
57
|
+
this._instantiationService = _instantiationService;
|
|
58
|
+
this._disposables = ( new DisposableStore());
|
|
59
|
+
this._sessionDisposables = ( new DisposableStore());
|
|
60
|
+
this._ctxHasProvider = _ctxHasTypeHierarchyProvider.bindTo(this._contextKeyService);
|
|
61
|
+
this._ctxIsVisible = _ctxTypeHierarchyVisible.bindTo(this._contextKeyService);
|
|
62
|
+
this._ctxDirection = _ctxTypeHierarchyDirection.bindTo(this._contextKeyService);
|
|
63
|
+
this._disposables.add(Event.any(_editor.onDidChangeModel, _editor.onDidChangeModelLanguage, TypeHierarchyProviderRegistry.onDidChange)(() => {
|
|
64
|
+
this._ctxHasProvider.set(_editor.hasModel() && ( TypeHierarchyProviderRegistry.has(_editor.getModel())));
|
|
65
|
+
}));
|
|
66
|
+
this._disposables.add(this._sessionDisposables);
|
|
67
|
+
}
|
|
68
|
+
dispose() {
|
|
69
|
+
this._disposables.dispose();
|
|
70
|
+
}
|
|
71
|
+
async startTypeHierarchyFromEditor() {
|
|
72
|
+
this._sessionDisposables.clear();
|
|
73
|
+
if (!this._editor.hasModel()) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const document = this._editor.getModel();
|
|
77
|
+
const position = this._editor.getPosition();
|
|
78
|
+
if (!( TypeHierarchyProviderRegistry.has(document))) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const cts = ( new CancellationTokenSource());
|
|
82
|
+
const model = TypeHierarchyModel.create(document, position, cts.token);
|
|
83
|
+
const direction = sanitizedDirection(this._storageService.get(TypeHierarchyController_1._storageDirectionKey, 0 , "subtypes" ));
|
|
84
|
+
this._showTypeHierarchyWidget(position, direction, model, cts);
|
|
85
|
+
}
|
|
86
|
+
_showTypeHierarchyWidget(position, direction, model, cts) {
|
|
87
|
+
this._ctxIsVisible.set(true);
|
|
88
|
+
this._ctxDirection.set(direction);
|
|
89
|
+
Event.any(this._editor.onDidChangeModel, this._editor.onDidChangeModelLanguage)(this.endTypeHierarchy, this, this._sessionDisposables);
|
|
90
|
+
this._widget = this._instantiationService.createInstance(TypeHierarchyTreePeekWidget, this._editor, position, direction);
|
|
91
|
+
this._widget.showLoading();
|
|
92
|
+
this._sessionDisposables.add(this._widget.onDidClose(() => {
|
|
93
|
+
this.endTypeHierarchy();
|
|
94
|
+
this._storageService.store(TypeHierarchyController_1._storageDirectionKey, this._widget.direction, 0 , 0 );
|
|
95
|
+
}));
|
|
96
|
+
this._sessionDisposables.add({ dispose() { cts.dispose(true); } });
|
|
97
|
+
this._sessionDisposables.add(this._widget);
|
|
98
|
+
model.then(model => {
|
|
99
|
+
if (cts.token.isCancellationRequested) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (model) {
|
|
103
|
+
this._sessionDisposables.add(model);
|
|
104
|
+
this._widget.showModel(model);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
this._widget.showMessage(( localizeWithPath(
|
|
108
|
+
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
109
|
+
'no.item',
|
|
110
|
+
"No results"
|
|
111
|
+
)));
|
|
112
|
+
}
|
|
113
|
+
}).catch(err => {
|
|
114
|
+
if (isCancellationError(err)) {
|
|
115
|
+
this.endTypeHierarchy();
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
this._widget.showMessage(( localizeWithPath(
|
|
119
|
+
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
120
|
+
'error',
|
|
121
|
+
"Failed to show type hierarchy"
|
|
122
|
+
)));
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
async startTypeHierarchyFromTypeHierarchy() {
|
|
126
|
+
if (!this._widget) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const model = this._widget.getModel();
|
|
130
|
+
const typeItem = this._widget.getFocused();
|
|
131
|
+
if (!typeItem || !model) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const newEditor = await this._editorService.openCodeEditor({ resource: typeItem.item.uri }, this._editor);
|
|
135
|
+
if (!newEditor) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const newModel = model.fork(typeItem.item);
|
|
139
|
+
this._sessionDisposables.clear();
|
|
140
|
+
TypeHierarchyController_1.get(newEditor)?._showTypeHierarchyWidget(Range.lift(newModel.root.selectionRange).getStartPosition(), this._widget.direction, Promise.resolve(newModel), ( new CancellationTokenSource()));
|
|
141
|
+
}
|
|
142
|
+
showSupertypes() {
|
|
143
|
+
this._widget?.updateDirection("supertypes" );
|
|
144
|
+
this._ctxDirection.set("supertypes" );
|
|
145
|
+
}
|
|
146
|
+
showSubtypes() {
|
|
147
|
+
this._widget?.updateDirection("subtypes" );
|
|
148
|
+
this._ctxDirection.set("subtypes" );
|
|
149
|
+
}
|
|
150
|
+
endTypeHierarchy() {
|
|
151
|
+
this._sessionDisposables.clear();
|
|
152
|
+
this._ctxIsVisible.set(false);
|
|
153
|
+
this._editor.focus();
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
TypeHierarchyController = TypeHierarchyController_1 = ( __decorate([
|
|
157
|
+
( __param(1, IContextKeyService)),
|
|
158
|
+
( __param(2, IStorageService)),
|
|
159
|
+
( __param(3, ICodeEditorService)),
|
|
160
|
+
( __param(4, IInstantiationService))
|
|
161
|
+
], TypeHierarchyController));
|
|
162
|
+
registerEditorContribution(TypeHierarchyController.Id, TypeHierarchyController, 0 );
|
|
163
|
+
registerAction2(class PeekTypeHierarchyAction extends EditorAction2 {
|
|
164
|
+
constructor() {
|
|
165
|
+
super({
|
|
166
|
+
id: 'editor.showTypeHierarchy',
|
|
167
|
+
title: ( localize2WithPath(
|
|
168
|
+
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
169
|
+
'title',
|
|
170
|
+
'Peek Type Hierarchy'
|
|
171
|
+
)),
|
|
172
|
+
menu: {
|
|
173
|
+
id: MenuId.EditorContextPeek,
|
|
174
|
+
group: 'navigation',
|
|
175
|
+
order: 1000,
|
|
176
|
+
when: ( ContextKeyExpr.and(_ctxHasTypeHierarchyProvider, PeekContext.notInPeekEditor)),
|
|
177
|
+
},
|
|
178
|
+
precondition: ( ContextKeyExpr.and(_ctxHasTypeHierarchyProvider, PeekContext.notInPeekEditor)),
|
|
179
|
+
f1: true
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
async runEditorCommand(_accessor, editor) {
|
|
183
|
+
return TypeHierarchyController.get(editor)?.startTypeHierarchyFromEditor();
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
registerAction2(class extends EditorAction2 {
|
|
187
|
+
constructor() {
|
|
188
|
+
super({
|
|
189
|
+
id: 'editor.showSupertypes',
|
|
190
|
+
title: ( localize2WithPath(
|
|
191
|
+
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
192
|
+
'title.supertypes',
|
|
193
|
+
'Show Supertypes'
|
|
194
|
+
)),
|
|
195
|
+
icon: Codicon.typeHierarchySuper,
|
|
196
|
+
precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo("subtypes" )))),
|
|
197
|
+
keybinding: {
|
|
198
|
+
weight: 200 ,
|
|
199
|
+
primary: 1024 + 512 + 38 ,
|
|
200
|
+
},
|
|
201
|
+
menu: {
|
|
202
|
+
id: TypeHierarchyTreePeekWidget.TitleMenu,
|
|
203
|
+
when: ( _ctxTypeHierarchyDirection.isEqualTo("subtypes" )),
|
|
204
|
+
order: 1,
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
runEditorCommand(_accessor, editor) {
|
|
209
|
+
return TypeHierarchyController.get(editor)?.showSupertypes();
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
registerAction2(class extends EditorAction2 {
|
|
213
|
+
constructor() {
|
|
214
|
+
super({
|
|
215
|
+
id: 'editor.showSubtypes',
|
|
216
|
+
title: ( localize2WithPath(
|
|
217
|
+
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
218
|
+
'title.subtypes',
|
|
219
|
+
'Show Subtypes'
|
|
220
|
+
)),
|
|
221
|
+
icon: Codicon.typeHierarchySub,
|
|
222
|
+
precondition: ( ContextKeyExpr.and(_ctxTypeHierarchyVisible, ( _ctxTypeHierarchyDirection.isEqualTo("supertypes" )))),
|
|
223
|
+
keybinding: {
|
|
224
|
+
weight: 200 ,
|
|
225
|
+
primary: 1024 + 512 + 38 ,
|
|
226
|
+
},
|
|
227
|
+
menu: {
|
|
228
|
+
id: TypeHierarchyTreePeekWidget.TitleMenu,
|
|
229
|
+
when: ( _ctxTypeHierarchyDirection.isEqualTo("supertypes" )),
|
|
230
|
+
order: 1,
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
runEditorCommand(_accessor, editor) {
|
|
235
|
+
return TypeHierarchyController.get(editor)?.showSubtypes();
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
registerAction2(class extends EditorAction2 {
|
|
239
|
+
constructor() {
|
|
240
|
+
super({
|
|
241
|
+
id: 'editor.refocusTypeHierarchy',
|
|
242
|
+
title: ( localize2WithPath(
|
|
243
|
+
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
244
|
+
'title.refocusTypeHierarchy',
|
|
245
|
+
'Refocus Type Hierarchy'
|
|
246
|
+
)),
|
|
247
|
+
precondition: _ctxTypeHierarchyVisible,
|
|
248
|
+
keybinding: {
|
|
249
|
+
weight: 200 ,
|
|
250
|
+
primary: 1024 + 3
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
async runEditorCommand(_accessor, editor) {
|
|
255
|
+
return TypeHierarchyController.get(editor)?.startTypeHierarchyFromTypeHierarchy();
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
registerAction2(class extends EditorAction2 {
|
|
259
|
+
constructor() {
|
|
260
|
+
super({
|
|
261
|
+
id: 'editor.closeTypeHierarchy',
|
|
262
|
+
title: ( localizeWithPath(
|
|
263
|
+
'vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution',
|
|
264
|
+
'close',
|
|
265
|
+
'Close'
|
|
266
|
+
)),
|
|
267
|
+
icon: Codicon.close,
|
|
268
|
+
precondition: _ctxTypeHierarchyVisible,
|
|
269
|
+
keybinding: {
|
|
270
|
+
weight: 200 + 10,
|
|
271
|
+
primary: 9 ,
|
|
272
|
+
when: ContextKeyExpr.not('config.editor.stablePeek')
|
|
273
|
+
},
|
|
274
|
+
menu: {
|
|
275
|
+
id: TypeHierarchyTreePeekWidget.TitleMenu,
|
|
276
|
+
order: 1000
|
|
277
|
+
}
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
runEditorCommand(_accessor, editor) {
|
|
281
|
+
return TypeHierarchyController.get(editor)?.endTypeHierarchy();
|
|
282
|
+
}
|
|
283
|
+
});
|