@codingame/monaco-vscode-views-service-override 2.2.0-next.3 → 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 +11 -11
- package/tools/views.d.ts +5 -3
- package/tools/views.js +7 -5
- package/views.js +1 -1
package/index.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export { IView, SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/spl
|
|
|
10
10
|
export { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
11
11
|
export { IResolvedTextEditorModel } from 'vscode/vscode/vs/editor/common/services/resolverService';
|
|
12
12
|
export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
|
|
13
|
-
export { CustomViewOption, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility } from './tools/views.js';
|
|
14
|
-
export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
13
|
+
export { CustomViewOption, SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
14
|
+
export { IViewContainerDescriptor, IViewDescriptor, ViewContainer, ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
15
15
|
export { EditorInput, IEditorCloseHandler } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
|
|
16
16
|
export { ConfirmResult } from 'vscode/vscode/vs/platform/dialogs/common/dialogs';
|
|
17
17
|
export { EditorInputFactoryObject, RegisteredEditorInfo, RegisteredEditorOptions, RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/com
|
|
|
5
5
|
export { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
6
6
|
export { EditorInputCapabilities } from 'vscode/vscode/vs/workbench/common/editor';
|
|
7
7
|
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
8
|
-
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility } from './tools/views.js';
|
|
8
|
+
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
9
9
|
export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
|
|
10
10
|
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
11
11
|
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-views-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,16 +18,16 @@
|
|
|
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-bulk-edit-service-override": "2.2.0-next.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "2.2.0-next.
|
|
25
|
-
"@codingame/monaco-vscode-keybindings-service-override": "2.2.0-next.
|
|
26
|
-
"@codingame/monaco-vscode-files-service-override": "2.2.0-next.
|
|
27
|
-
"@codingame/monaco-vscode-extensions-service-override": "2.2.0-next.
|
|
28
|
-
"@codingame/monaco-vscode-environment-service-override": "2.2.0-next.
|
|
29
|
-
"@codingame/monaco-vscode-layout-service-override": "2.2.0-next.
|
|
30
|
-
"@codingame/monaco-vscode-host-service-override": "2.2.0-next.
|
|
31
|
-
"@codingame/monaco-vscode-base-service-override": "2.2.0-next.
|
|
23
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "2.2.0-next.4",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "2.2.0-next.4",
|
|
25
|
+
"@codingame/monaco-vscode-keybindings-service-override": "2.2.0-next.4",
|
|
26
|
+
"@codingame/monaco-vscode-files-service-override": "2.2.0-next.4",
|
|
27
|
+
"@codingame/monaco-vscode-extensions-service-override": "2.2.0-next.4",
|
|
28
|
+
"@codingame/monaco-vscode-environment-service-override": "2.2.0-next.4",
|
|
29
|
+
"@codingame/monaco-vscode-layout-service-override": "2.2.0-next.4",
|
|
30
|
+
"@codingame/monaco-vscode-host-service-override": "2.2.0-next.4",
|
|
31
|
+
"@codingame/monaco-vscode-base-service-override": "2.2.0-next.4"
|
|
32
32
|
}
|
|
33
33
|
}
|
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/views.js
CHANGED
|
@@ -93,7 +93,7 @@ import getServiceOverride$3 from '@codingame/monaco-vscode-keybindings-service-o
|
|
|
93
93
|
import { changeUrlDomain } from './tools/url.js';
|
|
94
94
|
import { onRenderWorkbench } from 'vscode/lifecycle';
|
|
95
95
|
import { registerAssets } from 'vscode/assets';
|
|
96
|
-
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility } from './tools/views.js';
|
|
96
|
+
export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility, viewContainerRegistry, viewRegistry } from './tools/views.js';
|
|
97
97
|
export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
|
|
98
98
|
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
99
99
|
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|