@codingame/monaco-vscode-workbench-service-override 2.2.0-next.2 → 2.2.0-next.4
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 +2 -2
- package/index.js +1 -1
- package/package.json +14 -14
- package/tools/views.d.ts +5 -3
- package/tools/views.js +7 -5
- package/workbench.js +1 -1
package/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { default } from './workbench.js';
|
|
2
2
|
export { IView, SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
|
|
3
3
|
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
4
|
-
export { CustomViewOption, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility } from './tools/views.js';
|
|
5
|
-
export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
4
|
+
export { CustomViewOption, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
5
|
+
export { IViewContainerDescriptor, IViewDescriptor, ViewContainer, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
6
6
|
export { EditorInput, IEditorCloseHandler } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
7
7
|
export { ConfirmResult } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
8
8
|
export { EditorInputFactoryObject, RegisteredEditorInfo, RegisteredEditorOptions, RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { default } from './workbench.js';
|
|
|
2
2
|
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
3
3
|
export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
4
4
|
export { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
5
|
-
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility } from './tools/views.js';
|
|
5
|
+
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
6
6
|
export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
|
|
7
7
|
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
8
8
|
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-workbench-service-override",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.4",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@2.2.0-next.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.2.0-next.4",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2",
|
|
23
|
-
"@codingame/monaco-vscode-keybindings-service-override": "2.2.0-next.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "2.2.0-next.
|
|
25
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "2.2.0-next.
|
|
26
|
-
"@codingame/monaco-vscode-view-title-bar-service-override": "2.2.0-next.
|
|
27
|
-
"@codingame/monaco-vscode-view-status-bar-service-override": "2.2.0-next.
|
|
28
|
-
"@codingame/monaco-vscode-view-banner-service-override": "2.2.0-next.
|
|
29
|
-
"@codingame/monaco-vscode-files-service-override": "2.2.0-next.
|
|
30
|
-
"@codingame/monaco-vscode-extensions-service-override": "2.2.0-next.
|
|
31
|
-
"@codingame/monaco-vscode-environment-service-override": "2.2.0-next.
|
|
32
|
-
"@codingame/monaco-vscode-layout-service-override": "2.2.0-next.
|
|
33
|
-
"@codingame/monaco-vscode-host-service-override": "2.2.0-next.
|
|
34
|
-
"@codingame/monaco-vscode-base-service-override": "2.2.0-next.
|
|
23
|
+
"@codingame/monaco-vscode-keybindings-service-override": "2.2.0-next.4",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "2.2.0-next.4",
|
|
25
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "2.2.0-next.4",
|
|
26
|
+
"@codingame/monaco-vscode-view-title-bar-service-override": "2.2.0-next.4",
|
|
27
|
+
"@codingame/monaco-vscode-view-status-bar-service-override": "2.2.0-next.4",
|
|
28
|
+
"@codingame/monaco-vscode-view-banner-service-override": "2.2.0-next.4",
|
|
29
|
+
"@codingame/monaco-vscode-files-service-override": "2.2.0-next.4",
|
|
30
|
+
"@codingame/monaco-vscode-extensions-service-override": "2.2.0-next.4",
|
|
31
|
+
"@codingame/monaco-vscode-environment-service-override": "2.2.0-next.4",
|
|
32
|
+
"@codingame/monaco-vscode-layout-service-override": "2.2.0-next.4",
|
|
33
|
+
"@codingame/monaco-vscode-host-service-override": "2.2.0-next.4",
|
|
34
|
+
"@codingame/monaco-vscode-base-service-override": "2.2.0-next.4"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/tools/views.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ViewContainerLocation, ViewContainer } from 'vscode/vscode/vs/workbench/common/views';
|
|
2
|
-
export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
1
|
+
import { ViewContainerLocation, ViewContainer, IViewContainersRegistry, IViewsRegistry } from 'vscode/vscode/vs/workbench/common/views';
|
|
2
|
+
export { IViewContainerDescriptor, IViewDescriptor, ViewContainer, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
3
3
|
import { BrandedService, ServicesAccessor } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
4
4
|
import { IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
5
5
|
import { Dimension } from 'vscode/vscode/vs/base/browser/dom';
|
|
@@ -91,6 +91,8 @@ interface CustomViewOption {
|
|
|
91
91
|
hideByDefault?: boolean;
|
|
92
92
|
collapsed?: boolean;
|
|
93
93
|
}
|
|
94
|
+
declare const viewContainerRegistry: IViewContainersRegistry;
|
|
95
|
+
declare const viewRegistry: IViewsRegistry;
|
|
94
96
|
declare function registerCustomView(options: CustomViewOption): IDisposable;
|
|
95
97
|
declare function isPartVisibile(part: Parts): boolean;
|
|
96
98
|
declare function setPartVisibility(part: Exclude<Parts, Parts.STATUSBAR_PART | Parts.TITLEBAR_PART>, visible: boolean): void;
|
|
@@ -99,4 +101,4 @@ declare function getPanelPosition(): Position;
|
|
|
99
101
|
declare const onDidChangeSideBarPosition: Event<string>;
|
|
100
102
|
declare function getSideBarPosition(): Position;
|
|
101
103
|
|
|
102
|
-
export { type CustomViewOption, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility };
|
|
104
|
+
export { type CustomViewOption, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
package/tools/views.js
CHANGED
|
@@ -146,9 +146,11 @@ function registerEditor(globPattern, editorInfo, editorOptions, factory) {
|
|
|
146
146
|
function registerEditorSerializer(editorTypeId, ctor) {
|
|
147
147
|
return ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(editorTypeId, ctor);
|
|
148
148
|
}
|
|
149
|
+
const viewContainerRegistry = ( Registry.as(Extensions.ViewContainersRegistry));
|
|
150
|
+
const viewRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
149
151
|
function registerCustomView(options) {
|
|
150
152
|
const iconUrl = options.icon != null ? ( URI.parse(options.icon)) : undefined;
|
|
151
|
-
const viewContainer = options.viewContainer ??
|
|
153
|
+
const viewContainer = options.viewContainer ?? viewContainerRegistry.registerViewContainer({
|
|
152
154
|
id: options.id,
|
|
153
155
|
title: { value: options.name, original: options.name },
|
|
154
156
|
order: options.order,
|
|
@@ -197,13 +199,13 @@ function registerCustomView(options) {
|
|
|
197
199
|
order: options.order,
|
|
198
200
|
containerIcon: iconUrl
|
|
199
201
|
}];
|
|
200
|
-
|
|
202
|
+
viewRegistry.registerViews(views, viewContainer);
|
|
201
203
|
const disposableCollection = new DisposableStore();
|
|
202
204
|
disposableCollection.add({
|
|
203
205
|
dispose() {
|
|
204
|
-
|
|
206
|
+
viewRegistry.deregisterViews(views, viewContainer);
|
|
205
207
|
if (options.viewContainer == null) {
|
|
206
|
-
|
|
208
|
+
viewContainerRegistry.deregisterViewContainer(viewContainer);
|
|
207
209
|
}
|
|
208
210
|
}
|
|
209
211
|
});
|
|
@@ -250,4 +252,4 @@ function getSideBarPosition() {
|
|
|
250
252
|
return StandaloneServices.get(IWorkbenchLayoutService).getSideBarPosition();
|
|
251
253
|
}
|
|
252
254
|
|
|
253
|
-
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility };
|
|
255
|
+
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry };
|
package/workbench.js
CHANGED
|
@@ -78,7 +78,7 @@ import 'vscode/vscode/vs/workbench/contrib/limitIndicator/browser/limitIndicator
|
|
|
78
78
|
import 'vscode/vscode/vs/workbench/contrib/sash/browser/sash.contribution';
|
|
79
79
|
import 'vscode/vscode/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker';
|
|
80
80
|
import { registerAssets } from 'vscode/assets';
|
|
81
|
-
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility } from './tools/views.js';
|
|
81
|
+
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
82
82
|
export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
|
|
83
83
|
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
84
84
|
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|