@codingame/monaco-vscode-views-service-override 3.2.2 → 4.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 +1 -1
- package/index.js +1 -1
- package/override/vs/platform/dialogs/common/dialogs.js +2 -0
- package/package.json +11 -11
- package/tools/editor.js +82 -3
- package/tools/views.d.ts +2 -1
- package/tools/views.js +5 -1
- package/views.d.ts +1 -1
- package/views.js +9 -3
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +5 -3
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +19 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +3 -3
package/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/com
|
|
|
8
8
|
export { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
9
9
|
export { IResolvedTextEditorModel } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
10
10
|
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
11
|
-
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
11
|
+
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService/hoverService';
|
|
12
12
|
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
13
13
|
export { IView, SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
14
14
|
export { CustomViewOption, EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
package/index.js
CHANGED
|
@@ -14,6 +14,6 @@ export { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInpu
|
|
|
14
14
|
export { SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
15
15
|
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
16
16
|
export { ActivityService } from 'vscode/vscode/vs/workbench/services/activity/browser/activityService';
|
|
17
|
-
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
17
|
+
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService/hoverService';
|
|
18
18
|
export { PanelPart } from 'vscode/vscode/vs/workbench/browser/parts/panel/panelPart';
|
|
19
19
|
export { SidebarPart } from 'vscode/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-views-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
22
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "
|
|
23
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "
|
|
24
|
-
"@codingame/monaco-vscode-keybindings-service-override": "
|
|
25
|
-
"@codingame/monaco-vscode-files-service-override": "
|
|
26
|
-
"@codingame/monaco-vscode-extensions-service-override": "
|
|
27
|
-
"@codingame/monaco-vscode-environment-service-override": "
|
|
28
|
-
"@codingame/monaco-vscode-layout-service-override": "
|
|
29
|
-
"@codingame/monaco-vscode-host-service-override": "
|
|
30
|
-
"@codingame/monaco-vscode-base-service-override": "
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@4.0.0",
|
|
22
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "4.0.0",
|
|
23
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "4.0.0",
|
|
24
|
+
"@codingame/monaco-vscode-keybindings-service-override": "4.0.0",
|
|
25
|
+
"@codingame/monaco-vscode-files-service-override": "4.0.0",
|
|
26
|
+
"@codingame/monaco-vscode-extensions-service-override": "4.0.0",
|
|
27
|
+
"@codingame/monaco-vscode-environment-service-override": "4.0.0",
|
|
28
|
+
"@codingame/monaco-vscode-layout-service-override": "4.0.0",
|
|
29
|
+
"@codingame/monaco-vscode-host-service-override": "4.0.0",
|
|
30
|
+
"@codingame/monaco-vscode-base-service-override": "4.0.0"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/tools/editor.js
CHANGED
|
@@ -26,6 +26,85 @@ import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
|
26
26
|
import { unsupported } from '../tools.js';
|
|
27
27
|
|
|
28
28
|
var StandaloneEditorGroup_1;
|
|
29
|
+
class EmptyEditorGroup {
|
|
30
|
+
constructor() {
|
|
31
|
+
this.isTransient = () => false;
|
|
32
|
+
this.windowId = mainWindow.vscodeWindowId;
|
|
33
|
+
this.createEditorActions = unsupported;
|
|
34
|
+
this.onDidFocus = Event.None;
|
|
35
|
+
this.onDidOpenEditorFail = Event.None;
|
|
36
|
+
this.whenRestored = Promise.resolve();
|
|
37
|
+
this.disposed = false;
|
|
38
|
+
this.setActive = unsupported;
|
|
39
|
+
this.notifyIndexChanged = unsupported;
|
|
40
|
+
this.relayout = unsupported;
|
|
41
|
+
this.dispose = unsupported;
|
|
42
|
+
this.toJSON = unsupported;
|
|
43
|
+
this.minimumWidth = 0;
|
|
44
|
+
this.maximumWidth = Number.POSITIVE_INFINITY;
|
|
45
|
+
this.minimumHeight = 0;
|
|
46
|
+
this.maximumHeight = Number.POSITIVE_INFINITY;
|
|
47
|
+
this.onDidChange = Event.None;
|
|
48
|
+
this.layout = unsupported;
|
|
49
|
+
this.onDidModelChange = Event.None;
|
|
50
|
+
this.onWillDispose = Event.None;
|
|
51
|
+
this.onDidActiveEditorChange = Event.None;
|
|
52
|
+
this.onWillCloseEditor = Event.None;
|
|
53
|
+
this.onDidCloseEditor = Event.None;
|
|
54
|
+
this.onWillMoveEditor = Event.None;
|
|
55
|
+
this.onWillOpenEditor = Event.None;
|
|
56
|
+
this.id = 0;
|
|
57
|
+
this.index = 0;
|
|
58
|
+
this.label = 'main';
|
|
59
|
+
this.ariaLabel = 'main';
|
|
60
|
+
this.activeEditorPane = undefined;
|
|
61
|
+
this.activeEditor = null;
|
|
62
|
+
this.previewEditor = null;
|
|
63
|
+
this.count = 0;
|
|
64
|
+
this.isEmpty = false;
|
|
65
|
+
this.isLocked = false;
|
|
66
|
+
this.stickyCount = 0;
|
|
67
|
+
this.editors = [];
|
|
68
|
+
this.getEditors = () => [];
|
|
69
|
+
this.findEditors = () => [];
|
|
70
|
+
this.getEditorByIndex = () => undefined;
|
|
71
|
+
this.getIndexOfEditor = unsupported;
|
|
72
|
+
this.openEditor = unsupported;
|
|
73
|
+
this.openEditors = unsupported;
|
|
74
|
+
this.isPinned = () => false;
|
|
75
|
+
this.isSticky = () => false;
|
|
76
|
+
this.isActive = () => false;
|
|
77
|
+
this.contains = () => false;
|
|
78
|
+
this.moveEditor = unsupported;
|
|
79
|
+
this.moveEditors = unsupported;
|
|
80
|
+
this.copyEditor = unsupported;
|
|
81
|
+
this.copyEditors = unsupported;
|
|
82
|
+
this.closeEditor = unsupported;
|
|
83
|
+
this.closeEditors = unsupported;
|
|
84
|
+
this.closeAllEditors = unsupported;
|
|
85
|
+
this.replaceEditors = unsupported;
|
|
86
|
+
this.pinEditor = () => { };
|
|
87
|
+
this.stickEditor = () => { };
|
|
88
|
+
this.unstickEditor = () => { };
|
|
89
|
+
this.lock = () => { };
|
|
90
|
+
this.isFirst = unsupported;
|
|
91
|
+
this.isLast = unsupported;
|
|
92
|
+
}
|
|
93
|
+
get groupsView() {
|
|
94
|
+
return unsupported();
|
|
95
|
+
}
|
|
96
|
+
notifyLabelChanged() { }
|
|
97
|
+
get titleHeight() {
|
|
98
|
+
return unsupported();
|
|
99
|
+
}
|
|
100
|
+
get element() {
|
|
101
|
+
return unsupported();
|
|
102
|
+
}
|
|
103
|
+
get scopedContextKeyService() { return StandaloneServices.get(IContextKeyService); }
|
|
104
|
+
focus() {
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const fakeActiveGroup = new EmptyEditorGroup();
|
|
29
108
|
class SimpleEditorPane {
|
|
30
109
|
constructor(editor) {
|
|
31
110
|
this.editor = editor;
|
|
@@ -35,7 +114,7 @@ class SimpleEditorPane {
|
|
|
35
114
|
this.onDidBlur = Event.None;
|
|
36
115
|
this.input = undefined;
|
|
37
116
|
this.options = undefined;
|
|
38
|
-
this.group =
|
|
117
|
+
this.group = fakeActiveGroup;
|
|
39
118
|
this.scopedContextKeyService = undefined;
|
|
40
119
|
this.getViewState = unsupported;
|
|
41
120
|
this.isVisible = unsupported;
|
|
@@ -165,6 +244,7 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
|
|
|
165
244
|
this.editor = editor;
|
|
166
245
|
this.scopedContextKeyService = scopedContextKeyService;
|
|
167
246
|
this.active = false;
|
|
247
|
+
this.isTransient = () => false;
|
|
168
248
|
this.windowId = mainWindow.vscodeWindowId;
|
|
169
249
|
this.onDidFocus = this.editor.onDidFocusEditorWidget;
|
|
170
250
|
this.onDidOpenEditorFail = Event.None;
|
|
@@ -478,7 +558,6 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
|
|
|
478
558
|
return this.delegate.createAuxiliaryEditorPart(options);
|
|
479
559
|
}
|
|
480
560
|
get mainPart() { return this.delegate.mainPart; }
|
|
481
|
-
get activePart() { return this.delegate.activePart; }
|
|
482
561
|
getPart(container) {
|
|
483
562
|
return this.delegate.getPart(container);
|
|
484
563
|
}
|
|
@@ -506,4 +585,4 @@ MonacoDelegateEditorGroupsService = __decorate([
|
|
|
506
585
|
( __param(1, IInstantiationService))
|
|
507
586
|
], MonacoDelegateEditorGroupsService);
|
|
508
587
|
|
|
509
|
-
export { MonacoDelegateEditorGroupsService, MonacoEditorService, wrapOpenEditor };
|
|
588
|
+
export { MonacoDelegateEditorGroupsService, MonacoEditorService, fakeActiveGroup, wrapOpenEditor };
|
package/tools/views.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { EditorInput, IEditorCloseHandler } from 'vscode/vscode/vs/workbench/com
|
|
|
19
19
|
import { IEditorOpenContext, EditorInputCapabilities, Verbosity, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
|
|
20
20
|
export { EditorInputCapabilities, IEditorSerializer } from 'vscode/vscode/vs/workbench/common/editor';
|
|
21
21
|
import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
22
|
+
import { IEditorGroup } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
22
23
|
|
|
23
24
|
type Label = string | {
|
|
24
25
|
short: string;
|
|
@@ -64,7 +65,7 @@ declare abstract class SimpleEditorInput extends EditorInput {
|
|
|
64
65
|
isDirty(): boolean;
|
|
65
66
|
setDirty(dirty: boolean): void;
|
|
66
67
|
}
|
|
67
|
-
declare function registerEditorPane<Services extends BrandedService[]>(typeId: string, name: string, ctor: new (...services: Services) => EditorPane, inputCtors: (new (...args: any[]) => EditorInput)[]): IDisposable;
|
|
68
|
+
declare function registerEditorPane<Services extends BrandedService[]>(typeId: string, name: string, ctor: new (group: IEditorGroup, ...services: Services) => EditorPane, inputCtors: (new (...args: any[]) => EditorInput)[]): IDisposable;
|
|
68
69
|
declare function registerEditor(globPattern: string, editorInfo: RegisteredEditorInfo, editorOptions: RegisteredEditorOptions, factory: EditorInputFactoryObject): IDisposable;
|
|
69
70
|
declare function registerEditorSerializer<Services extends BrandedService[]>(editorTypeId: string, ctor: {
|
|
70
71
|
new (...Services: Services): IEditorSerializer;
|
package/tools/views.js
CHANGED
|
@@ -28,14 +28,18 @@ import { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar
|
|
|
28
28
|
export { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
|
|
29
29
|
import { assertIsDefined, assertAllDefined } from 'vscode/vscode/vs/base/common/types';
|
|
30
30
|
export { ConfirmResult } from '../override/vs/platform/dialogs/common/dialogs.js';
|
|
31
|
+
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|
|
32
|
+
export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
31
33
|
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
32
34
|
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
33
35
|
import { StandaloneServices } from 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
36
|
+
export { SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
37
|
+
import { fakeActiveGroup } from './editor.js';
|
|
34
38
|
import { withReadyServices } from 'vscode/services';
|
|
35
39
|
|
|
36
40
|
class InjectedEditorPane extends EditorPane {
|
|
37
41
|
constructor(id) {
|
|
38
|
-
super(id, StandaloneServices.get(ITelemetryService), StandaloneServices.get(IThemeService), StandaloneServices.get(IStorageService));
|
|
42
|
+
super(id, fakeActiveGroup, StandaloneServices.get(ITelemetryService), StandaloneServices.get(IThemeService), StandaloneServices.get(IStorageService));
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
class SimpleEditorPane extends InjectedEditorPane {
|
package/views.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IEditorOverrideServices } from 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
|
|
2
2
|
import { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
3
3
|
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
4
|
-
import { Part } from 'vscode/vscode/vs/workbench/browser/part';
|
|
5
4
|
import { IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
5
|
export { IReference } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { Part } from 'vscode/vscode/vs/workbench/browser/part';
|
|
7
7
|
import { ILayoutInitializationState } from 'vscode/vscode/vs/workbench/browser/layout';
|
|
8
8
|
export { ILayoutInitializationState } from 'vscode/vscode/vs/workbench/browser/layout';
|
|
9
9
|
import { OpenEditor } from './tools/editor.js';
|
package/views.js
CHANGED
|
@@ -62,11 +62,12 @@ import { EditorParts } from 'vscode/vscode/vs/workbench/browser/parts/editor/edi
|
|
|
62
62
|
import { IAuxiliaryWindowService, BrowserAuxiliaryWindowService } from 'vscode/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService';
|
|
63
63
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
|
|
64
64
|
import { ViewsService } from 'vscode/vscode/vs/workbench/services/views/browser/viewsService';
|
|
65
|
-
import { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
66
|
-
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
67
65
|
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover';
|
|
68
66
|
import { IEditorPaneService } from 'vscode/vscode/vs/workbench/services/editor/common/editorPaneService';
|
|
69
67
|
import { EditorPaneService } from 'vscode/vscode/vs/workbench/services/editor/browser/editorPaneService';
|
|
68
|
+
import { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService/hoverService';
|
|
69
|
+
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService/hoverService';
|
|
70
|
+
import { ICustomEditorLabelService, CustomEditorLabelService } from 'vscode/vscode/vs/workbench/services/editor/common/customEditorLabelService';
|
|
70
71
|
import { MonacoEditorService, MonacoDelegateEditorGroupsService } from './tools/editor.js';
|
|
71
72
|
import getServiceOverride$1 from '@codingame/monaco-vscode-bulk-edit-service-override';
|
|
72
73
|
import getServiceOverride$2 from '@codingame/monaco-vscode-quickaccess-service-override';
|
|
@@ -94,6 +95,7 @@ import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.autosave.contribu
|
|
|
94
95
|
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.editorPane.contribution';
|
|
95
96
|
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileCommands.save';
|
|
96
97
|
import 'vscode/vscode/vs/workbench/browser/actions/navigationActions';
|
|
98
|
+
import 'vscode/vscode/vs/workbench/browser/style';
|
|
97
99
|
import './tools/editorAssets.js';
|
|
98
100
|
export { EditorPane, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
99
101
|
export { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
|
|
@@ -209,6 +211,9 @@ let MonacoEditorParts = class MonacoEditorParts extends MonacoDelegateEditorGrou
|
|
|
209
211
|
registerPart(part) {
|
|
210
212
|
return this.delegate.registerPart(part);
|
|
211
213
|
}
|
|
214
|
+
get activePart() {
|
|
215
|
+
return this.delegate.activePart;
|
|
216
|
+
}
|
|
212
217
|
};
|
|
213
218
|
MonacoEditorParts = __decorate([
|
|
214
219
|
( __param(0, IInstantiationService))
|
|
@@ -585,7 +590,8 @@ function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains,
|
|
|
585
590
|
[( IWebviewWorkbenchService.toString())]: new SyncDescriptor(WebviewEditorService, [], true),
|
|
586
591
|
[( IProgressService.toString())]: new SyncDescriptor(ProgressService, [], true),
|
|
587
592
|
[( IAuxiliaryWindowService.toString())]: new SyncDescriptor(BrowserAuxiliaryWindowService, [], true),
|
|
588
|
-
[( IEditorPaneService.toString())]: new SyncDescriptor(EditorPaneService, [], true)
|
|
593
|
+
[( IEditorPaneService.toString())]: new SyncDescriptor(EditorPaneService, [], true),
|
|
594
|
+
[( ICustomEditorLabelService.toString())]: new SyncDescriptor(CustomEditorLabelService, [], true)
|
|
589
595
|
};
|
|
590
596
|
}
|
|
591
597
|
|
|
@@ -6,7 +6,7 @@ import { IActionRunner, IAction } from 'vscode/vscode/vs/base/common/actions';
|
|
|
6
6
|
import { ThemeIcon } from 'vscode/vscode/vs/base/common/themables';
|
|
7
7
|
import { ResolvedKeybinding } from 'vscode/vscode/vs/base/common/keybindings';
|
|
8
8
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
9
|
-
import { IHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/
|
|
9
|
+
import { IHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegate';
|
|
10
10
|
|
|
11
11
|
interface IToolBarOptions {
|
|
12
12
|
orientation?: ActionsOrientation;
|
|
@@ -16,7 +16,7 @@ import { AnchorAlignment } from 'vscode/vscode/vs/base/browser/ui/contextview/co
|
|
|
16
16
|
import { WorkbenchToolBar } from '../../../platform/actions/browser/toolbar.js';
|
|
17
17
|
import { IBoundarySashes } from 'vscode/vscode/vs/base/browser/ui/sash/sash';
|
|
18
18
|
import { IBaseActionViewItemOptions } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
19
|
-
import { IHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/
|
|
19
|
+
import { IHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegate';
|
|
20
20
|
|
|
21
21
|
interface ICompositeTitleLabel {
|
|
22
22
|
/**
|
|
@@ -47,13 +47,13 @@ declare abstract class CompositePart<T extends Composite> extends Part {
|
|
|
47
47
|
protected readonly onDidCompositeClose: Emitter<IComposite>;
|
|
48
48
|
protected toolBar: WorkbenchToolBar | undefined;
|
|
49
49
|
protected titleLabelElement: HTMLElement | undefined;
|
|
50
|
-
protected readonly
|
|
50
|
+
protected readonly toolbarHoverDelegate: IHoverDelegate;
|
|
51
51
|
private readonly mapCompositeToCompositeContainer;
|
|
52
52
|
private readonly mapActionsBindingToComposite;
|
|
53
53
|
private activeComposite;
|
|
54
54
|
private lastActiveCompositeId;
|
|
55
55
|
private readonly instantiatedCompositeItems;
|
|
56
|
-
|
|
56
|
+
protected titleLabel: ICompositeTitleLabel | undefined;
|
|
57
57
|
private progressBar;
|
|
58
58
|
private contentAreaSize;
|
|
59
59
|
private readonly actionsListener;
|
|
@@ -72,6 +72,8 @@ declare abstract class CompositePart<T extends Composite> extends Part {
|
|
|
72
72
|
protected hideActiveComposite(): Composite | undefined;
|
|
73
73
|
protected createTitleArea(parent: HTMLElement): HTMLElement;
|
|
74
74
|
protected createTitleLabel(parent: HTMLElement): ICompositeTitleLabel;
|
|
75
|
+
protected createHeaderArea(): HTMLElement;
|
|
76
|
+
protected createFooterArea(): HTMLElement;
|
|
75
77
|
updateStyles(): void;
|
|
76
78
|
protected actionViewItemProvider(action: IAction, options: IBaseActionViewItemOptions): IActionViewItem | undefined;
|
|
77
79
|
protected actionsContextProvider(): unknown;
|
|
@@ -4,6 +4,7 @@ import { IProgressIndicator } from 'vscode/vscode/vs/platform/progress/common/pr
|
|
|
4
4
|
import { PaneCompositeDescriptor, PaneComposite } from 'vscode/vscode/vs/workbench/browser/panecomposite';
|
|
5
5
|
import { IPaneComposite } from 'vscode/vscode/vs/workbench/common/panecomposite';
|
|
6
6
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
7
|
+
import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
8
|
import { IView } from 'vscode/vscode/vs/base/browser/ui/grid/grid';
|
|
8
9
|
import { Parts, IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
9
10
|
import { CompositePart, ICompositeTitleLabel } from './compositePart.js';
|
|
@@ -21,6 +22,11 @@ import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
|
21
22
|
import { SubmenuAction } from 'vscode/vscode/vs/base/common/actions';
|
|
22
23
|
import { Composite } from 'vscode/vscode/vs/workbench/browser/composite';
|
|
23
24
|
|
|
25
|
+
declare enum CompositeBarPosition {
|
|
26
|
+
TOP = 0,
|
|
27
|
+
TITLE = 1,
|
|
28
|
+
BOTTOM = 2
|
|
29
|
+
}
|
|
24
30
|
interface IPaneCompositePart extends IView {
|
|
25
31
|
readonly partId: Parts.PANEL_PART | Parts.AUXILIARYBAR_PART | Parts.SIDEBAR_PART;
|
|
26
32
|
readonly onDidPaneCompositeOpen: Event<IPaneComposite>;
|
|
@@ -76,8 +82,11 @@ declare abstract class AbstractPaneCompositePart extends CompositePart<PaneCompo
|
|
|
76
82
|
readonly onDidPaneCompositeClose: Event<IPaneComposite>;
|
|
77
83
|
private readonly location;
|
|
78
84
|
private titleContainer;
|
|
85
|
+
private headerFooterCompositeBarContainer;
|
|
86
|
+
protected headerFooterCompositeBarDispoables: DisposableStore;
|
|
79
87
|
private paneCompositeBarContainer;
|
|
80
88
|
private paneCompositeBar;
|
|
89
|
+
private compositeBarPosition;
|
|
81
90
|
private emptyPaneMessageElement;
|
|
82
91
|
private globalToolBar;
|
|
83
92
|
private readonly globalActions;
|
|
@@ -93,8 +102,12 @@ declare abstract class AbstractPaneCompositePart extends CompositePart<PaneCompo
|
|
|
93
102
|
private createEmptyPaneMessage;
|
|
94
103
|
protected createTitleArea(parent: HTMLElement): HTMLElement;
|
|
95
104
|
protected createTitleLabel(parent: HTMLElement): ICompositeTitleLabel;
|
|
96
|
-
protected
|
|
97
|
-
protected
|
|
105
|
+
protected updateCompositeBar(): void;
|
|
106
|
+
protected createHeaderArea(): HTMLElement;
|
|
107
|
+
protected createFooterArea(): HTMLElement;
|
|
108
|
+
protected createHeaderFooterCompositeBarArea(area: HTMLElement): HTMLElement;
|
|
109
|
+
private removeFooterHeaderArea;
|
|
110
|
+
protected createCompositeBar(): PaneCompositeBar;
|
|
98
111
|
protected onTitleAreaUpdate(compositeId: string): void;
|
|
99
112
|
openPaneComposite(id?: string, focus?: boolean): Promise<PaneComposite | undefined>;
|
|
100
113
|
private doOpenPaneComposite;
|
|
@@ -112,9 +125,12 @@ declare abstract class AbstractPaneCompositePart extends CompositePart<PaneCompo
|
|
|
112
125
|
private updateGlobalToolbarActions;
|
|
113
126
|
protected getToolbarWidth(): number;
|
|
114
127
|
private onTitleAreaContextMenu;
|
|
128
|
+
private onCompositeBarAreaContextMenu;
|
|
129
|
+
private onCompositeBarContextMenu;
|
|
115
130
|
protected getViewsSubmenuAction(): SubmenuAction | undefined;
|
|
116
131
|
protected abstract shouldShowCompositeBar(): boolean;
|
|
117
132
|
protected abstract getCompositeBarOptions(): IPaneCompositeBarOptions;
|
|
133
|
+
protected abstract getCompositeBarPosition(): CompositeBarPosition;
|
|
118
134
|
}
|
|
119
135
|
|
|
120
|
-
export { AbstractPaneCompositePart, type IPaneCompositePart };
|
|
136
|
+
export { AbstractPaneCompositePart, CompositeBarPosition, type IPaneCompositePart };
|
|
@@ -9,7 +9,7 @@ import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/
|
|
|
9
9
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
10
10
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
11
11
|
import { IMenuService } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
12
|
-
import { AbstractPaneCompositePart } from '../paneCompositePart.js';
|
|
12
|
+
import { AbstractPaneCompositePart, CompositeBarPosition } from '../paneCompositePart.js';
|
|
13
13
|
import { ICommandService } from 'vscode/vscode/vs/platform/commands/common/commands';
|
|
14
14
|
import { IPaneCompositeBarOptions } from '../paneCompositeBar.js';
|
|
15
15
|
|
|
@@ -28,6 +28,7 @@ declare class PanelPart extends AbstractPaneCompositePart {
|
|
|
28
28
|
private fillExtraContextMenuActions;
|
|
29
29
|
layout(width: number, height: number, top: number, left: number): void;
|
|
30
30
|
protected shouldShowCompositeBar(): boolean;
|
|
31
|
+
protected getCompositeBarPosition(): CompositeBarPosition;
|
|
31
32
|
toJSON(): object;
|
|
32
33
|
}
|
|
33
34
|
|
|
@@ -11,7 +11,7 @@ import { AnchorAlignment } from 'vscode/vscode/vs/base/browser/ui/contextview/co
|
|
|
11
11
|
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
12
12
|
import { LayoutPriority } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
13
13
|
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
|
|
14
|
-
import { AbstractPaneCompositePart } from '../paneCompositePart.js';
|
|
14
|
+
import { AbstractPaneCompositePart, CompositeBarPosition } from '../paneCompositePart.js';
|
|
15
15
|
import { ActivityBarCompositeBar } from '../activitybar/activitybarPart.js';
|
|
16
16
|
import { IPaneCompositeBarOptions } from '../paneCompositeBar.js';
|
|
17
17
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
@@ -31,13 +31,13 @@ declare class SidebarPart extends AbstractPaneCompositePart {
|
|
|
31
31
|
updateStyles(): void;
|
|
32
32
|
layout(width: number, height: number, top: number, left: number): void;
|
|
33
33
|
protected getTitleAreaDropDownAnchorAlignment(): AnchorAlignment;
|
|
34
|
-
protected
|
|
34
|
+
protected createCompositeBar(): ActivityBarCompositeBar;
|
|
35
35
|
protected getCompositeBarOptions(): IPaneCompositeBarOptions;
|
|
36
36
|
protected shouldShowCompositeBar(): boolean;
|
|
37
37
|
private shouldShowActivityBar;
|
|
38
|
+
protected getCompositeBarPosition(): CompositeBarPosition;
|
|
38
39
|
private rememberActivityBarVisiblePosition;
|
|
39
40
|
private getRememberedActivityBarVisiblePosition;
|
|
40
|
-
private updateActivityBarVisiblity;
|
|
41
41
|
getPinnedPaneCompositeIds(): string[];
|
|
42
42
|
getVisiblePaneCompositeIds(): string[];
|
|
43
43
|
focusActivityBar(): Promise<void>;
|