@codingame/monaco-vscode-views-service-override 1.85.0-next.2 → 1.85.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/index-no-csp.html +4 -0
- package/assets/index.html +5 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +9 -9
- package/views.d.ts +9 -4
- package/views.js +31 -9
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +692 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +240 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +77 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +42 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +71 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +346 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +96 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +145 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +103 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +399 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +196 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +41 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +128 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +6 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +611 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +158 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +262 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +173 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +79 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +1 -1
- package/override/vs/workbench/contrib/notebook/common/notebookEditorInput.js +0 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +0 -390
- package/vscode/src/vs/workbench/contrib/languageDetection/browser/languageDetection.contribution.js +0 -157
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +0 -5
- package/vscode/src/vs/workbench/contrib/remote/browser/media/tunnelView.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +0 -217
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +0 -91
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +0 -1837
package/assets/index-no-csp.html
CHANGED
|
@@ -123,7 +123,11 @@
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
code {
|
|
126
|
+
font-family: var(--monaco-monospace-font);
|
|
126
127
|
color: var(--vscode-textPreformat-foreground);
|
|
128
|
+
background-color: var(--vscode-textPreformat-background);
|
|
129
|
+
padding: 1px 3px;
|
|
130
|
+
border-radius: 4px;
|
|
127
131
|
}
|
|
128
132
|
|
|
129
133
|
blockquote {
|
package/assets/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
7
|
<meta http-equiv="Content-Security-Policy"
|
|
8
|
-
content="default-src 'none'; script-src 'sha256-
|
|
8
|
+
content="default-src 'none'; script-src 'sha256-Mwwy+ji/EFfa/LgTjpVzHimU6p9WqsPQ+HDXefe3/wQ=' 'self'; frame-src 'self'; style-src 'unsafe-inline';">
|
|
9
9
|
|
|
10
10
|
<!-- Disable pinch zooming -->
|
|
11
11
|
<meta name="viewport"
|
|
@@ -124,7 +124,11 @@
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
code {
|
|
127
|
+
font-family: var(--monaco-monospace-font);
|
|
127
128
|
color: var(--vscode-textPreformat-foreground);
|
|
129
|
+
background-color: var(--vscode-textPreformat-background);
|
|
130
|
+
padding: 1px 3px;
|
|
131
|
+
border-radius: 4px;
|
|
128
132
|
}
|
|
129
133
|
|
|
130
134
|
blockquote {
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CustomViewOption, InitializationStateTransformer, SimpleEditorInput, SimpleEditorPane, attachPart, default, isEditorPartVisible, isPartVisibile, onPartVisibilityChange, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart, setPartVisibility } from './views.js';
|
|
1
|
+
export { CustomViewOption, InitializationStateTransformer, SimpleEditorInput, SimpleEditorPane, attachPart, default, getPanelPosition, getSideBarPosition, isEditorPartVisible, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, onPartVisibilityChange, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart, setPartVisibility } from './views.js';
|
|
2
2
|
export { SidebarPart } from './vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js';
|
|
3
3
|
export { ActivityService } from 'vscode/vscode/vs/workbench/services/activity/browser/activityService';
|
|
4
4
|
export { ActivitybarPart } from './vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js';
|
|
@@ -17,5 +17,5 @@ export { EditorPane } from './vscode/src/vs/workbench/browser/parts/editor/edito
|
|
|
17
17
|
export { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
18
18
|
export { ILayoutInitializationState } from './vscode/src/vs/workbench/browser/layout.js';
|
|
19
19
|
export { OpenEditor } from './tools/editor.js';
|
|
20
|
-
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
20
|
+
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
21
21
|
export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { SimpleEditorInput, SimpleEditorPane, attachPart, default, isEditorPartVisible, isPartVisibile, onPartVisibilityChange, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart, setPartVisibility } from './views.js';
|
|
1
|
+
export { SimpleEditorInput, SimpleEditorPane, attachPart, default, getPanelPosition, getSideBarPosition, isEditorPartVisible, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, onPartVisibilityChange, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart, setPartVisibility } from './views.js';
|
|
2
2
|
export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
3
3
|
export { ActivitybarPart } from './vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js';
|
|
4
4
|
export { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
|
|
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
|
-
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
7
|
+
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
8
8
|
export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
|
|
9
9
|
export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
|
|
10
10
|
export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-views-service-override",
|
|
3
|
-
"version": "1.85.
|
|
3
|
+
"version": "1.85.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@1.85.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@1.85.1",
|
|
22
22
|
"monaco-editor": "0.45.0",
|
|
23
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "1.85.
|
|
24
|
-
"@codingame/monaco-vscode-layout-service-override": "1.85.
|
|
25
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "1.85.
|
|
26
|
-
"@codingame/monaco-vscode-keybindings-service-override": "1.85.
|
|
27
|
-
"@codingame/monaco-vscode-environment-service-override": "1.85.
|
|
28
|
-
"@codingame/monaco-vscode-extensions-service-override": "1.85.
|
|
29
|
-
"@codingame/monaco-vscode-files-service-override": "1.85.
|
|
23
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "1.85.1",
|
|
24
|
+
"@codingame/monaco-vscode-layout-service-override": "1.85.1",
|
|
25
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "1.85.1",
|
|
26
|
+
"@codingame/monaco-vscode-keybindings-service-override": "1.85.1",
|
|
27
|
+
"@codingame/monaco-vscode-environment-service-override": "1.85.1",
|
|
28
|
+
"@codingame/monaco-vscode-extensions-service-override": "1.85.1",
|
|
29
|
+
"@codingame/monaco-vscode-files-service-override": "1.85.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/views.d.ts
CHANGED
|
@@ -2,19 +2,20 @@ import { IEditorOverrideServices } from 'vscode/vscode/vs/editor/standalone/brow
|
|
|
2
2
|
import { ViewContainerLocation, ViewContainer } from 'vscode/vscode/vs/workbench/common/views';
|
|
3
3
|
export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
|
|
4
4
|
import { BrandedService, ServicesAccessor } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
5
|
-
import { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
6
|
-
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
5
|
+
import { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
6
|
+
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
7
7
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
8
8
|
import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
|
|
9
|
+
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
9
10
|
import { Part } from 'vscode/vscode/vs/workbench/browser/part';
|
|
10
11
|
import { IDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
11
12
|
export { IReference } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
12
13
|
import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
|
|
13
14
|
import { Dimension } from 'vscode/vscode/vs/base/browser/dom';
|
|
14
15
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
15
|
-
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
16
16
|
import { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
17
17
|
export { IEditorOptions } from 'vscode/vscode/vs/platform/editor/common/editor';
|
|
18
|
+
import { CancellationToken } from 'vscode/vscode/vs/base/common/cancellation';
|
|
18
19
|
import { Codicon } from './vscode/src/vs/base/common/codicons.js';
|
|
19
20
|
import { RegisteredEditorInfo, RegisteredEditorOptions, EditorInputFactoryObject } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
20
21
|
export { EditorInputFactoryObject, RegisteredEditorInfo, RegisteredEditorOptions, RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
@@ -31,6 +32,10 @@ declare function attachPart(part: Parts, container: HTMLElement): IDisposable;
|
|
|
31
32
|
declare function onPartVisibilityChange(part: Parts, listener: (visible: boolean) => void): IDisposable;
|
|
32
33
|
declare function isPartVisibile(part: Parts): boolean;
|
|
33
34
|
declare function setPartVisibility(part: Exclude<Parts, Parts.STATUSBAR_PART | Parts.TITLEBAR_PART>, visible: boolean): void;
|
|
35
|
+
declare const onDidChangePanelPosition: Event<string>;
|
|
36
|
+
declare function getPanelPosition(): Position;
|
|
37
|
+
declare const onDidChangeSideBarPosition: Event<string>;
|
|
38
|
+
declare function getSideBarPosition(): Position;
|
|
34
39
|
declare function renderActivitybarPar(container: HTMLElement): IDisposable;
|
|
35
40
|
declare function renderSidebarPart(container: HTMLElement): IDisposable;
|
|
36
41
|
declare function renderPanelPart(container: HTMLElement): IDisposable;
|
|
@@ -116,4 +121,4 @@ declare function getServiceOverride(openEditorFallback?: OpenEditor, _webviewIfr
|
|
|
116
121
|
declare function getServiceOverride(openEditorFallback?: OpenEditor, _webviewIframeAlternateDomains?: string, restoreEditors?: boolean): IEditorOverrideServices;
|
|
117
122
|
declare function getServiceOverride(openEditorFallback?: OpenEditor, _webviewIframeAlternateDomains?: string, initializationState?: InitializationStateTransformer): IEditorOverrideServices;
|
|
118
123
|
|
|
119
|
-
export { type CustomViewOption, EditorPane, ILayoutInitializationState, type InitializationStateTransformer, OpenEditor, SimpleEditorInput, SimpleEditorPane, attachPart, getServiceOverride as default, isEditorPartVisible, isPartVisibile, onPartVisibilityChange, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart, setPartVisibility };
|
|
124
|
+
export { type CustomViewOption, EditorPane, ILayoutInitializationState, type InitializationStateTransformer, OpenEditor, SimpleEditorInput, SimpleEditorPane, attachPart, getServiceOverride as default, getPanelPosition, getSideBarPosition, isEditorPartVisible, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, onPartVisibilityChange, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart, setPartVisibility };
|
package/views.js
CHANGED
|
@@ -37,7 +37,8 @@ import './vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.cont
|
|
|
37
37
|
import './vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js';
|
|
38
38
|
import './vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js';
|
|
39
39
|
import './vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js';
|
|
40
|
-
import './vscode/src/vs/workbench/contrib/
|
|
40
|
+
import './vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js';
|
|
41
|
+
import './vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js';
|
|
41
42
|
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution';
|
|
42
43
|
import './vscode/src/vs/workbench/contrib/files/browser/files.contribution2.js';
|
|
43
44
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
@@ -73,7 +74,7 @@ import { IWebviewWorkbenchService, WebviewEditorService } from 'vscode/vscode/vs
|
|
|
73
74
|
import { IWebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
74
75
|
import { IWebviewViewService, WebviewViewService } from 'vscode/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService';
|
|
75
76
|
import { positionToString, IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
76
|
-
export { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
77
|
+
export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
77
78
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
78
79
|
import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
79
80
|
export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
|
|
@@ -129,7 +130,7 @@ function layoutPart(part) {
|
|
|
129
130
|
if (parent == null) {
|
|
130
131
|
return;
|
|
131
132
|
}
|
|
132
|
-
part.layout(Math.max(part.minimumWidth, Math.min(part.maximumWidth, parent.offsetWidth)), Math.max(part.minimumHeight, Math.min(part.maximumHeight, parent.offsetHeight)),
|
|
133
|
+
part.layout(Math.max(part.minimumWidth, Math.min(part.maximumWidth, parent.offsetWidth)), Math.max(part.minimumHeight, Math.min(part.maximumHeight, parent.offsetHeight)), parent.offsetTop, parent.offsetLeft);
|
|
133
134
|
}
|
|
134
135
|
function renderPart(partContainer, part) {
|
|
135
136
|
partContainer.oncontextmenu = () => false;
|
|
@@ -176,6 +177,18 @@ function isPartVisibile(part) {
|
|
|
176
177
|
function setPartVisibility(part, visible) {
|
|
177
178
|
StandaloneServices.get(IWorkbenchLayoutService).setPartHidden(!visible, part, window);
|
|
178
179
|
}
|
|
180
|
+
const onDidChangePanelPosition = (listener) => {
|
|
181
|
+
return StandaloneServices.get(IWorkbenchLayoutService).onDidChangePanelPosition(listener);
|
|
182
|
+
};
|
|
183
|
+
function getPanelPosition() {
|
|
184
|
+
return StandaloneServices.get(IWorkbenchLayoutService).getPanelPosition();
|
|
185
|
+
}
|
|
186
|
+
const onDidChangeSideBarPosition = (listener) => {
|
|
187
|
+
return StandaloneServices.get(IWorkbenchLayoutService).onDidChangeSideBarPosition(listener);
|
|
188
|
+
};
|
|
189
|
+
function getSideBarPosition() {
|
|
190
|
+
return StandaloneServices.get(IWorkbenchLayoutService).getSideBarPosition();
|
|
191
|
+
}
|
|
179
192
|
function renderActivitybarPar(container) {
|
|
180
193
|
return attachPart("workbench.parts.activitybar" , container);
|
|
181
194
|
}
|
|
@@ -592,14 +605,14 @@ onRenderWorkbench(async (accessor) => {
|
|
|
592
605
|
const invisibleContainer = document.createElement('div');
|
|
593
606
|
invisibleContainer.style.display = 'none';
|
|
594
607
|
document.body.append(invisibleContainer);
|
|
595
|
-
for (const { id, role, classes, options } of [
|
|
608
|
+
for (const { id, role, classes, options, getPosition, onDidChangePosition } of [
|
|
596
609
|
{ id: "workbench.parts.titlebar" , role: 'none', classes: ['titlebar'] },
|
|
597
610
|
{ id: "workbench.parts.banner" , role: 'banner', classes: ['banner'] },
|
|
598
|
-
{ id: "workbench.parts.activitybar" , role: 'none', classes: ['activitybar',
|
|
599
|
-
{ id: "workbench.parts.sidebar" , role: 'none', classes: ['sidebar',
|
|
611
|
+
{ id: "workbench.parts.activitybar" , role: 'none', classes: ['activitybar'], getPosition: () => layoutService.getSideBarPosition(), onDidChangePosition: layoutService.onDidChangeSideBarPosition },
|
|
612
|
+
{ id: "workbench.parts.sidebar" , role: 'none', classes: ['sidebar'], getPosition: () => layoutService.getSideBarPosition(), onDidChangePosition: layoutService.onDidChangeSideBarPosition },
|
|
600
613
|
{ id: "workbench.parts.editor" , role: 'main', classes: ['editor'], options: { restorePreviousState: initialLayoutState.editor.restoreEditors } },
|
|
601
|
-
{ id: "workbench.parts.panel" , role: 'none', classes: ['panel', 'basepanel',
|
|
602
|
-
{ id: "workbench.parts.auxiliarybar" , role: 'none', classes: ['auxiliarybar', 'basepanel',
|
|
614
|
+
{ id: "workbench.parts.panel" , role: 'none', classes: ['panel', 'basepanel'], getPosition: () => layoutService.getPanelPosition(), onDidChangePosition: layoutService.onDidChangePanelPosition },
|
|
615
|
+
{ id: "workbench.parts.auxiliarybar" , role: 'none', classes: ['auxiliarybar', 'basepanel'], getPosition: () => layoutService.getSideBarPosition() === 0 ? 1 : 0 , onDidChangePosition: layoutService.onDidChangeSideBarPosition },
|
|
603
616
|
{ id: "workbench.parts.statusbar" , role: 'status', classes: ['statusbar'] }
|
|
604
617
|
]) {
|
|
605
618
|
const part = layoutService.getPart(id);
|
|
@@ -609,6 +622,15 @@ onRenderWorkbench(async (accessor) => {
|
|
|
609
622
|
renderPart(partContainer, part);
|
|
610
623
|
part.layout(9999, 9999, 0, 0);
|
|
611
624
|
invisibleContainer.append(partContainer);
|
|
625
|
+
if (getPosition != null) {
|
|
626
|
+
let position = getPosition();
|
|
627
|
+
part.element.classList.add(positionToString(position));
|
|
628
|
+
onDidChangePosition?.(() => {
|
|
629
|
+
part.element.classList.remove(positionToString(position));
|
|
630
|
+
position = getPosition();
|
|
631
|
+
part.element.classList.add(positionToString(position));
|
|
632
|
+
});
|
|
633
|
+
}
|
|
612
634
|
}
|
|
613
635
|
}
|
|
614
636
|
const layoutReadyPromises = [];
|
|
@@ -778,4 +800,4 @@ function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains,
|
|
|
778
800
|
};
|
|
779
801
|
}
|
|
780
802
|
|
|
781
|
-
export { ActivityService, HoverService, PanelPart, SidebarPart, SimpleEditorInput, SimpleEditorPane, attachPart, getServiceOverride as default, isEditorPartVisible, isPartVisibile, onPartVisibilityChange, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart, setPartVisibility };
|
|
803
|
+
export { ActivityService, HoverService, PanelPart, SidebarPart, SimpleEditorInput, SimpleEditorPane, attachPart, getServiceOverride as default, getPanelPosition, getSideBarPosition, isEditorPartVisible, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, onPartVisibilityChange, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart, setPartVisibility };
|
|
@@ -15,7 +15,7 @@ import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
|
15
15
|
import { Extensions as Extensions$1, ResolvableTreeItem } from 'vscode/vscode/vs/workbench/common/views';
|
|
16
16
|
import { VIEWLET_ID as VIEWLET_ID$3 } from 'vscode/vscode/vs/workbench/contrib/debug/common/debug';
|
|
17
17
|
import { VIEWLET_ID as VIEWLET_ID$1 } from 'vscode/vscode/vs/workbench/contrib/files/common/files';
|
|
18
|
-
import { VIEWLET_ID } from '
|
|
18
|
+
import { VIEWLET_ID } from 'vscode/vscode/vs/workbench/contrib/remote/browser/remoteExplorer';
|
|
19
19
|
import { VIEWLET_ID as VIEWLET_ID$2 } from 'vscode/vscode/vs/workbench/contrib/scm/common/scm';
|
|
20
20
|
import { WebviewViewPane } from '../../contrib/webviewView/browser/webviewViewPane.js';
|
|
21
21
|
import { isProposedApiEnabled } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
@@ -6,7 +6,7 @@ import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
|
6
6
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
7
7
|
import { CustomEditorInput } from 'vscode/vscode/vs/workbench/contrib/customEditor/browser/customEditorInput';
|
|
8
8
|
import { ICustomEditorService } from 'vscode/vscode/vs/workbench/contrib/customEditor/common/customEditor';
|
|
9
|
-
import { NotebookEditorInput } from '
|
|
9
|
+
import { NotebookEditorInput } from 'vscode/vscode/vs/workbench/contrib/notebook/common/notebookEditorInput';
|
|
10
10
|
import { IWebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
|
|
11
11
|
import { WebviewEditorInputSerializer, reviveWebviewExtensionDescription, restoreWebviewOptions, restoreWebviewContentOptions } from '../../webviewPanel/browser/webviewEditorInputSerializer.js';
|
|
12
12
|
import { IWebviewWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService';
|