@codingame/monaco-vscode-api 1.81.0-next.0 → 1.81.1-next.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/README.md +3 -4
- package/dist/default-extensions/npm/npmBrowserMain.js.map +1 -1
- package/dist/default-extensions/typescript-language-features/tsserver.web.js.map +1 -1
- package/dist/default-extensions/typescript-language-features.js +77 -77
- package/dist/missing-services.js +13 -0
- package/dist/service-override/accessibility.js +1 -1
- package/dist/service-override/audioCue.js +1 -1
- package/dist/service-override/bulkEdit.js +1 -1
- package/dist/service-override/configuration.js +6 -6
- package/dist/service-override/debug.js +2 -2
- package/dist/service-override/editor.js +2 -2
- package/dist/service-override/environment.js +2 -2
- package/dist/service-override/extensions.js +2 -2
- package/dist/service-override/files.js +1 -1
- package/dist/service-override/keybindings.js +2 -2
- package/dist/service-override/languageDetectionWorker.js +1 -1
- package/dist/service-override/languages.js +1 -1
- package/dist/service-override/layout.d.ts +1 -1
- package/dist/service-override/layout.js +2 -2
- package/dist/service-override/output.js +1 -1
- package/dist/service-override/preferences.js +3 -3
- package/dist/service-override/quickaccess.js +1 -1
- package/dist/service-override/search.js +4 -4
- package/dist/service-override/snippets.js +1 -1
- package/dist/service-override/storage.js +8 -2
- package/dist/service-override/terminal.js +11 -11
- package/dist/service-override/textmate.js +1 -1
- package/dist/service-override/theme.js +1 -1
- package/dist/service-override/views.d.ts +2 -1
- package/dist/service-override/views.js +81 -101
- package/dist/services.d.ts +3 -1
- package/dist/services.js +15 -1
- package/dist/vscode/vs/workbench/api/worker/extensionHostWorker.js +17 -2
- package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +86 -0
- package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +4 -0
- package/dist/vscode/vs/workbench/browser/parts/paneCompositePart.js +78 -0
- package/dist/vscode/vs/workbench/common/contextkeys.js +3 -1
- package/dist/vscode/vs/workbench/common/views.js +2 -1
- package/monaco-editor-treemending.patch +546 -569
- package/package.json +3 -7
- /package/dist/default-extensions/typescript-language-features/{lib.d.ts → lib.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.decorators.d.ts → lib.decorators.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.decorators.legacy.d.ts → lib.decorators.legacy.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.dom.d.ts → lib.dom.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.dom.iterable.d.ts → lib.dom.iterable.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2015.collection.d.ts → lib.es2015.collection.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2015.core.d.ts → lib.es2015.core.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2015.d.ts → lib.es2015.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2015.generator.d.ts → lib.es2015.generator.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2015.iterable.d.ts → lib.es2015.iterable.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2015.promise.d.ts → lib.es2015.promise.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2015.proxy.d.ts → lib.es2015.proxy.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2015.reflect.d.ts → lib.es2015.reflect.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2015.symbol.d.ts → lib.es2015.symbol.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2015.symbol.wellknown.d.ts → lib.es2015.symbol.wellknown.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2016.array.include.d.ts → lib.es2016.array.include.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2016.d.ts → lib.es2016.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2016.full.d.ts → lib.es2016.full.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2017.d.ts → lib.es2017.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2017.full.d.ts → lib.es2017.full.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2017.intl.d.ts → lib.es2017.intl.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2017.object.d.ts → lib.es2017.object.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2017.sharedmemory.d.ts → lib.es2017.sharedmemory.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2017.string.d.ts → lib.es2017.string.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2017.typedarrays.d.ts → lib.es2017.typedarrays.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2018.asyncgenerator.d.ts → lib.es2018.asyncgenerator.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2018.asynciterable.d.ts → lib.es2018.asynciterable.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2018.d.ts → lib.es2018.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2018.full.d.ts → lib.es2018.full.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2018.intl.d.ts → lib.es2018.intl.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2018.promise.d.ts → lib.es2018.promise.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2018.regexp.d.ts → lib.es2018.regexp.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2019.array.d.ts → lib.es2019.array.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2019.d.ts → lib.es2019.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2019.full.d.ts → lib.es2019.full.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2019.intl.d.ts → lib.es2019.intl.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2019.object.d.ts → lib.es2019.object.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2019.string.d.ts → lib.es2019.string.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2019.symbol.d.ts → lib.es2019.symbol.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2020.bigint.d.ts → lib.es2020.bigint.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2020.d.ts → lib.es2020.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2020.date.d.ts → lib.es2020.date.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2020.full.d.ts → lib.es2020.full.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2020.intl.d.ts → lib.es2020.intl.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2020.number.d.ts → lib.es2020.number.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2020.promise.d.ts → lib.es2020.promise.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2020.sharedmemory.d.ts → lib.es2020.sharedmemory.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2020.string.d.ts → lib.es2020.string.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2020.symbol.wellknown.d.ts → lib.es2020.symbol.wellknown.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2021.d.ts → lib.es2021.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2021.full.d.ts → lib.es2021.full.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2021.intl.d.ts → lib.es2021.intl.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2021.promise.d.ts → lib.es2021.promise.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2021.string.d.ts → lib.es2021.string.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2021.weakref.d.ts → lib.es2021.weakref.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2022.array.d.ts → lib.es2022.array.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2022.d.ts → lib.es2022.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2022.error.d.ts → lib.es2022.error.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2022.full.d.ts → lib.es2022.full.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2022.intl.d.ts → lib.es2022.intl.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2022.object.d.ts → lib.es2022.object.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2022.regexp.d.ts → lib.es2022.regexp.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2022.sharedmemory.d.ts → lib.es2022.sharedmemory.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2022.string.d.ts → lib.es2022.string.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2023.array.d.ts → lib.es2023.array.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2023.d.ts → lib.es2023.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es2023.full.d.ts → lib.es2023.full.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es5.d.ts → lib.es5.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.es6.d.ts → lib.es6.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.esnext.d.ts → lib.esnext.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.esnext.full.d.ts → lib.esnext.full.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.esnext.intl.d.ts → lib.esnext.intl.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.scripthost.d.ts → lib.scripthost.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.webworker.d.ts → lib.webworker.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.webworker.importscripts.d.ts → lib.webworker.importscripts.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{lib.webworker.iterable.d.ts → lib.webworker.iterable.d.ts.txt} +0 -0
- /package/dist/default-extensions/typescript-language-features/{typescript.d.ts → typescript.d.ts.txt} +0 -0
|
@@ -35,7 +35,7 @@ ExtensionPoints = __decorate([
|
|
|
35
35
|
function getServiceOverride() {
|
|
36
36
|
return {
|
|
37
37
|
...getServiceOverride$1(),
|
|
38
|
-
[( ITextMateTokenizationService.toString())]: new SyncDescriptor(TextMateTokenizationFeature)
|
|
38
|
+
[( ITextMateTokenizationService.toString())]: new SyncDescriptor(TextMateTokenizationFeature, [], false)
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
export { ITextMateTokenizationService, getServiceOverride as default };
|
|
@@ -20,7 +20,7 @@ class StandaloneWorkbenchThemeService extends WorkbenchThemeService {
|
|
|
20
20
|
function getServiceOverride() {
|
|
21
21
|
return {
|
|
22
22
|
...getServiceOverride$1(),
|
|
23
|
-
[( IThemeService.toString())]: new SyncDescriptor(StandaloneWorkbenchThemeService)
|
|
23
|
+
[( IThemeService.toString())]: new SyncDescriptor(StandaloneWorkbenchThemeService, [], false)
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export { getServiceOverride as default };
|
|
@@ -19,6 +19,7 @@ import { OpenEditor } from '../dist/types/src/service-override/tools/editor.js';
|
|
|
19
19
|
declare function renderActivitybarPar(container: HTMLElement): IDisposable;
|
|
20
20
|
declare function renderSidebarPart(container: HTMLElement): IDisposable;
|
|
21
21
|
declare function renderPanelPart(container: HTMLElement): IDisposable;
|
|
22
|
+
declare function renderAuxiliaryPart(container: HTMLElement): IDisposable;
|
|
22
23
|
declare function renderEditorPart(container: HTMLElement): IDisposable;
|
|
23
24
|
declare function renderStatusBarPart(container: HTMLElement): IDisposable;
|
|
24
25
|
type Label = string | {
|
|
@@ -64,4 +65,4 @@ declare function registerCustomView(options: CustomViewOption): IDisposable;
|
|
|
64
65
|
declare function isEditorPartVisible(): boolean;
|
|
65
66
|
declare function getServiceOverride(openEditorFallback?: OpenEditor, _webviewIframeAlternateDomains?: string): IEditorOverrideServices;
|
|
66
67
|
|
|
67
|
-
export { CustomViewOption, EditorPanelOption, IEditorCloseHandler, OpenEditor, ViewContainerLocation, getServiceOverride as default, isEditorPartVisible, registerCustomView, registerEditorPane, renderActivitybarPar, renderEditorPart, renderPanelPart, renderSidebarPart, renderStatusBarPart };
|
|
68
|
+
export { CustomViewOption, EditorPanelOption, IEditorCloseHandler, OpenEditor, ViewContainerLocation, getServiceOverride as default, isEditorPartVisible, registerCustomView, registerEditorPane, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderSidebarPart, renderStatusBarPart };
|
|
@@ -6,19 +6,19 @@ import { Extensions, IViewsService, IViewDescriptorService } from '../vscode/vs/
|
|
|
6
6
|
export { ViewContainerLocation } from '../vscode/vs/workbench/common/views.js';
|
|
7
7
|
import { ViewsService } from '../vscode/vs/workbench/browser/parts/views/viewsService.js';
|
|
8
8
|
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
9
|
-
|
|
9
|
+
export { SidebarPart } from '../vscode/vs/workbench/browser/parts/sidebar/sidebarPart.js';
|
|
10
10
|
import { ViewDescriptorService } from '../vscode/vs/workbench/services/views/browser/viewDescriptorService.js';
|
|
11
11
|
import { IActivityService } from '../vscode/vs/workbench/services/activity/common/activity.js';
|
|
12
12
|
import { ActivityService } from '../vscode/vs/workbench/services/activity/browser/activityService.js';
|
|
13
13
|
import { IPaneCompositePartService } from '../vscode/vs/workbench/services/panecomposite/browser/panecomposite.js';
|
|
14
|
-
import {
|
|
15
|
-
|
|
14
|
+
import { PaneCompositeParts } from '../vscode/vs/workbench/browser/parts/paneCompositePart.js';
|
|
15
|
+
export { ActivitybarPart } from '../vscode/vs/workbench/browser/parts/activitybar/activitybarPart.js';
|
|
16
16
|
import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
17
17
|
import { IHoverService } from '../vscode/vs/workbench/services/hover/browser/hover.js';
|
|
18
18
|
import { HoverService } from '../vscode/vs/workbench/services/hover/browser/hoverService.js';
|
|
19
19
|
import { ExplorerService } from '../vscode/vs/workbench/contrib/files/browser/explorerService.js';
|
|
20
20
|
import { IExplorerService } from '../vscode/vs/workbench/contrib/files/browser/files.js';
|
|
21
|
-
|
|
21
|
+
export { PanelPart } from '../vscode/vs/workbench/browser/parts/panel/panelPart.js';
|
|
22
22
|
import { $, append } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
23
23
|
import { ViewPane } from '../vscode/vs/workbench/browser/parts/views/viewPane.js';
|
|
24
24
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
@@ -91,55 +91,13 @@ import { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/commo
|
|
|
91
91
|
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
92
92
|
import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
93
93
|
export { ConfirmResult } from '../override/vs/platform/dialogs/common/dialogs.js';
|
|
94
|
+
import { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
|
|
94
95
|
import { wrapOpenEditor } from './tools/editor.js';
|
|
95
96
|
import getServiceOverride$2 from './bulkEdit.js';
|
|
96
97
|
import getServiceOverride$1 from './layout.js';
|
|
97
98
|
import { changeUrlDomain } from './tools/url.js';
|
|
98
99
|
import { registerAssets } from '../assets.js';
|
|
99
|
-
|
|
100
|
-
const paneCompositeSelectorParts = new Map();
|
|
101
|
-
class PaneCompositePartService {
|
|
102
|
-
constructor() {
|
|
103
|
-
this.onDidPaneCompositeOpen = Event.None;
|
|
104
|
-
this.onDidPaneCompositeClose = Event.None;
|
|
105
|
-
}
|
|
106
|
-
async openPaneComposite(id, viewContainerLocation, focus) {
|
|
107
|
-
return this.getPartByLocation(viewContainerLocation)?.openPaneComposite(id, focus);
|
|
108
|
-
}
|
|
109
|
-
getActivePaneComposite(viewContainerLocation) {
|
|
110
|
-
return this.getPartByLocation(viewContainerLocation)?.getActivePaneComposite();
|
|
111
|
-
}
|
|
112
|
-
getPaneComposite(id, viewContainerLocation) {
|
|
113
|
-
return this.getPartByLocation(viewContainerLocation)?.getPaneComposite(id);
|
|
114
|
-
}
|
|
115
|
-
getPaneComposites(viewContainerLocation) {
|
|
116
|
-
return this.getPartByLocation(viewContainerLocation)?.getPaneComposites() ?? [];
|
|
117
|
-
}
|
|
118
|
-
getPinnedPaneCompositeIds(viewContainerLocation) {
|
|
119
|
-
return this.getSelectorPartByLocation(viewContainerLocation)?.getPinnedPaneCompositeIds() ?? [];
|
|
120
|
-
}
|
|
121
|
-
getVisiblePaneCompositeIds(viewContainerLocation) {
|
|
122
|
-
return this.getSelectorPartByLocation(viewContainerLocation)?.getVisiblePaneCompositeIds() ?? [];
|
|
123
|
-
}
|
|
124
|
-
getProgressIndicator(id, viewContainerLocation) {
|
|
125
|
-
return this.getPartByLocation(viewContainerLocation)?.getProgressIndicator(id);
|
|
126
|
-
}
|
|
127
|
-
hideActivePaneComposite(viewContainerLocation) {
|
|
128
|
-
this.getPartByLocation(viewContainerLocation)?.hideActivePaneComposite();
|
|
129
|
-
}
|
|
130
|
-
getLastActivePaneCompositeId(viewContainerLocation) {
|
|
131
|
-
return this.getPartByLocation(viewContainerLocation).getLastActivePaneCompositeId();
|
|
132
|
-
}
|
|
133
|
-
showActivity(id, viewContainerLocation, badge, clazz, priority) {
|
|
134
|
-
return this.getSelectorPartByLocation(viewContainerLocation).showActivity(id, badge, clazz, priority);
|
|
135
|
-
}
|
|
136
|
-
getPartByLocation(viewContainerLocation) {
|
|
137
|
-
return paneCompositeParts.get(viewContainerLocation);
|
|
138
|
-
}
|
|
139
|
-
getSelectorPartByLocation(viewContainerLocation) {
|
|
140
|
-
return paneCompositeSelectorParts.get(viewContainerLocation);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
100
|
+
import { registerServiceInitializePostParticipant } from '../services.js';
|
|
143
101
|
function createPart(id, role, classes) {
|
|
144
102
|
const part = document.createElement(role === 'status' ? 'footer' : 'div');
|
|
145
103
|
part.classList.add('part', ...classes);
|
|
@@ -150,13 +108,17 @@ function createPart(id, role, classes) {
|
|
|
150
108
|
}
|
|
151
109
|
return part;
|
|
152
110
|
}
|
|
153
|
-
function
|
|
154
|
-
const
|
|
155
|
-
|
|
111
|
+
function layoutPart(part) {
|
|
112
|
+
const parent = part.getContainer()?.parentNode;
|
|
113
|
+
if (parent == null) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
part.layout(Math.max(part.minimumWidth, Math.min(part.maximumWidth, parent.offsetWidth)), Math.max(part.minimumHeight, Math.min(part.maximumHeight, parent.offsetHeight)), 0, 0);
|
|
117
|
+
}
|
|
118
|
+
function renderPart(partContainer, part) {
|
|
156
119
|
partContainer.oncontextmenu = () => false;
|
|
157
|
-
part.create(partContainer);
|
|
158
120
|
function layout() {
|
|
159
|
-
|
|
121
|
+
layoutPart(part);
|
|
160
122
|
}
|
|
161
123
|
part.onDidVisibilityChange((visible) => {
|
|
162
124
|
if (visible) {
|
|
@@ -164,7 +126,13 @@ function renderPart(id, role, classes, part, container) {
|
|
|
164
126
|
}
|
|
165
127
|
});
|
|
166
128
|
layout();
|
|
167
|
-
|
|
129
|
+
}
|
|
130
|
+
function getPart(part) {
|
|
131
|
+
return StandaloneServices.get(ILayoutService).getPart(part);
|
|
132
|
+
}
|
|
133
|
+
function attachPart(part, container) {
|
|
134
|
+
container.append(part.getContainer());
|
|
135
|
+
const observer = new ResizeObserver(() => layoutPart(part));
|
|
168
136
|
observer.observe(container);
|
|
169
137
|
return {
|
|
170
138
|
dispose() {
|
|
@@ -173,37 +141,22 @@ function renderPart(id, role, classes, part, container) {
|
|
|
173
141
|
};
|
|
174
142
|
}
|
|
175
143
|
function renderActivitybarPar(container) {
|
|
176
|
-
|
|
177
|
-
paneCompositeSelectorParts.set(0 , activitybarPart);
|
|
178
|
-
activitybarPart['_register'](renderPart("workbench.parts.activitybar" , 'none', ['activitybar', 'left'], activitybarPart, container));
|
|
179
|
-
return activitybarPart;
|
|
144
|
+
return attachPart(getPart("workbench.parts.activitybar" ), container);
|
|
180
145
|
}
|
|
181
146
|
function renderSidebarPart(container) {
|
|
182
|
-
|
|
183
|
-
paneCompositeParts.set(0 , sidebarPart);
|
|
184
|
-
sidebarPart['_register'](renderPart("workbench.parts.sidebar" , 'none', ['sidebar', 'left'], sidebarPart, container));
|
|
185
|
-
if (sidebarPart.getPaneComposites().length > 0) {
|
|
186
|
-
void sidebarPart.openPaneComposite(sidebarPart.getPaneComposites()[0].id);
|
|
187
|
-
}
|
|
188
|
-
return sidebarPart;
|
|
147
|
+
return attachPart(getPart("workbench.parts.sidebar" ), container);
|
|
189
148
|
}
|
|
190
149
|
function renderPanelPart(container) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
if (panelPart.getPaneComposites().length > 0) {
|
|
196
|
-
void panelPart.openPaneComposite(panelPart.getPaneComposites()[0].id);
|
|
197
|
-
}
|
|
198
|
-
return panelPart;
|
|
150
|
+
return attachPart(getPart("workbench.parts.panel" ), container);
|
|
151
|
+
}
|
|
152
|
+
function renderAuxiliaryPart(container) {
|
|
153
|
+
return attachPart(getPart("workbench.parts.auxiliarybar" ), container);
|
|
199
154
|
}
|
|
200
155
|
function renderEditorPart(container) {
|
|
201
|
-
|
|
202
|
-
return renderPart("workbench.parts.editor" , 'main', ['editor'], editorPart, container);
|
|
156
|
+
return attachPart(getPart("workbench.parts.editor" ), container);
|
|
203
157
|
}
|
|
204
158
|
function renderStatusBarPart(container) {
|
|
205
|
-
|
|
206
|
-
return renderPart("workbench.parts.statusbar" , 'status', ['statusbar'], statusBarPart, container);
|
|
159
|
+
return attachPart(getPart("workbench.parts.statusbar" ), container);
|
|
207
160
|
}
|
|
208
161
|
function registerEditorPane(options) {
|
|
209
162
|
let CustomEditorPane = class CustomEditorPane extends EditorPane {
|
|
@@ -422,6 +375,33 @@ registerAssets({
|
|
|
422
375
|
'vs/workbench/contrib/webview/browser/pre/index-no-csp.html': () => changeUrlDomain(new URL('../assets/index-no-csp.html', import.meta.url).href, webviewIframeAlternateDomains),
|
|
423
376
|
'vs/workbench/contrib/webview/browser/pre/fake.html': () => changeUrlDomain(new URL('../assets/fake.html', import.meta.url).href, webviewIframeAlternateDomains)
|
|
424
377
|
});
|
|
378
|
+
registerServiceInitializePostParticipant(async (accessor) => {
|
|
379
|
+
const paneCompositePartService = accessor.get(IPaneCompositePartService);
|
|
380
|
+
const viewDescriptorService = accessor.get(IViewDescriptorService);
|
|
381
|
+
accessor.get(IStatusbarService);
|
|
382
|
+
paneCompositePartService.getPaneComposites(1 );
|
|
383
|
+
const layoutService = accessor.get(ILayoutService);
|
|
384
|
+
const invisibleContainer = document.createElement('div');
|
|
385
|
+
invisibleContainer.style.display = 'none';
|
|
386
|
+
document.body.append(invisibleContainer);
|
|
387
|
+
for (const { id, role, classes, options } of [
|
|
388
|
+
{ id: "workbench.parts.activitybar" , role: 'none', classes: ['activitybar', 'left'] },
|
|
389
|
+
{ id: "workbench.parts.sidebar" , role: 'none', classes: ['sidebar', 'left'] },
|
|
390
|
+
{ id: "workbench.parts.editor" , role: 'main', classes: ['editor'], options: { restorePreviousState: false } },
|
|
391
|
+
{ id: "workbench.parts.panel" , role: 'none', classes: ['panel', 'basepanel', positionToString(2 )] },
|
|
392
|
+
{ id: "workbench.parts.auxiliarybar" , role: 'none', classes: ['auxiliarybar', 'basepanel', 'right'] },
|
|
393
|
+
{ id: "workbench.parts.statusbar" , role: 'status', classes: ['statusbar'] }
|
|
394
|
+
]) {
|
|
395
|
+
const partContainer = createPart(id, role, classes);
|
|
396
|
+
const part = layoutService.getPart(id);
|
|
397
|
+
part.create(partContainer, options);
|
|
398
|
+
renderPart(partContainer, part);
|
|
399
|
+
invisibleContainer.append(partContainer);
|
|
400
|
+
}
|
|
401
|
+
await paneCompositePartService.openPaneComposite(viewDescriptorService.getDefaultViewContainer(0 )?.id, 0 );
|
|
402
|
+
await paneCompositePartService.openPaneComposite(viewDescriptorService.getDefaultViewContainer(1 )?.id, 1 );
|
|
403
|
+
await paneCompositePartService.openPaneComposite(viewDescriptorService.getDefaultViewContainer(2 )?.id, 2 );
|
|
404
|
+
});
|
|
425
405
|
function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains) {
|
|
426
406
|
if (_webviewIframeAlternateDomains != null) {
|
|
427
407
|
webviewIframeAlternateDomains = _webviewIframeAlternateDomains;
|
|
@@ -429,29 +409,29 @@ function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains)
|
|
|
429
409
|
return {
|
|
430
410
|
...getServiceOverride$1(),
|
|
431
411
|
...getServiceOverride$2(),
|
|
432
|
-
[( IViewsService.toString())]: new SyncDescriptor(ViewsService),
|
|
433
|
-
[( IViewDescriptorService.toString())]: new SyncDescriptor(ViewDescriptorService),
|
|
434
|
-
[( IActivityService.toString())]: new SyncDescriptor(ActivityService),
|
|
435
|
-
[( IPaneCompositePartService.toString())]: new SyncDescriptor(
|
|
436
|
-
[( IHoverService.toString())]: new SyncDescriptor(HoverService),
|
|
437
|
-
[( IExplorerService.toString())]: new SyncDescriptor(ExplorerService),
|
|
438
|
-
[( ICodeEditorService.toString())]: new SyncDescriptor(CodeEditorService),
|
|
439
|
-
[( ITextEditorService.toString())]: new SyncDescriptor(TextEditorService),
|
|
440
|
-
[( IEditorGroupsService.toString())]: new SyncDescriptor(EditorPart),
|
|
441
|
-
[( IStatusbarService.toString())]: new SyncDescriptor(StatusbarPart),
|
|
442
|
-
[( IEditorDropService.toString())]: new SyncDescriptor(EditorDropService),
|
|
443
|
-
[( IEditorService.toString())]: new SyncDescriptor(MonacoEditorService, [openEditorFallback]),
|
|
444
|
-
[( IEditorResolverService.toString())]: new SyncDescriptor(EditorResolverService),
|
|
445
|
-
[( IBreadcrumbsService.toString())]: new SyncDescriptor(BreadcrumbsService),
|
|
446
|
-
[( IContextViewService.toString())]: new SyncDescriptor(ContextViewService),
|
|
447
|
-
[( IUntitledTextEditorService.toString())]: new SyncDescriptor(UntitledTextEditorService),
|
|
448
|
-
[( ISemanticSimilarityService.toString())]: new SyncDescriptor(SemanticSimilarityService),
|
|
449
|
-
[( IHistoryService.toString())]: new SyncDescriptor(HistoryService),
|
|
450
|
-
[( IOutlineService.toString())]: new SyncDescriptor(OutlineService),
|
|
451
|
-
[( ICustomEditorService.toString())]: new SyncDescriptor(CustomEditorService),
|
|
452
|
-
[( IWebviewService.toString())]: new SyncDescriptor(WebviewService),
|
|
453
|
-
[( IWebviewViewService.toString())]: new SyncDescriptor(WebviewViewService),
|
|
454
|
-
[( IWebviewWorkbenchService.toString())]: new SyncDescriptor(WebviewEditorService)
|
|
412
|
+
[( IViewsService.toString())]: new SyncDescriptor(ViewsService, [], false),
|
|
413
|
+
[( IViewDescriptorService.toString())]: new SyncDescriptor(ViewDescriptorService, [], true),
|
|
414
|
+
[( IActivityService.toString())]: new SyncDescriptor(ActivityService, [], true),
|
|
415
|
+
[( IPaneCompositePartService.toString())]: new SyncDescriptor(PaneCompositeParts, [], true),
|
|
416
|
+
[( IHoverService.toString())]: new SyncDescriptor(HoverService, [], true),
|
|
417
|
+
[( IExplorerService.toString())]: new SyncDescriptor(ExplorerService, [], true),
|
|
418
|
+
[( ICodeEditorService.toString())]: new SyncDescriptor(CodeEditorService, [], true),
|
|
419
|
+
[( ITextEditorService.toString())]: new SyncDescriptor(TextEditorService, [], false),
|
|
420
|
+
[( IEditorGroupsService.toString())]: new SyncDescriptor(EditorPart, [], false),
|
|
421
|
+
[( IStatusbarService.toString())]: new SyncDescriptor(StatusbarPart, [], false),
|
|
422
|
+
[( IEditorDropService.toString())]: new SyncDescriptor(EditorDropService, [], true),
|
|
423
|
+
[( IEditorService.toString())]: new SyncDescriptor(MonacoEditorService, [openEditorFallback], false),
|
|
424
|
+
[( IEditorResolverService.toString())]: new SyncDescriptor(EditorResolverService, [], false),
|
|
425
|
+
[( IBreadcrumbsService.toString())]: new SyncDescriptor(BreadcrumbsService, [], true),
|
|
426
|
+
[( IContextViewService.toString())]: new SyncDescriptor(ContextViewService, [], true),
|
|
427
|
+
[( IUntitledTextEditorService.toString())]: new SyncDescriptor(UntitledTextEditorService, [], true),
|
|
428
|
+
[( ISemanticSimilarityService.toString())]: new SyncDescriptor(SemanticSimilarityService, [], true),
|
|
429
|
+
[( IHistoryService.toString())]: new SyncDescriptor(HistoryService, [], false),
|
|
430
|
+
[( IOutlineService.toString())]: new SyncDescriptor(OutlineService, [], true),
|
|
431
|
+
[( ICustomEditorService.toString())]: new SyncDescriptor(CustomEditorService, [], true),
|
|
432
|
+
[( IWebviewService.toString())]: new SyncDescriptor(WebviewService, [], true),
|
|
433
|
+
[( IWebviewViewService.toString())]: new SyncDescriptor(WebviewViewService, [], true),
|
|
434
|
+
[( IWebviewWorkbenchService.toString())]: new SyncDescriptor(WebviewEditorService, [], true)
|
|
455
435
|
};
|
|
456
436
|
}
|
|
457
|
-
export { ActivityService,
|
|
437
|
+
export { ActivityService, HoverService, StatusbarPart, getServiceOverride as default, isEditorPartVisible, registerCustomView, registerEditorPane, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderSidebarPart, renderStatusBarPart };
|
package/dist/services.d.ts
CHANGED
|
@@ -67,9 +67,11 @@ export { IStatusbarService } from './vscode/vs/workbench/services/statusbar/brow
|
|
|
67
67
|
interface ServiceInitializeParticipant {
|
|
68
68
|
(accessor: ServicesAccessor): Promise<void>;
|
|
69
69
|
}
|
|
70
|
+
declare function registerServiceInitializePreParticipant(participant: ServiceInitializeParticipant): void;
|
|
70
71
|
declare function registerServiceInitializeParticipant(participant: ServiceInitializeParticipant): void;
|
|
72
|
+
declare function registerServiceInitializePostParticipant(participant: ServiceInitializeParticipant): void;
|
|
71
73
|
declare const onRenderWorkbench: Event<ServicesAccessor>;
|
|
72
74
|
declare function getService<T>(identifier: ServiceIdentifier<T>): Promise<T>;
|
|
73
75
|
declare function initialize(overrides: IEditorOverrideServices): Promise<void>;
|
|
74
76
|
|
|
75
|
-
export { getService, initialize, onRenderWorkbench, registerServiceInitializeParticipant };
|
|
77
|
+
export { getService, initialize, onRenderWorkbench, registerServiceInitializeParticipant, registerServiceInitializePostParticipant, registerServiceInitializePreParticipant };
|
package/dist/services.js
CHANGED
|
@@ -67,10 +67,18 @@ export { IHoverService } from './vscode/vs/workbench/services/hover/browser/hove
|
|
|
67
67
|
export { IExplorerService } from './vscode/vs/workbench/contrib/files/browser/files.js';
|
|
68
68
|
export { IStatusbarService } from './vscode/vs/workbench/services/statusbar/browser/statusbar.js';
|
|
69
69
|
export { IDialogService } from './vscode/vs/platform/dialogs/common/dialogs.js';
|
|
70
|
+
const serviceInitializePreParticipants = [];
|
|
70
71
|
const serviceInitializeParticipants = [];
|
|
72
|
+
const serviceInitializePostParticipants = [];
|
|
73
|
+
function registerServiceInitializePreParticipant(participant) {
|
|
74
|
+
serviceInitializePreParticipants.push(participant);
|
|
75
|
+
}
|
|
71
76
|
function registerServiceInitializeParticipant(participant) {
|
|
72
77
|
serviceInitializeParticipants.push(participant);
|
|
73
78
|
}
|
|
79
|
+
function registerServiceInitializePostParticipant(participant) {
|
|
80
|
+
serviceInitializePostParticipants.push(participant);
|
|
81
|
+
}
|
|
74
82
|
async function initServices(overrides) {
|
|
75
83
|
const instantiationService = StandaloneServices.initialize({
|
|
76
84
|
...getServiceOverride(),
|
|
@@ -79,11 +87,17 @@ async function initServices(overrides) {
|
|
|
79
87
|
...getServiceOverride$3(),
|
|
80
88
|
...overrides
|
|
81
89
|
});
|
|
90
|
+
await instantiationService.invokeFunction(async (accessor) => {
|
|
91
|
+
await Promise.all(( serviceInitializePreParticipants.map(participant => participant(accessor))));
|
|
92
|
+
});
|
|
82
93
|
await instantiationService.invokeFunction(async (accessor) => {
|
|
83
94
|
const lifecycleService = accessor.get(ILifecycleService);
|
|
84
95
|
await Promise.all(( serviceInitializeParticipants.map(participant => participant(accessor))));
|
|
85
96
|
lifecycleService.phase = 2 ;
|
|
86
97
|
});
|
|
98
|
+
await instantiationService.invokeFunction(async (accessor) => {
|
|
99
|
+
await Promise.all(( serviceInitializePostParticipants.map(participant => participant(accessor))));
|
|
100
|
+
});
|
|
87
101
|
return instantiationService;
|
|
88
102
|
}
|
|
89
103
|
const renderWorkbenchEmitter = new Emitter();
|
|
@@ -109,4 +123,4 @@ async function initialize(overrides) {
|
|
|
109
123
|
eventuallyPhaseScheduler.schedule();
|
|
110
124
|
});
|
|
111
125
|
}
|
|
112
|
-
export { getService, initialize, onRenderWorkbench, registerServiceInitializeParticipant };
|
|
126
|
+
export { getService, initialize, onRenderWorkbench, registerServiceInitializeParticipant, registerServiceInitializePostParticipant, registerServiceInitializePreParticipant };
|
|
@@ -13,7 +13,7 @@ self.close = () => console.trace(`'close' has been blocked`);
|
|
|
13
13
|
const nativePostMessage = postMessage.bind(self);
|
|
14
14
|
self.postMessage = () => console.trace(`'postMessage' has been blocked`);
|
|
15
15
|
function shouldTransformUri(uri) {
|
|
16
|
-
return /^(file|vscode-remote):/i.test(uri);
|
|
16
|
+
return /^(file|extension|vscode-remote):/i.test(uri);
|
|
17
17
|
}
|
|
18
18
|
const nativeFetch = fetch.bind(self);
|
|
19
19
|
function patchFetching(asBrowserUri) {
|
|
@@ -75,8 +75,23 @@ function patchWorker(asBrowserUri, getAllStaticBrowserUris) {
|
|
|
75
75
|
return nativeFetch(asWorkerBrowserUrl(input), init);
|
|
76
76
|
};
|
|
77
77
|
self.XMLHttpRequest = class extends XMLHttpRequest {
|
|
78
|
+
constructor() {
|
|
79
|
+
super(...arguments);
|
|
80
|
+
this.notFound = false;
|
|
81
|
+
}
|
|
78
82
|
open(method, url, async, username, password) {
|
|
79
|
-
|
|
83
|
+
const transformedUrl = asWorkerBrowserUrl(url);
|
|
84
|
+
this.notFound = transformedUrl.startsWith('extension:');
|
|
85
|
+
return super.open(method, transformedUrl, async ?? true, username, password);
|
|
86
|
+
}
|
|
87
|
+
send(body) {
|
|
88
|
+
if (this.notFound) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
super.send(body);
|
|
92
|
+
}
|
|
93
|
+
get status() {
|
|
94
|
+
return this.notFound ? 404 : super.status;
|
|
80
95
|
}
|
|
81
96
|
};
|
|
82
97
|
const nativeImportScripts = importScripts.bind(self);
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import './media/auxiliaryBarPart.css.js';
|
|
3
|
+
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
4
|
+
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
5
|
+
import { IContextMenuService } from 'monaco-editor/esm/vs/platform/contextview/browser/contextView.js';
|
|
6
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
7
|
+
import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
|
|
8
|
+
import { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
9
|
+
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
10
|
+
import { contrastBorder } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
11
|
+
import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
12
|
+
import { Extensions } from '../../panecomposite.js';
|
|
13
|
+
import { BasePanelPart } from '../panel/panelPart.js';
|
|
14
|
+
import { ActiveAuxiliaryContext, AuxiliaryBarFocusContext } from '../../../common/contextkeys.js';
|
|
15
|
+
import { SIDE_BAR_BACKGROUND, SIDE_BAR_BORDER, SIDE_BAR_FOREGROUND } from '../../../common/theme.js';
|
|
16
|
+
import { IViewDescriptorService } from '../../../common/views.js';
|
|
17
|
+
import { IExtensionService } from '../../../services/extensions/common/extensions.js';
|
|
18
|
+
import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
|
|
19
|
+
import { Separator, toAction } from 'monaco-editor/esm/vs/base/common/actions.js';
|
|
20
|
+
import { ToggleAuxiliaryBarAction } from './auxiliaryBarActions.js';
|
|
21
|
+
import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
22
|
+
import { ToggleSidebarPositionAction } from '../../actions/layoutActions.js';
|
|
23
|
+
import { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
24
|
+
let AuxiliaryBarPart = class AuxiliaryBarPart extends BasePanelPart {
|
|
25
|
+
static { this.activePanelSettingsKey = 'workbench.auxiliarybar.activepanelid'; }
|
|
26
|
+
static { this.pinnedPanelsKey = 'workbench.auxiliarybar.pinnedPanels'; }
|
|
27
|
+
static { this.placeholdeViewContainersKey = 'workbench.auxiliarybar.placeholderPanels'; }
|
|
28
|
+
constructor(notificationService, storageService, contextMenuService, layoutService, keybindingService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, commandService) {
|
|
29
|
+
super(notificationService, storageService, contextMenuService, layoutService, keybindingService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, "workbench.parts.auxiliarybar" , AuxiliaryBarPart.activePanelSettingsKey, AuxiliaryBarPart.pinnedPanelsKey, AuxiliaryBarPart.placeholdeViewContainersKey, Extensions.Auxiliary, SIDE_BAR_BACKGROUND, 2 , ActiveAuxiliaryContext.bindTo(contextKeyService), AuxiliaryBarFocusContext.bindTo(contextKeyService), {
|
|
30
|
+
useIcons: true,
|
|
31
|
+
hasTitle: true,
|
|
32
|
+
borderWidth: () => (this.getColor(SIDE_BAR_BORDER) || this.getColor(contrastBorder)) ? 1 : 0,
|
|
33
|
+
});
|
|
34
|
+
this.commandService = commandService;
|
|
35
|
+
this.minimumWidth = 170;
|
|
36
|
+
this.maximumWidth = Number.POSITIVE_INFINITY;
|
|
37
|
+
this.minimumHeight = 0;
|
|
38
|
+
this.maximumHeight = Number.POSITIVE_INFINITY;
|
|
39
|
+
this.priority = 1 ;
|
|
40
|
+
}
|
|
41
|
+
updateStyles() {
|
|
42
|
+
super.updateStyles();
|
|
43
|
+
const container = assertIsDefined(this.getContainer());
|
|
44
|
+
const borderColor = this.getColor(SIDE_BAR_BORDER) || this.getColor(contrastBorder);
|
|
45
|
+
const isPositionLeft = this.layoutService.getSideBarPosition() === 1 ;
|
|
46
|
+
container.style.color = this.getColor(SIDE_BAR_FOREGROUND) || '';
|
|
47
|
+
container.style.borderLeftColor = borderColor ?? '';
|
|
48
|
+
container.style.borderRightColor = borderColor ?? '';
|
|
49
|
+
container.style.borderLeftStyle = borderColor && !isPositionLeft ? 'solid' : 'none';
|
|
50
|
+
container.style.borderRightStyle = borderColor && isPositionLeft ? 'solid' : 'none';
|
|
51
|
+
container.style.borderLeftWidth = borderColor && !isPositionLeft ? '1px' : '0px';
|
|
52
|
+
container.style.borderRightWidth = borderColor && isPositionLeft ? '1px' : '0px';
|
|
53
|
+
}
|
|
54
|
+
getActivityHoverOptions() {
|
|
55
|
+
return {
|
|
56
|
+
position: () => 2
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
fillExtraContextMenuActions(actions) {
|
|
60
|
+
const currentPositionRight = this.layoutService.getSideBarPosition() === 0 ;
|
|
61
|
+
actions.push(...[
|
|
62
|
+
( new Separator()),
|
|
63
|
+
toAction({ id: ToggleSidebarPositionAction.ID, label: currentPositionRight ? ( localize('move second side bar left', "Move Secondary Side Bar Left")) : ( localize('move second side bar right', "Move Secondary Side Bar Right")), run: () => this.commandService.executeCommand(ToggleSidebarPositionAction.ID) }),
|
|
64
|
+
toAction({ id: ToggleAuxiliaryBarAction.ID, label: ( localize('hide second side bar', "Hide Secondary Side Bar")), run: () => this.commandService.executeCommand(ToggleAuxiliaryBarAction.ID) })
|
|
65
|
+
]);
|
|
66
|
+
}
|
|
67
|
+
toJSON() {
|
|
68
|
+
return {
|
|
69
|
+
type: "workbench.parts.auxiliarybar"
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
AuxiliaryBarPart = ( __decorate([
|
|
74
|
+
( __param(0, INotificationService)),
|
|
75
|
+
( __param(1, IStorageService)),
|
|
76
|
+
( __param(2, IContextMenuService)),
|
|
77
|
+
( __param(3, IWorkbenchLayoutService)),
|
|
78
|
+
( __param(4, IKeybindingService)),
|
|
79
|
+
( __param(5, IInstantiationService)),
|
|
80
|
+
( __param(6, IThemeService)),
|
|
81
|
+
( __param(7, IViewDescriptorService)),
|
|
82
|
+
( __param(8, IContextKeyService)),
|
|
83
|
+
( __param(9, IExtensionService)),
|
|
84
|
+
( __param(10, ICommandService))
|
|
85
|
+
], AuxiliaryBarPart));
|
|
86
|
+
export { AuxiliaryBarPart };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import n from '../../../../../../../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
|
+
var css = ".monaco-workbench.noauxiliarybar .part.auxiliarybar{display:none!important;visibility:hidden!important}.monaco-workbench .part.auxiliarybar>.content .monaco-editor,.monaco-workbench .part.auxiliarybar>.content .monaco-editor .margin,.monaco-workbench .part.auxiliarybar>.content .monaco-editor .monaco-editor-background{background-color:var(--vscode-sideBar-background)}.monaco-workbench .part.auxiliarybar>.title>.panel-switcher-container>.monaco-action-bar .action-item:focus .action-label,.monaco-workbench .part.auxiliarybar>.title>.panel-switcher-container>.monaco-action-bar .action-item:hover .action-label{color:var(--vscode-sideBarTitle-foreground)!important}.monaco-workbench .part.auxiliarybar>.title>.panel-switcher-container>.monaco-action-bar .action-item.checked .action-label,.monaco-workbench .part.auxiliarybar>.title>.panel-switcher-container>.monaco-action-bar .action-item:hover .action-label{outline:var(--vscode-contrastActiveBorder,unset) solid 1px!important}.monaco-workbench .part.auxiliarybar>.title>.panel-switcher-container>.monaco-action-bar .action-item:not(.checked):hover .action-label{outline:var(--vscode-contrastActiveBorder,unset) dashed 1px!important}";
|
|
3
|
+
n(css,{});
|
|
4
|
+
export { css, css as default };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { __decorate, __param } from '../../../../../node_modules/tslib/tslib.es6.js';
|
|
2
|
+
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
3
|
+
import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
4
|
+
import { IInstantiationService } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
5
|
+
import { ActivitybarPart } from './activitybar/activitybarPart.js';
|
|
6
|
+
import { AuxiliaryBarPart } from './auxiliarybar/auxiliaryBarPart.js';
|
|
7
|
+
import { PanelPart } from './panel/panelPart.js';
|
|
8
|
+
import { SidebarPart } from './sidebar/sidebarPart.js';
|
|
9
|
+
import { ViewContainerLocations } from '../../common/views.js';
|
|
10
|
+
import { Disposable, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
11
|
+
let PaneCompositeParts = class PaneCompositeParts extends Disposable {
|
|
12
|
+
constructor(instantiationService) {
|
|
13
|
+
super();
|
|
14
|
+
this.paneCompositeParts = ( new Map());
|
|
15
|
+
this.paneCompositeSelectorParts = ( new Map());
|
|
16
|
+
const panelPart = instantiationService.createInstance(PanelPart);
|
|
17
|
+
const sideBarPart = instantiationService.createInstance(SidebarPart);
|
|
18
|
+
const auxiliaryBarPart = instantiationService.createInstance(AuxiliaryBarPart);
|
|
19
|
+
const activityBarPart = instantiationService.createInstance(ActivitybarPart, sideBarPart);
|
|
20
|
+
this.paneCompositeParts.set(1 , panelPart);
|
|
21
|
+
this.paneCompositeParts.set(0 , sideBarPart);
|
|
22
|
+
this.paneCompositeParts.set(2 , auxiliaryBarPart);
|
|
23
|
+
this.paneCompositeSelectorParts.set(1 , panelPart);
|
|
24
|
+
this.paneCompositeSelectorParts.set(0 , activityBarPart);
|
|
25
|
+
this.paneCompositeSelectorParts.set(2 , auxiliaryBarPart);
|
|
26
|
+
const eventDisposables = this._register(( new DisposableStore()));
|
|
27
|
+
this.onDidPaneCompositeOpen = Event.any(...( ViewContainerLocations.map(loc => ( Event.map(
|
|
28
|
+
this.paneCompositeParts.get(loc).onDidPaneCompositeOpen,
|
|
29
|
+
composite => { return { composite, viewContainerLocation: loc }; },
|
|
30
|
+
eventDisposables
|
|
31
|
+
)))));
|
|
32
|
+
this.onDidPaneCompositeClose = Event.any(...( ViewContainerLocations.map(loc => ( Event.map(
|
|
33
|
+
this.paneCompositeParts.get(loc).onDidPaneCompositeClose,
|
|
34
|
+
composite => { return { composite, viewContainerLocation: loc }; },
|
|
35
|
+
eventDisposables
|
|
36
|
+
)))));
|
|
37
|
+
}
|
|
38
|
+
openPaneComposite(id, viewContainerLocation, focus) {
|
|
39
|
+
return this.getPartByLocation(viewContainerLocation).openPaneComposite(id, focus);
|
|
40
|
+
}
|
|
41
|
+
getActivePaneComposite(viewContainerLocation) {
|
|
42
|
+
return this.getPartByLocation(viewContainerLocation).getActivePaneComposite();
|
|
43
|
+
}
|
|
44
|
+
getPaneComposite(id, viewContainerLocation) {
|
|
45
|
+
return this.getPartByLocation(viewContainerLocation).getPaneComposite(id);
|
|
46
|
+
}
|
|
47
|
+
getPaneComposites(viewContainerLocation) {
|
|
48
|
+
return this.getPartByLocation(viewContainerLocation).getPaneComposites();
|
|
49
|
+
}
|
|
50
|
+
getPinnedPaneCompositeIds(viewContainerLocation) {
|
|
51
|
+
return this.getSelectorPartByLocation(viewContainerLocation).getPinnedPaneCompositeIds();
|
|
52
|
+
}
|
|
53
|
+
getVisiblePaneCompositeIds(viewContainerLocation) {
|
|
54
|
+
return this.getSelectorPartByLocation(viewContainerLocation).getVisiblePaneCompositeIds();
|
|
55
|
+
}
|
|
56
|
+
getProgressIndicator(id, viewContainerLocation) {
|
|
57
|
+
return this.getPartByLocation(viewContainerLocation).getProgressIndicator(id);
|
|
58
|
+
}
|
|
59
|
+
hideActivePaneComposite(viewContainerLocation) {
|
|
60
|
+
this.getPartByLocation(viewContainerLocation).hideActivePaneComposite();
|
|
61
|
+
}
|
|
62
|
+
getLastActivePaneCompositeId(viewContainerLocation) {
|
|
63
|
+
return this.getPartByLocation(viewContainerLocation).getLastActivePaneCompositeId();
|
|
64
|
+
}
|
|
65
|
+
showActivity(id, viewContainerLocation, badge, clazz, priority) {
|
|
66
|
+
return this.getSelectorPartByLocation(viewContainerLocation).showActivity(id, badge, clazz, priority);
|
|
67
|
+
}
|
|
68
|
+
getPartByLocation(viewContainerLocation) {
|
|
69
|
+
return assertIsDefined(this.paneCompositeParts.get(viewContainerLocation));
|
|
70
|
+
}
|
|
71
|
+
getSelectorPartByLocation(viewContainerLocation) {
|
|
72
|
+
return assertIsDefined(this.paneCompositeSelectorParts.get(viewContainerLocation));
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
PaneCompositeParts = ( __decorate([
|
|
76
|
+
( __param(0, IInstantiationService))
|
|
77
|
+
], PaneCompositeParts));
|
|
78
|
+
export { PaneCompositeParts };
|
|
@@ -71,6 +71,8 @@ const StatusBarFocused = ( new RawContextKey('statusBarFocused', false, ( locali
|
|
|
71
71
|
const NotificationFocusedContext = ( new RawContextKey('notificationFocus', true, ( localize('notificationFocus', "Whether a notification has keyboard focus"))));
|
|
72
72
|
const NotificationsCenterVisibleContext = ( new RawContextKey('notificationCenterVisible', false, ( localize('notificationCenterVisible', "Whether the notifications center is visible"))));
|
|
73
73
|
const NotificationsToastsVisibleContext = ( new RawContextKey('notificationToastsVisible', false, ( localize('notificationToastsVisible', "Whether a notification toast is visible"))));
|
|
74
|
+
const ActiveAuxiliaryContext = ( new RawContextKey('activeAuxiliary', '', ( localize('activeAuxiliary', "The identifier of the active auxiliary panel"))));
|
|
75
|
+
const AuxiliaryBarFocusContext = ( new RawContextKey('auxiliaryBarFocus', false, ( localize('auxiliaryBarFocus', "Whether the auxiliary bar has keyboard focus"))));
|
|
74
76
|
const AuxiliaryBarVisibleContext = ( new RawContextKey('auxiliaryBarVisible', false, ( localize('auxiliaryBarVisible', "Whether the auxiliary bar is visible"))));
|
|
75
77
|
const ActivePanelContext = ( new RawContextKey('activePanel', '', ( localize('activePanel', "The identifier of the active panel"))));
|
|
76
78
|
const PanelFocusContext = ( new RawContextKey('panelFocus', false, ( localize('panelFocus', "Whether the panel has keyboard focus"))));
|
|
@@ -216,4 +218,4 @@ function applyAvailableEditorIds(contextKey, editor, editorResolverService) {
|
|
|
216
218
|
contextKey.set(editors.join(','));
|
|
217
219
|
}
|
|
218
220
|
}
|
|
219
|
-
export { ActiveEditorAvailableEditorIdsContext, ActiveEditorCanSplitInGroupContext, ActiveEditorCanToggleReadonlyContext, ActiveEditorContext, ActiveEditorDirtyContext, ActiveEditorFirstInGroupContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupLockedContext, ActiveEditorLastInGroupContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActivePanelContext, ActiveViewletContext, AuxiliaryBarVisibleContext, DirtyWorkingCopiesContext, EditorGroupEditorsCountContext, EditorTabsVisibleContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, FocusedViewContext, HasWebFileSystemAccess, InEditorZenModeContext, IsCenteredLayoutContext, IsFullscreenContext, MultipleEditorGroupsContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, OpenFolderWorkspaceSupportContext, PanelAlignmentContext, PanelFocusContext, PanelPositionContext, PanelVisibleContext, RemoteNameContext, ResourceContextKey, SideBarVisibleContext, SideBySideEditorActiveContext, SidebarFocusContext, StatusBarFocused, TextCompareEditorActiveContext, TextCompareEditorVisibleContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, applyAvailableEditorIds, getEnabledViewContainerContextKey, getVisbileViewContextKey };
|
|
221
|
+
export { ActiveAuxiliaryContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorCanSplitInGroupContext, ActiveEditorCanToggleReadonlyContext, ActiveEditorContext, ActiveEditorDirtyContext, ActiveEditorFirstInGroupContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupLockedContext, ActiveEditorLastInGroupContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActivePanelContext, ActiveViewletContext, AuxiliaryBarFocusContext, AuxiliaryBarVisibleContext, DirtyWorkingCopiesContext, EditorGroupEditorsCountContext, EditorTabsVisibleContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, FocusedViewContext, HasWebFileSystemAccess, InEditorZenModeContext, IsCenteredLayoutContext, IsFullscreenContext, MultipleEditorGroupsContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, OpenFolderWorkspaceSupportContext, PanelAlignmentContext, PanelFocusContext, PanelPositionContext, PanelVisibleContext, RemoteNameContext, ResourceContextKey, SideBarVisibleContext, SideBySideEditorActiveContext, SidebarFocusContext, StatusBarFocused, TextCompareEditorActiveContext, TextCompareEditorVisibleContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, applyAvailableEditorIds, getEnabledViewContainerContextKey, getVisbileViewContextKey };
|
|
@@ -21,6 +21,7 @@ var ViewContainerLocation;
|
|
|
21
21
|
ViewContainerLocation[ViewContainerLocation["Panel"] = 1] = "Panel";
|
|
22
22
|
ViewContainerLocation[ViewContainerLocation["AuxiliaryBar"] = 2] = "AuxiliaryBar";
|
|
23
23
|
})(ViewContainerLocation || (ViewContainerLocation = {})));
|
|
24
|
+
const ViewContainerLocations = [0 , 1 , 2 ];
|
|
24
25
|
function ViewContainerLocationToString(viewContainerLocation) {
|
|
25
26
|
switch (viewContainerLocation) {
|
|
26
27
|
case 0 : return 'sidebar';
|
|
@@ -296,4 +297,4 @@ class NoTreeViewError extends Error {
|
|
|
296
297
|
return err.name === 'NoTreeViewError';
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
|
-
export { Extensions, IViewDescriptorService, IViewsService, NoTreeViewError, ResolvableTreeItem, TreeItemCollapsibleState, ViewContainerLocation, ViewContainerLocationToString, ViewContentGroups, ViewVisibilityState, defaultViewIcon };
|
|
300
|
+
export { Extensions, IViewDescriptorService, IViewsService, NoTreeViewError, ResolvableTreeItem, TreeItemCollapsibleState, ViewContainerLocation, ViewContainerLocationToString, ViewContainerLocations, ViewContentGroups, ViewVisibilityState, defaultViewIcon };
|