@codingame/monaco-vscode-view-common-service-override 11.1.2 → 12.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +3 -1
- package/index.js +110 -1
- package/package.json +64 -10
- package/service-override/tools/editorAssets.d.ts +1 -0
- package/service-override/tools/editorAssets.js +5 -0
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +21 -0
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +2 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.d.ts +2 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +1 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +18 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +1 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.d.ts +7 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +116 -115
- package/vscode/src/vs/workbench/browser/actions/listCommands.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +120 -125
- package/vscode/src/vs/workbench/browser/actions/navigationActions.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +81 -74
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +216 -250
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.d.ts +21 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +26 -25
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.d.ts +32 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +10 -8
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -64
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +48 -38
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +19 -40
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +6 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +6 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +16 -16
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +15 -10
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +27 -25
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +4 -2
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +6 -386
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +385 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.d.ts +105 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +50 -62
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +16 -15
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +15 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +15 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +3 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +37 -39
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +22 -21
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +3 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +117 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +57 -53
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +27 -25
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +15 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +4 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +28 -28
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +2 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +54 -56
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +48 -38
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +19 -30
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +3 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +139 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +58 -56
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +4 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +2 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +28 -28
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +3 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +15 -13
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +10 -8
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.d.ts +6 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +3 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +60 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +64 -63
- package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +184 -0
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +154 -148
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +1 -1
- package/vscode/src/vs/workbench/services/progress/browser/progressService.d.ts +36 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +59 -54
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +34 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +4 -3
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +71 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.d.ts +122 -0
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +86 -90
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.d.ts +80 -0
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +58 -64
- package/override/vs/workbench/browser/parts/editor/textEditor.js +0 -5
- package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +0 -11
- package/tools/editorAssets.js +0 -4
- package/tools/url.js +0 -10
- package/viewCommon.js +0 -109
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IWorkbenchContribution } from "vscode/vscode/vs/workbench/common/contributions";
|
|
2
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
3
|
+
import { IEditorResolverService } from "vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service";
|
|
4
|
+
import { IExtensionService } from "vscode/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
5
|
+
import { IWorkbenchEnvironmentService } from "vscode/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
6
|
+
export declare class DynamicEditorConfigurations extends Disposable implements IWorkbenchContribution {
|
|
7
|
+
private readonly editorResolverService;
|
|
8
|
+
private readonly environmentService;
|
|
9
|
+
static readonly ID = "workbench.contrib.dynamicEditorConfigurations";
|
|
10
|
+
private static readonly AUTO_LOCK_DEFAULT_ENABLED;
|
|
11
|
+
private static readonly AUTO_LOCK_EXTRA_EDITORS;
|
|
12
|
+
private static readonly AUTO_LOCK_REMOVE_EDITORS;
|
|
13
|
+
private readonly configurationRegistry;
|
|
14
|
+
private autoLockConfigurationNode;
|
|
15
|
+
private defaultBinaryEditorConfigurationNode;
|
|
16
|
+
private editorAssociationsConfigurationNode;
|
|
17
|
+
private editorLargeFileConfirmationConfigurationNode;
|
|
18
|
+
constructor(editorResolverService: IEditorResolverService, extensionService: IExtensionService, environmentService: IWorkbenchEnvironmentService);
|
|
19
|
+
private registerListeners;
|
|
20
|
+
private updateDynamicEditorConfigurations;
|
|
21
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { localize } from 'vscode/vscode/vs/nls';
|
|
3
4
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
4
5
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
6
|
+
import { Extensions, ConfigurationScope } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
6
7
|
import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
|
|
7
8
|
import { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
8
9
|
import { IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
@@ -16,43 +17,43 @@ var DynamicEditorConfigurations_1;
|
|
|
16
17
|
let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disposable {
|
|
17
18
|
static { DynamicEditorConfigurations_1 = this; }
|
|
18
19
|
static { this.ID = 'workbench.contrib.dynamicEditorConfigurations'; }
|
|
19
|
-
static { this.AUTO_LOCK_DEFAULT_ENABLED = (
|
|
20
|
+
static { this.AUTO_LOCK_DEFAULT_ENABLED = ( new Set([
|
|
20
21
|
'terminalEditor',
|
|
21
22
|
'mainThreadWebview-simpleBrowser.view',
|
|
22
23
|
'mainThreadWebview-browserPreview'
|
|
23
|
-
]))
|
|
24
|
+
])); }
|
|
24
25
|
static { this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
25
26
|
{
|
|
26
27
|
id: 'workbench.input.interactive',
|
|
27
|
-
label: ( localize(
|
|
28
|
+
label: ( localize(3069, 'Interactive Window')),
|
|
28
29
|
priority: RegisteredEditorPriority.builtin
|
|
29
30
|
},
|
|
30
31
|
{
|
|
31
32
|
id: 'mainThreadWebview-markdown.preview',
|
|
32
|
-
label: ( localize(
|
|
33
|
+
label: ( localize(3070, "Markdown Preview")),
|
|
33
34
|
priority: RegisteredEditorPriority.builtin
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
id: 'mainThreadWebview-simpleBrowser.view',
|
|
37
|
-
label: ( localize(
|
|
38
|
+
label: ( localize(3071, "Simple Browser")),
|
|
38
39
|
priority: RegisteredEditorPriority.builtin
|
|
39
40
|
},
|
|
40
41
|
{
|
|
41
42
|
id: 'mainThreadWebview-browserPreview',
|
|
42
|
-
label: ( localize(
|
|
43
|
+
label: ( localize(3072, "Live Preview")),
|
|
43
44
|
priority: RegisteredEditorPriority.builtin
|
|
44
45
|
}
|
|
45
46
|
]; }
|
|
46
|
-
static { this.AUTO_LOCK_REMOVE_EDITORS = (
|
|
47
|
+
static { this.AUTO_LOCK_REMOVE_EDITORS = ( new Set([
|
|
47
48
|
'vscode-interactive-input',
|
|
48
49
|
'interactive',
|
|
49
50
|
'vscode.markdown.preview.editor'
|
|
50
|
-
]))
|
|
51
|
+
])); }
|
|
51
52
|
constructor(editorResolverService, extensionService, environmentService) {
|
|
52
53
|
super();
|
|
53
54
|
this.editorResolverService = editorResolverService;
|
|
54
55
|
this.environmentService = environmentService;
|
|
55
|
-
this.configurationRegistry = (
|
|
56
|
+
this.configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
56
57
|
(async () => {
|
|
57
58
|
await extensionService.whenInstalledExtensionsRegistered();
|
|
58
59
|
this.updateDynamicEditorConfigurations();
|
|
@@ -63,19 +64,19 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
63
64
|
this._register(Event.debounce(this.editorResolverService.onDidChangeEditorRegistrations, (_, e) => e)(() => this.updateDynamicEditorConfigurations()));
|
|
64
65
|
}
|
|
65
66
|
updateDynamicEditorConfigurations() {
|
|
66
|
-
const lockableEditors = [...this.editorResolverService.getEditors(), ...DynamicEditorConfigurations_1.AUTO_LOCK_EXTRA_EDITORS].filter(e => !(
|
|
67
|
-
const binaryEditorCandidates = (
|
|
67
|
+
const lockableEditors = [...this.editorResolverService.getEditors(), ...DynamicEditorConfigurations_1.AUTO_LOCK_EXTRA_EDITORS].filter(e => !( DynamicEditorConfigurations_1.AUTO_LOCK_REMOVE_EDITORS.has(e.id)));
|
|
68
|
+
const binaryEditorCandidates = ( this.editorResolverService.getEditors().filter(e => e.priority !== RegisteredEditorPriority.exclusive).map(e => e.id));
|
|
68
69
|
const autoLockGroupConfiguration = Object.create(null);
|
|
69
70
|
for (const editor of lockableEditors) {
|
|
70
71
|
autoLockGroupConfiguration[editor.id] = {
|
|
71
72
|
type: 'boolean',
|
|
72
|
-
default: (
|
|
73
|
+
default: ( DynamicEditorConfigurations_1.AUTO_LOCK_DEFAULT_ENABLED.has(editor.id)),
|
|
73
74
|
description: editor.label
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
const defaultAutoLockGroupConfiguration = Object.create(null);
|
|
77
78
|
for (const editor of lockableEditors) {
|
|
78
|
-
defaultAutoLockGroupConfiguration[editor.id] = (
|
|
79
|
+
defaultAutoLockGroupConfiguration[editor.id] = ( DynamicEditorConfigurations_1.AUTO_LOCK_DEFAULT_ENABLED.has(editor.id));
|
|
79
80
|
}
|
|
80
81
|
const oldAutoLockConfigurationNode = this.autoLockConfigurationNode;
|
|
81
82
|
this.autoLockConfigurationNode = {
|
|
@@ -84,7 +85,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
84
85
|
'workbench.editor.autoLockGroups': {
|
|
85
86
|
type: 'object',
|
|
86
87
|
description: ( localize(
|
|
87
|
-
|
|
88
|
+
3073,
|
|
88
89
|
"If an editor matching one of the listed types is opened as the first in an editor group and more than one group is open, the group is automatically locked. Locked groups will only be used for opening editors when explicitly chosen by a user gesture (for example drag and drop), but not by default. Consequently, the active editor in a locked group is less likely to be replaced accidentally with a different editor."
|
|
89
90
|
)),
|
|
90
91
|
properties: autoLockGroupConfiguration,
|
|
@@ -102,7 +103,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
102
103
|
default: '',
|
|
103
104
|
enum: [...binaryEditorCandidates, ''],
|
|
104
105
|
description: ( localize(
|
|
105
|
-
|
|
106
|
+
3074,
|
|
106
107
|
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
107
108
|
)),
|
|
108
109
|
}
|
|
@@ -115,7 +116,7 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
115
116
|
'workbench.editorAssociations': {
|
|
116
117
|
type: 'object',
|
|
117
118
|
markdownDescription: ( localize(
|
|
118
|
-
|
|
119
|
+
3075,
|
|
119
120
|
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
120
121
|
)),
|
|
121
122
|
patternProperties: {
|
|
@@ -135,9 +136,9 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
135
136
|
type: 'number',
|
|
136
137
|
default: getLargeFileConfirmationLimit(this.environmentService.remoteAuthority) / ByteSize.MB,
|
|
137
138
|
minimum: 1,
|
|
138
|
-
scope:
|
|
139
|
+
scope: ConfigurationScope.RESOURCE,
|
|
139
140
|
markdownDescription: ( localize(
|
|
140
|
-
|
|
141
|
+
3076,
|
|
141
142
|
"Controls the minimum size of a file in MB before asking for confirmation when opening in the editor. Note that this setting may not apply to all editor types and environments."
|
|
142
143
|
)),
|
|
143
144
|
}
|
|
@@ -159,10 +160,10 @@ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disp
|
|
|
159
160
|
});
|
|
160
161
|
}
|
|
161
162
|
};
|
|
162
|
-
DynamicEditorConfigurations = DynamicEditorConfigurations_1 = (
|
|
163
|
-
(
|
|
164
|
-
(
|
|
165
|
-
(
|
|
166
|
-
], DynamicEditorConfigurations))
|
|
163
|
+
DynamicEditorConfigurations = DynamicEditorConfigurations_1 = ( __decorate([
|
|
164
|
+
( __param(0, IEditorResolverService)),
|
|
165
|
+
( __param(1, IExtensionService)),
|
|
166
|
+
( __param(2, IWorkbenchEnvironmentService))
|
|
167
|
+
], DynamicEditorConfigurations));
|
|
167
168
|
|
|
168
169
|
export { DynamicEditorConfigurations };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Event } from "vscode/vscode/vs/base/common/event";
|
|
2
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
+
import { IProgressIndicator } from "vscode/vscode/vs/platform/progress/common/progress";
|
|
4
|
+
import { PaneCompositeDescriptor } from "@codingame/monaco-vscode-b8988f79-16c1-5bff-b0e7-699bab3431da-common/vscode/vs/workbench/browser/panecomposite";
|
|
5
|
+
import { IPaneComposite } from "vscode/vscode/vs/workbench/common/panecomposite";
|
|
6
|
+
import { ViewContainerLocation } from "vscode/vscode/vs/workbench/common/views";
|
|
7
|
+
import { IPaneCompositePartService } from "vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service";
|
|
8
|
+
import { Disposable } from "vscode/vscode/vs/base/common/lifecycle";
|
|
9
|
+
export declare class PaneCompositePartService extends Disposable implements IPaneCompositePartService {
|
|
10
|
+
readonly _serviceBrand: undefined;
|
|
11
|
+
readonly onDidPaneCompositeOpen: Event<{
|
|
12
|
+
composite: IPaneComposite;
|
|
13
|
+
viewContainerLocation: ViewContainerLocation;
|
|
14
|
+
}>;
|
|
15
|
+
readonly onDidPaneCompositeClose: Event<{
|
|
16
|
+
composite: IPaneComposite;
|
|
17
|
+
viewContainerLocation: ViewContainerLocation;
|
|
18
|
+
}>;
|
|
19
|
+
private readonly paneCompositeParts;
|
|
20
|
+
constructor(instantiationService: IInstantiationService);
|
|
21
|
+
openPaneComposite(id: string | undefined, viewContainerLocation: ViewContainerLocation, focus?: boolean): Promise<IPaneComposite | undefined>;
|
|
22
|
+
getActivePaneComposite(viewContainerLocation: ViewContainerLocation): IPaneComposite | undefined;
|
|
23
|
+
getPaneComposite(id: string, viewContainerLocation: ViewContainerLocation): PaneCompositeDescriptor | undefined;
|
|
24
|
+
getPaneComposites(viewContainerLocation: ViewContainerLocation): PaneCompositeDescriptor[];
|
|
25
|
+
getPinnedPaneCompositeIds(viewContainerLocation: ViewContainerLocation): string[];
|
|
26
|
+
getVisiblePaneCompositeIds(viewContainerLocation: ViewContainerLocation): string[];
|
|
27
|
+
getPaneCompositeIds(viewContainerLocation: ViewContainerLocation): string[];
|
|
28
|
+
getProgressIndicator(id: string, viewContainerLocation: ViewContainerLocation): IProgressIndicator | undefined;
|
|
29
|
+
hideActivePaneComposite(viewContainerLocation: ViewContainerLocation): void;
|
|
30
|
+
getLastActivePaneCompositeId(viewContainerLocation: ViewContainerLocation): string;
|
|
31
|
+
private getPartByLocation;
|
|
32
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
3
4
|
import { assertIsDefined } from 'vscode/vscode/vs/base/common/types';
|
|
5
|
+
import 'vscode/vscode/vs/platform/instantiation/common/extensions';
|
|
4
6
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
5
|
-
import { AuxiliaryBarPart } from '@codingame/monaco-vscode-
|
|
6
|
-
import { PanelPart } from '@codingame/monaco-vscode-
|
|
7
|
-
import { SidebarPart } from '@codingame/monaco-vscode-
|
|
8
|
-
import { ViewContainerLocations } from 'vscode/vscode/vs/workbench/common/views';
|
|
7
|
+
import { AuxiliaryBarPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart';
|
|
8
|
+
import { PanelPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/workbench/browser/parts/panel/panelPart';
|
|
9
|
+
import { SidebarPart } from '@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
|
|
10
|
+
import { ViewContainerLocation, ViewContainerLocations } from 'vscode/vscode/vs/workbench/common/views';
|
|
9
11
|
import { Disposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
10
12
|
|
|
11
13
|
let PaneCompositePartService = class PaneCompositePartService extends Disposable {
|
|
@@ -15,9 +17,9 @@ let PaneCompositePartService = class PaneCompositePartService extends Disposable
|
|
|
15
17
|
const panelPart = instantiationService.createInstance(PanelPart);
|
|
16
18
|
const sideBarPart = instantiationService.createInstance(SidebarPart);
|
|
17
19
|
const auxiliaryBarPart = instantiationService.createInstance(AuxiliaryBarPart);
|
|
18
|
-
this.paneCompositeParts.set(
|
|
19
|
-
this.paneCompositeParts.set(
|
|
20
|
-
this.paneCompositeParts.set(
|
|
20
|
+
this.paneCompositeParts.set(ViewContainerLocation.Panel, panelPart);
|
|
21
|
+
this.paneCompositeParts.set(ViewContainerLocation.Sidebar, sideBarPart);
|
|
22
|
+
this.paneCompositeParts.set(ViewContainerLocation.AuxiliaryBar, auxiliaryBarPart);
|
|
21
23
|
const eventDisposables = this._register(( new DisposableStore()));
|
|
22
24
|
this.onDidPaneCompositeOpen = Event.any(...( ViewContainerLocations.map(loc => ( Event.map(
|
|
23
25
|
this.paneCompositeParts.get(loc).onDidPaneCompositeOpen,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { CallHierarchyProviderRegistry, CallHierarchyModel } from 'vscode/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
|
|
4
|
+
import { CallHierarchyDirection, CallHierarchyProviderRegistry, CallHierarchyModel } from '@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy';
|
|
4
5
|
import { CancellationTokenSource } from 'vscode/vscode/vs/base/common/cancellation';
|
|
5
6
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
7
|
import { CallHierarchyTreePeekWidget } from './callHierarchyPeek.js';
|
|
7
8
|
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
8
|
-
import { registerEditorContribution, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
9
|
+
import { registerEditorContribution, EditorContributionInstantiation, EditorAction2 } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
9
10
|
import { RawContextKey, ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
10
11
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
11
12
|
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
13
|
+
import { KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
14
|
+
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
12
15
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
13
16
|
import { PeekContext } from 'vscode/vscode/vs/editor/contrib/peekView/browser/peekView';
|
|
17
|
+
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
14
18
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
15
19
|
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
16
20
|
import { Range } from 'vscode/vscode/vs/editor/common/core/range';
|
|
@@ -20,17 +24,17 @@ import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistr
|
|
|
20
24
|
import { isCancellationError } from 'vscode/vscode/vs/base/common/errors';
|
|
21
25
|
|
|
22
26
|
var CallHierarchyController_1;
|
|
23
|
-
const _ctxHasCallHierarchyProvider = (
|
|
24
|
-
const _ctxCallHierarchyVisible = (
|
|
25
|
-
const _ctxCallHierarchyDirection = (
|
|
27
|
+
const _ctxHasCallHierarchyProvider = ( new RawContextKey('editorHasCallHierarchyProvider', false, ( localize(4111, 'Whether a call hierarchy provider is available'))));
|
|
28
|
+
const _ctxCallHierarchyVisible = ( new RawContextKey('callHierarchyVisible', false, ( localize(4112, 'Whether call hierarchy peek is currently showing'))));
|
|
29
|
+
const _ctxCallHierarchyDirection = ( new RawContextKey(
|
|
26
30
|
'callHierarchyDirection',
|
|
27
31
|
undefined,
|
|
28
|
-
{ type: 'string', description: ( localize(
|
|
29
|
-
))
|
|
32
|
+
{ type: 'string', description: ( localize(4113, 'Whether call hierarchy shows incoming or outgoing calls')) }
|
|
33
|
+
));
|
|
30
34
|
function sanitizedDirection(candidate) {
|
|
31
|
-
return candidate ===
|
|
35
|
+
return candidate === CallHierarchyDirection.CallsFrom || candidate === CallHierarchyDirection.CallsTo
|
|
32
36
|
? candidate
|
|
33
|
-
:
|
|
37
|
+
: CallHierarchyDirection.CallsTo;
|
|
34
38
|
}
|
|
35
39
|
let CallHierarchyController = class CallHierarchyController {
|
|
36
40
|
static { CallHierarchyController_1 = this; }
|
|
@@ -45,13 +49,13 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
45
49
|
this._storageService = _storageService;
|
|
46
50
|
this._editorService = _editorService;
|
|
47
51
|
this._instantiationService = _instantiationService;
|
|
48
|
-
this._dispoables = (
|
|
49
|
-
this._sessionDisposables = (
|
|
52
|
+
this._dispoables = ( new DisposableStore());
|
|
53
|
+
this._sessionDisposables = ( new DisposableStore());
|
|
50
54
|
this._ctxIsVisible = _ctxCallHierarchyVisible.bindTo(this._contextKeyService);
|
|
51
55
|
this._ctxHasProvider = _ctxHasCallHierarchyProvider.bindTo(this._contextKeyService);
|
|
52
56
|
this._ctxDirection = _ctxCallHierarchyDirection.bindTo(this._contextKeyService);
|
|
53
57
|
this._dispoables.add(Event.any(_editor.onDidChangeModel, _editor.onDidChangeModelLanguage, CallHierarchyProviderRegistry.onDidChange)(() => {
|
|
54
|
-
this._ctxHasProvider.set(_editor.hasModel() && (
|
|
58
|
+
this._ctxHasProvider.set(_editor.hasModel() && ( CallHierarchyProviderRegistry.has(_editor.getModel())));
|
|
55
59
|
}));
|
|
56
60
|
this._dispoables.add(this._sessionDisposables);
|
|
57
61
|
}
|
|
@@ -67,12 +71,12 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
67
71
|
}
|
|
68
72
|
const document = this._editor.getModel();
|
|
69
73
|
const position = this._editor.getPosition();
|
|
70
|
-
if (!(
|
|
74
|
+
if (!( CallHierarchyProviderRegistry.has(document))) {
|
|
71
75
|
return;
|
|
72
76
|
}
|
|
73
|
-
const cts = (
|
|
77
|
+
const cts = ( new CancellationTokenSource());
|
|
74
78
|
const model = CallHierarchyModel.create(document, position, cts.token);
|
|
75
|
-
const direction = sanitizedDirection(this._storageService.get(CallHierarchyController_1._StorageDirection,
|
|
79
|
+
const direction = sanitizedDirection(this._storageService.get(CallHierarchyController_1._StorageDirection, StorageScope.PROFILE, CallHierarchyDirection.CallsTo));
|
|
76
80
|
this._showCallHierarchyWidget(position, direction, model, cts);
|
|
77
81
|
}
|
|
78
82
|
async startCallHierarchyFromCallHierarchy() {
|
|
@@ -90,7 +94,7 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
90
94
|
}
|
|
91
95
|
const newModel = model.fork(call.item);
|
|
92
96
|
this._sessionDisposables.clear();
|
|
93
|
-
CallHierarchyController_1.get(newEditor)?._showCallHierarchyWidget(Range.lift(newModel.root.selectionRange).getStartPosition(), this._widget.direction, Promise.resolve(newModel), (
|
|
97
|
+
CallHierarchyController_1.get(newEditor)?._showCallHierarchyWidget(Range.lift(newModel.root.selectionRange).getStartPosition(), this._widget.direction, Promise.resolve(newModel), ( new CancellationTokenSource()));
|
|
94
98
|
}
|
|
95
99
|
_showCallHierarchyWidget(position, direction, model, cts) {
|
|
96
100
|
this._ctxIsVisible.set(true);
|
|
@@ -100,7 +104,7 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
100
104
|
this._widget.showLoading();
|
|
101
105
|
this._sessionDisposables.add(this._widget.onDidClose(() => {
|
|
102
106
|
this.endCallHierarchy();
|
|
103
|
-
this._storageService.store(CallHierarchyController_1._StorageDirection, this._widget.direction,
|
|
107
|
+
this._storageService.store(CallHierarchyController_1._StorageDirection, this._widget.direction, StorageScope.PROFILE, StorageTarget.USER);
|
|
104
108
|
}));
|
|
105
109
|
this._sessionDisposables.add({ dispose() { cts.dispose(true); } });
|
|
106
110
|
this._sessionDisposables.add(this._widget);
|
|
@@ -113,23 +117,23 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
113
117
|
this._widget.showModel(model);
|
|
114
118
|
}
|
|
115
119
|
else {
|
|
116
|
-
this._widget.showMessage(( localize(
|
|
120
|
+
this._widget.showMessage(( localize(4114, "No results")));
|
|
117
121
|
}
|
|
118
122
|
}).catch(err => {
|
|
119
123
|
if (isCancellationError(err)) {
|
|
120
124
|
this.endCallHierarchy();
|
|
121
125
|
return;
|
|
122
126
|
}
|
|
123
|
-
this._widget.showMessage(( localize(
|
|
127
|
+
this._widget.showMessage(( localize(4115, "Failed to show call hierarchy")));
|
|
124
128
|
});
|
|
125
129
|
}
|
|
126
130
|
showOutgoingCalls() {
|
|
127
|
-
this._widget?.updateDirection(
|
|
128
|
-
this._ctxDirection.set(
|
|
131
|
+
this._widget?.updateDirection(CallHierarchyDirection.CallsFrom);
|
|
132
|
+
this._ctxDirection.set(CallHierarchyDirection.CallsFrom);
|
|
129
133
|
}
|
|
130
134
|
showIncomingCalls() {
|
|
131
|
-
this._widget?.updateDirection(
|
|
132
|
-
this._ctxDirection.set(
|
|
135
|
+
this._widget?.updateDirection(CallHierarchyDirection.CallsTo);
|
|
136
|
+
this._ctxDirection.set(CallHierarchyDirection.CallsTo);
|
|
133
137
|
}
|
|
134
138
|
endCallHierarchy() {
|
|
135
139
|
this._sessionDisposables.clear();
|
|
@@ -137,34 +141,30 @@ let CallHierarchyController = class CallHierarchyController {
|
|
|
137
141
|
this._editor.focus();
|
|
138
142
|
}
|
|
139
143
|
};
|
|
140
|
-
CallHierarchyController = CallHierarchyController_1 = (
|
|
141
|
-
(
|
|
142
|
-
(
|
|
143
|
-
(
|
|
144
|
-
(
|
|
145
|
-
], CallHierarchyController))
|
|
146
|
-
registerEditorContribution(CallHierarchyController.Id, CallHierarchyController,
|
|
144
|
+
CallHierarchyController = CallHierarchyController_1 = ( __decorate([
|
|
145
|
+
( __param(1, IContextKeyService)),
|
|
146
|
+
( __param(2, IStorageService)),
|
|
147
|
+
( __param(3, ICodeEditorService)),
|
|
148
|
+
( __param(4, IInstantiationService))
|
|
149
|
+
], CallHierarchyController));
|
|
150
|
+
registerEditorContribution(CallHierarchyController.Id, CallHierarchyController, EditorContributionInstantiation.Eager);
|
|
147
151
|
registerAction2(class PeekCallHierarchyAction extends EditorAction2 {
|
|
148
152
|
constructor() {
|
|
149
153
|
super({
|
|
150
154
|
id: 'editor.showCallHierarchy',
|
|
151
|
-
title: ( localize2(
|
|
155
|
+
title: ( localize2(4116, 'Peek Call Hierarchy')),
|
|
152
156
|
menu: {
|
|
153
157
|
id: MenuId.EditorContextPeek,
|
|
154
158
|
group: 'navigation',
|
|
155
159
|
order: 1000,
|
|
156
|
-
when: (
|
|
157
|
-
_ctxHasCallHierarchyProvider,
|
|
158
|
-
PeekContext.notInPeekEditor,
|
|
159
|
-
(EditorContextKeys.isInEmbeddedEditor.toNegated())
|
|
160
|
-
))),
|
|
160
|
+
when: ( ContextKeyExpr.and(_ctxHasCallHierarchyProvider, PeekContext.notInPeekEditor, ( EditorContextKeys.isInEmbeddedEditor.toNegated()))),
|
|
161
161
|
},
|
|
162
162
|
keybinding: {
|
|
163
163
|
when: EditorContextKeys.editorTextFocus,
|
|
164
|
-
weight:
|
|
165
|
-
primary:
|
|
164
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
165
|
+
primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH
|
|
166
166
|
},
|
|
167
|
-
precondition: (
|
|
167
|
+
precondition: ( ContextKeyExpr.and(_ctxHasCallHierarchyProvider, PeekContext.notInPeekEditor)),
|
|
168
168
|
f1: true
|
|
169
169
|
});
|
|
170
170
|
}
|
|
@@ -176,19 +176,16 @@ registerAction2(class extends EditorAction2 {
|
|
|
176
176
|
constructor() {
|
|
177
177
|
super({
|
|
178
178
|
id: 'editor.showIncomingCalls',
|
|
179
|
-
title: ( localize2(
|
|
180
|
-
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(
|
|
181
|
-
precondition: (
|
|
182
|
-
_ctxCallHierarchyVisible,
|
|
183
|
-
(_ctxCallHierarchyDirection.isEqualTo("outgoingCalls" ))
|
|
184
|
-
))),
|
|
179
|
+
title: ( localize2(4117, 'Show Incoming Calls')),
|
|
180
|
+
icon: registerIcon('callhierarchy-incoming', Codicon.callIncoming, ( localize(4118, 'Icon for incoming calls in the call hierarchy view.'))),
|
|
181
|
+
precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom)))),
|
|
185
182
|
keybinding: {
|
|
186
|
-
weight:
|
|
187
|
-
primary:
|
|
183
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
184
|
+
primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH,
|
|
188
185
|
},
|
|
189
186
|
menu: {
|
|
190
187
|
id: CallHierarchyTreePeekWidget.TitleMenu,
|
|
191
|
-
when: (
|
|
188
|
+
when: ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsFrom)),
|
|
192
189
|
order: 1,
|
|
193
190
|
}
|
|
194
191
|
});
|
|
@@ -201,19 +198,16 @@ registerAction2(class extends EditorAction2 {
|
|
|
201
198
|
constructor() {
|
|
202
199
|
super({
|
|
203
200
|
id: 'editor.showOutgoingCalls',
|
|
204
|
-
title: ( localize2(
|
|
205
|
-
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(
|
|
206
|
-
precondition: (
|
|
207
|
-
_ctxCallHierarchyVisible,
|
|
208
|
-
(_ctxCallHierarchyDirection.isEqualTo("incomingCalls" ))
|
|
209
|
-
))),
|
|
201
|
+
title: ( localize2(4119, 'Show Outgoing Calls')),
|
|
202
|
+
icon: registerIcon('callhierarchy-outgoing', Codicon.callOutgoing, ( localize(4120, 'Icon for outgoing calls in the call hierarchy view.'))),
|
|
203
|
+
precondition: ( ContextKeyExpr.and(_ctxCallHierarchyVisible, ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo)))),
|
|
210
204
|
keybinding: {
|
|
211
|
-
weight:
|
|
212
|
-
primary:
|
|
205
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
206
|
+
primary: KeyMod.Shift + KeyMod.Alt + KeyCode.KeyH,
|
|
213
207
|
},
|
|
214
208
|
menu: {
|
|
215
209
|
id: CallHierarchyTreePeekWidget.TitleMenu,
|
|
216
|
-
when: (
|
|
210
|
+
when: ( _ctxCallHierarchyDirection.isEqualTo(CallHierarchyDirection.CallsTo)),
|
|
217
211
|
order: 1
|
|
218
212
|
}
|
|
219
213
|
});
|
|
@@ -226,11 +220,11 @@ registerAction2(class extends EditorAction2 {
|
|
|
226
220
|
constructor() {
|
|
227
221
|
super({
|
|
228
222
|
id: 'editor.refocusCallHierarchy',
|
|
229
|
-
title: ( localize2(
|
|
223
|
+
title: ( localize2(4121, 'Refocus Call Hierarchy')),
|
|
230
224
|
precondition: _ctxCallHierarchyVisible,
|
|
231
225
|
keybinding: {
|
|
232
|
-
weight:
|
|
233
|
-
primary:
|
|
226
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
227
|
+
primary: KeyMod.Shift + KeyCode.Enter
|
|
234
228
|
}
|
|
235
229
|
});
|
|
236
230
|
}
|
|
@@ -242,12 +236,12 @@ registerAction2(class extends EditorAction2 {
|
|
|
242
236
|
constructor() {
|
|
243
237
|
super({
|
|
244
238
|
id: 'editor.closeCallHierarchy',
|
|
245
|
-
title: ( localize(
|
|
239
|
+
title: ( localize(4122, 'Close')),
|
|
246
240
|
icon: Codicon.close,
|
|
247
241
|
precondition: _ctxCallHierarchyVisible,
|
|
248
242
|
keybinding: {
|
|
249
|
-
weight:
|
|
250
|
-
primary:
|
|
243
|
+
weight: KeybindingWeight.WorkbenchContrib + 10,
|
|
244
|
+
primary: KeyCode.Escape,
|
|
251
245
|
when: ContextKeyExpr.not('config.editor.stablePeek')
|
|
252
246
|
},
|
|
253
247
|
menu: {
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as peekView from "vscode/vscode/vs/editor/contrib/peekView/browser/peekView";
|
|
2
|
+
import { ICodeEditor } from "vscode/vscode/vs/editor/browser/editorBrowser";
|
|
3
|
+
import { IInstantiationService } from "vscode/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
+
import { CallHierarchyDirection, CallHierarchyModel } from "@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/callHierarchy/common/callHierarchy";
|
|
5
|
+
import * as callHTree from "./callHierarchyTree.js";
|
|
6
|
+
import { IEditorService } from "vscode/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
7
|
+
import { ITextModelService } from "vscode/vscode/vs/editor/common/services/resolverService";
|
|
8
|
+
import { IThemeService } from "vscode/vscode/vs/platform/theme/common/themeService.service";
|
|
9
|
+
import { IPosition } from "vscode/vscode/vs/editor/common/core/position";
|
|
10
|
+
import { IStorageService } from "vscode/vscode/vs/platform/storage/common/storage.service";
|
|
11
|
+
import { MenuId } from "vscode/vscode/vs/platform/actions/common/actions";
|
|
12
|
+
import { IMenuService } from "vscode/vscode/vs/platform/actions/common/actions.service";
|
|
13
|
+
import { IContextKeyService } from "vscode/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
14
|
+
export declare class CallHierarchyTreePeekWidget extends peekView.PeekViewWidget {
|
|
15
|
+
private readonly _where;
|
|
16
|
+
private _direction;
|
|
17
|
+
private readonly _peekViewService;
|
|
18
|
+
private readonly _editorService;
|
|
19
|
+
private readonly _textModelService;
|
|
20
|
+
private readonly _storageService;
|
|
21
|
+
private readonly _menuService;
|
|
22
|
+
private readonly _contextKeyService;
|
|
23
|
+
private readonly _instantiationService;
|
|
24
|
+
static readonly TitleMenu: MenuId;
|
|
25
|
+
private _parent;
|
|
26
|
+
private _message;
|
|
27
|
+
private _splitView;
|
|
28
|
+
private _tree;
|
|
29
|
+
private _treeViewStates;
|
|
30
|
+
private _editor;
|
|
31
|
+
private _dim;
|
|
32
|
+
private _layoutInfo;
|
|
33
|
+
private readonly _previewDisposable;
|
|
34
|
+
constructor(editor: ICodeEditor, _where: IPosition, _direction: CallHierarchyDirection, themeService: IThemeService, _peekViewService: peekView.IPeekViewService, _editorService: IEditorService, _textModelService: ITextModelService, _storageService: IStorageService, _menuService: IMenuService, _contextKeyService: IContextKeyService, _instantiationService: IInstantiationService);
|
|
35
|
+
dispose(): void;
|
|
36
|
+
get direction(): CallHierarchyDirection;
|
|
37
|
+
private _applyTheme;
|
|
38
|
+
protected _fillHead(container: HTMLElement): void;
|
|
39
|
+
protected _fillBody(parent: HTMLElement): void;
|
|
40
|
+
private _updatePreview;
|
|
41
|
+
showLoading(): void;
|
|
42
|
+
showMessage(message: string): void;
|
|
43
|
+
showModel(model: CallHierarchyModel): Promise<void>;
|
|
44
|
+
getModel(): CallHierarchyModel | undefined;
|
|
45
|
+
getFocused(): callHTree.Call | undefined;
|
|
46
|
+
updateDirection(newDirection: CallHierarchyDirection): Promise<void>;
|
|
47
|
+
private _show;
|
|
48
|
+
protected _onWidth(width: number): void;
|
|
49
|
+
protected _doLayoutBody(height: number, width: number): void;
|
|
50
|
+
}
|