@codingame/monaco-vscode-api 1.81.0 → 1.81.1-next.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/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 +3 -3
- 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 +86 -101
- package/dist/services.d.ts +3 -1
- package/dist/services.js +17 -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 +920 -943
- package/package.json +1 -1
- /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
|
@@ -99,17 +99,17 @@ class SimpleTerminalProcess {
|
|
|
99
99
|
function getServiceOverride(backend) {
|
|
100
100
|
( Registry.as(TerminalExtensions.Backend)).registerTerminalBackend(backend);
|
|
101
101
|
return {
|
|
102
|
-
[( ITerminalService.toString())]: new SyncDescriptor(TerminalService),
|
|
103
|
-
[( ITerminalLogService.toString())]: new SyncDescriptor(TerminalLogService),
|
|
104
|
-
[( ITerminalEditorService.toString())]: new SyncDescriptor(TerminalEditorService),
|
|
105
|
-
[( ITerminalGroupService.toString())]: new SyncDescriptor(TerminalGroupService),
|
|
106
|
-
[( ITerminalInstanceService.toString())]: new SyncDescriptor(TerminalInstanceService),
|
|
107
|
-
[( ITerminalProfileService.toString())]: new SyncDescriptor(TerminalProfileService),
|
|
108
|
-
[( ITerminalContributionService.toString())]: new SyncDescriptor(TerminalContributionService),
|
|
109
|
-
[( ITerminalLinkProviderService.toString())]: new SyncDescriptor(TerminalLinkProviderService),
|
|
110
|
-
[( ITerminalProfileResolverService.toString())]: new SyncDescriptor(ElectronTerminalProfileResolverService),
|
|
111
|
-
[( IEnvironmentVariableService.toString())]: new SyncDescriptor(EnvironmentVariableService),
|
|
112
|
-
[( ITerminalQuickFixService.toString())]: new SyncDescriptor(TerminalQuickFixService)
|
|
102
|
+
[( ITerminalService.toString())]: new SyncDescriptor(TerminalService, [], true),
|
|
103
|
+
[( ITerminalLogService.toString())]: new SyncDescriptor(TerminalLogService, [], true),
|
|
104
|
+
[( ITerminalEditorService.toString())]: new SyncDescriptor(TerminalEditorService, [], true),
|
|
105
|
+
[( ITerminalGroupService.toString())]: new SyncDescriptor(TerminalGroupService, [], true),
|
|
106
|
+
[( ITerminalInstanceService.toString())]: new SyncDescriptor(TerminalInstanceService, [], true),
|
|
107
|
+
[( ITerminalProfileService.toString())]: new SyncDescriptor(TerminalProfileService, [], true),
|
|
108
|
+
[( ITerminalContributionService.toString())]: new SyncDescriptor(TerminalContributionService, [], true),
|
|
109
|
+
[( ITerminalLinkProviderService.toString())]: new SyncDescriptor(TerminalLinkProviderService, [], true),
|
|
110
|
+
[( ITerminalProfileResolverService.toString())]: new SyncDescriptor(ElectronTerminalProfileResolverService, [], true),
|
|
111
|
+
[( IEnvironmentVariableService.toString())]: new SyncDescriptor(EnvironmentVariableService, [], true),
|
|
112
|
+
[( ITerminalQuickFixService.toString())]: new SyncDescriptor(TerminalQuickFixService, [], true)
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
export { SimpleTerminalBackend, SimpleTerminalProcess, getServiceOverride as default };
|
|
@@ -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,14 @@ 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';
|
|
98
|
+
import getServiceOverride$3 from './quickaccess.js';
|
|
97
99
|
import { changeUrlDomain } from './tools/url.js';
|
|
98
100
|
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
|
-
}
|
|
101
|
+
import { registerServiceInitializePostParticipant } from '../services.js';
|
|
143
102
|
function createPart(id, role, classes) {
|
|
144
103
|
const part = document.createElement(role === 'status' ? 'footer' : 'div');
|
|
145
104
|
part.classList.add('part', ...classes);
|
|
@@ -150,13 +109,17 @@ function createPart(id, role, classes) {
|
|
|
150
109
|
}
|
|
151
110
|
return part;
|
|
152
111
|
}
|
|
153
|
-
function
|
|
154
|
-
const
|
|
155
|
-
|
|
112
|
+
function layoutPart(part) {
|
|
113
|
+
const parent = part.getContainer()?.parentNode;
|
|
114
|
+
if (parent == null) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
part.layout(Math.max(part.minimumWidth, Math.min(part.maximumWidth, parent.offsetWidth)), Math.max(part.minimumHeight, Math.min(part.maximumHeight, parent.offsetHeight)), 0, 0);
|
|
118
|
+
}
|
|
119
|
+
function renderPart(partContainer, part) {
|
|
156
120
|
partContainer.oncontextmenu = () => false;
|
|
157
|
-
part.create(partContainer);
|
|
158
121
|
function layout() {
|
|
159
|
-
|
|
122
|
+
layoutPart(part);
|
|
160
123
|
}
|
|
161
124
|
part.onDidVisibilityChange((visible) => {
|
|
162
125
|
if (visible) {
|
|
@@ -164,7 +127,13 @@ function renderPart(id, role, classes, part, container) {
|
|
|
164
127
|
}
|
|
165
128
|
});
|
|
166
129
|
layout();
|
|
167
|
-
|
|
130
|
+
}
|
|
131
|
+
function getPart(part) {
|
|
132
|
+
return StandaloneServices.get(ILayoutService).getPart(part);
|
|
133
|
+
}
|
|
134
|
+
function attachPart(part, container) {
|
|
135
|
+
container.append(part.getContainer());
|
|
136
|
+
const observer = new ResizeObserver(() => layoutPart(part));
|
|
168
137
|
observer.observe(container);
|
|
169
138
|
return {
|
|
170
139
|
dispose() {
|
|
@@ -173,37 +142,22 @@ function renderPart(id, role, classes, part, container) {
|
|
|
173
142
|
};
|
|
174
143
|
}
|
|
175
144
|
function renderActivitybarPar(container) {
|
|
176
|
-
|
|
177
|
-
paneCompositeSelectorParts.set(0 , activitybarPart);
|
|
178
|
-
activitybarPart['_register'](renderPart("workbench.parts.activitybar" , 'none', ['activitybar', 'left'], activitybarPart, container));
|
|
179
|
-
return activitybarPart;
|
|
145
|
+
return attachPart(getPart("workbench.parts.activitybar" ), container);
|
|
180
146
|
}
|
|
181
147
|
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;
|
|
148
|
+
return attachPart(getPart("workbench.parts.sidebar" ), container);
|
|
189
149
|
}
|
|
190
150
|
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;
|
|
151
|
+
return attachPart(getPart("workbench.parts.panel" ), container);
|
|
152
|
+
}
|
|
153
|
+
function renderAuxiliaryPart(container) {
|
|
154
|
+
return attachPart(getPart("workbench.parts.auxiliarybar" ), container);
|
|
199
155
|
}
|
|
200
156
|
function renderEditorPart(container) {
|
|
201
|
-
|
|
202
|
-
return renderPart("workbench.parts.editor" , 'main', ['editor'], editorPart, container);
|
|
157
|
+
return attachPart(getPart("workbench.parts.editor" ), container);
|
|
203
158
|
}
|
|
204
159
|
function renderStatusBarPart(container) {
|
|
205
|
-
|
|
206
|
-
return renderPart("workbench.parts.statusbar" , 'status', ['statusbar'], statusBarPart, container);
|
|
160
|
+
return attachPart(getPart("workbench.parts.statusbar" ), container);
|
|
207
161
|
}
|
|
208
162
|
function registerEditorPane(options) {
|
|
209
163
|
let CustomEditorPane = class CustomEditorPane extends EditorPane {
|
|
@@ -422,6 +376,33 @@ registerAssets({
|
|
|
422
376
|
'vs/workbench/contrib/webview/browser/pre/index-no-csp.html': () => changeUrlDomain(new URL('../assets/index-no-csp.html', import.meta.url).href, webviewIframeAlternateDomains),
|
|
423
377
|
'vs/workbench/contrib/webview/browser/pre/fake.html': () => changeUrlDomain(new URL('../assets/fake.html', import.meta.url).href, webviewIframeAlternateDomains)
|
|
424
378
|
});
|
|
379
|
+
registerServiceInitializePostParticipant(async (accessor) => {
|
|
380
|
+
const paneCompositePartService = accessor.get(IPaneCompositePartService);
|
|
381
|
+
const viewDescriptorService = accessor.get(IViewDescriptorService);
|
|
382
|
+
accessor.get(IStatusbarService);
|
|
383
|
+
paneCompositePartService.getPaneComposites(1 );
|
|
384
|
+
const layoutService = accessor.get(ILayoutService);
|
|
385
|
+
const invisibleContainer = document.createElement('div');
|
|
386
|
+
invisibleContainer.style.display = 'none';
|
|
387
|
+
document.body.append(invisibleContainer);
|
|
388
|
+
for (const { id, role, classes, options } of [
|
|
389
|
+
{ id: "workbench.parts.activitybar" , role: 'none', classes: ['activitybar', 'left'] },
|
|
390
|
+
{ id: "workbench.parts.sidebar" , role: 'none', classes: ['sidebar', 'left'] },
|
|
391
|
+
{ id: "workbench.parts.editor" , role: 'main', classes: ['editor'], options: { restorePreviousState: false } },
|
|
392
|
+
{ id: "workbench.parts.panel" , role: 'none', classes: ['panel', 'basepanel', positionToString(2 )] },
|
|
393
|
+
{ id: "workbench.parts.auxiliarybar" , role: 'none', classes: ['auxiliarybar', 'basepanel', 'right'] },
|
|
394
|
+
{ id: "workbench.parts.statusbar" , role: 'status', classes: ['statusbar'] }
|
|
395
|
+
]) {
|
|
396
|
+
const partContainer = createPart(id, role, classes);
|
|
397
|
+
const part = layoutService.getPart(id);
|
|
398
|
+
part.create(partContainer, options);
|
|
399
|
+
renderPart(partContainer, part);
|
|
400
|
+
invisibleContainer.append(partContainer);
|
|
401
|
+
}
|
|
402
|
+
await paneCompositePartService.openPaneComposite(viewDescriptorService.getDefaultViewContainer(0 )?.id, 0 );
|
|
403
|
+
await paneCompositePartService.openPaneComposite(viewDescriptorService.getDefaultViewContainer(1 )?.id, 1 );
|
|
404
|
+
await paneCompositePartService.openPaneComposite(viewDescriptorService.getDefaultViewContainer(2 )?.id, 2 );
|
|
405
|
+
});
|
|
425
406
|
function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains) {
|
|
426
407
|
if (_webviewIframeAlternateDomains != null) {
|
|
427
408
|
webviewIframeAlternateDomains = _webviewIframeAlternateDomains;
|
|
@@ -429,29 +410,33 @@ function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains)
|
|
|
429
410
|
return {
|
|
430
411
|
...getServiceOverride$1(),
|
|
431
412
|
...getServiceOverride$2(),
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
[(
|
|
437
|
-
[(
|
|
438
|
-
[(
|
|
439
|
-
[(
|
|
440
|
-
[(
|
|
441
|
-
[(
|
|
442
|
-
[(
|
|
443
|
-
[(
|
|
444
|
-
[(
|
|
445
|
-
[(
|
|
446
|
-
[(
|
|
447
|
-
[(
|
|
448
|
-
[(
|
|
449
|
-
[(
|
|
450
|
-
[(
|
|
451
|
-
[(
|
|
452
|
-
[(
|
|
453
|
-
[(
|
|
454
|
-
[(
|
|
413
|
+
...getServiceOverride$3({
|
|
414
|
+
isKeybindingConfigurationVisible: isEditorPartVisible,
|
|
415
|
+
shouldUseGlobalPicker: isEditorPartVisible
|
|
416
|
+
}),
|
|
417
|
+
[( IViewsService.toString())]: new SyncDescriptor(ViewsService, [], false),
|
|
418
|
+
[( IViewDescriptorService.toString())]: new SyncDescriptor(ViewDescriptorService, [], true),
|
|
419
|
+
[( IActivityService.toString())]: new SyncDescriptor(ActivityService, [], true),
|
|
420
|
+
[( IPaneCompositePartService.toString())]: new SyncDescriptor(PaneCompositeParts, [], true),
|
|
421
|
+
[( IHoverService.toString())]: new SyncDescriptor(HoverService, [], true),
|
|
422
|
+
[( IExplorerService.toString())]: new SyncDescriptor(ExplorerService, [], true),
|
|
423
|
+
[( ICodeEditorService.toString())]: new SyncDescriptor(CodeEditorService, [], true),
|
|
424
|
+
[( ITextEditorService.toString())]: new SyncDescriptor(TextEditorService, [], false),
|
|
425
|
+
[( IEditorGroupsService.toString())]: new SyncDescriptor(EditorPart, [], false),
|
|
426
|
+
[( IStatusbarService.toString())]: new SyncDescriptor(StatusbarPart, [], false),
|
|
427
|
+
[( IEditorDropService.toString())]: new SyncDescriptor(EditorDropService, [], true),
|
|
428
|
+
[( IEditorService.toString())]: new SyncDescriptor(MonacoEditorService, [openEditorFallback], false),
|
|
429
|
+
[( IEditorResolverService.toString())]: new SyncDescriptor(EditorResolverService, [], false),
|
|
430
|
+
[( IBreadcrumbsService.toString())]: new SyncDescriptor(BreadcrumbsService, [], true),
|
|
431
|
+
[( IContextViewService.toString())]: new SyncDescriptor(ContextViewService, [], true),
|
|
432
|
+
[( IUntitledTextEditorService.toString())]: new SyncDescriptor(UntitledTextEditorService, [], true),
|
|
433
|
+
[( ISemanticSimilarityService.toString())]: new SyncDescriptor(SemanticSimilarityService, [], true),
|
|
434
|
+
[( IHistoryService.toString())]: new SyncDescriptor(HistoryService, [], false),
|
|
435
|
+
[( IOutlineService.toString())]: new SyncDescriptor(OutlineService, [], true),
|
|
436
|
+
[( ICustomEditorService.toString())]: new SyncDescriptor(CustomEditorService, [], true),
|
|
437
|
+
[( IWebviewService.toString())]: new SyncDescriptor(WebviewService, [], true),
|
|
438
|
+
[( IWebviewViewService.toString())]: new SyncDescriptor(WebviewViewService, [], true),
|
|
439
|
+
[( IWebviewWorkbenchService.toString())]: new SyncDescriptor(WebviewEditorService, [], true)
|
|
455
440
|
};
|
|
456
441
|
}
|
|
457
|
-
export { ActivityService,
|
|
442
|
+
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
|
@@ -11,6 +11,7 @@ import getServiceOverride from './service-override/layout.js';
|
|
|
11
11
|
import getServiceOverride$1 from './service-override/environment.js';
|
|
12
12
|
import getServiceOverride$2 from './service-override/extensions.js';
|
|
13
13
|
import getServiceOverride$3 from './service-override/files.js';
|
|
14
|
+
import getServiceOverride$4 from './service-override/quickaccess.js';
|
|
14
15
|
export { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
15
16
|
export { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
16
17
|
export { INotificationService, NeverShowAgainScope, NoOpNotification, NoOpProgress, NotificationPriority, NotificationsFilter } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
@@ -67,23 +68,38 @@ export { IHoverService } from './vscode/vs/workbench/services/hover/browser/hove
|
|
|
67
68
|
export { IExplorerService } from './vscode/vs/workbench/contrib/files/browser/files.js';
|
|
68
69
|
export { IStatusbarService } from './vscode/vs/workbench/services/statusbar/browser/statusbar.js';
|
|
69
70
|
export { IDialogService } from './vscode/vs/platform/dialogs/common/dialogs.js';
|
|
71
|
+
const serviceInitializePreParticipants = [];
|
|
70
72
|
const serviceInitializeParticipants = [];
|
|
73
|
+
const serviceInitializePostParticipants = [];
|
|
74
|
+
function registerServiceInitializePreParticipant(participant) {
|
|
75
|
+
serviceInitializePreParticipants.push(participant);
|
|
76
|
+
}
|
|
71
77
|
function registerServiceInitializeParticipant(participant) {
|
|
72
78
|
serviceInitializeParticipants.push(participant);
|
|
73
79
|
}
|
|
80
|
+
function registerServiceInitializePostParticipant(participant) {
|
|
81
|
+
serviceInitializePostParticipants.push(participant);
|
|
82
|
+
}
|
|
74
83
|
async function initServices(overrides) {
|
|
75
84
|
const instantiationService = StandaloneServices.initialize({
|
|
76
85
|
...getServiceOverride(),
|
|
77
86
|
...getServiceOverride$1(),
|
|
78
87
|
...getServiceOverride$2(),
|
|
79
88
|
...getServiceOverride$3(),
|
|
89
|
+
...getServiceOverride$4(),
|
|
80
90
|
...overrides
|
|
81
91
|
});
|
|
92
|
+
await instantiationService.invokeFunction(async (accessor) => {
|
|
93
|
+
await Promise.all(( serviceInitializePreParticipants.map(participant => participant(accessor))));
|
|
94
|
+
});
|
|
82
95
|
await instantiationService.invokeFunction(async (accessor) => {
|
|
83
96
|
const lifecycleService = accessor.get(ILifecycleService);
|
|
84
97
|
await Promise.all(( serviceInitializeParticipants.map(participant => participant(accessor))));
|
|
85
98
|
lifecycleService.phase = 2 ;
|
|
86
99
|
});
|
|
100
|
+
await instantiationService.invokeFunction(async (accessor) => {
|
|
101
|
+
await Promise.all(( serviceInitializePostParticipants.map(participant => participant(accessor))));
|
|
102
|
+
});
|
|
87
103
|
return instantiationService;
|
|
88
104
|
}
|
|
89
105
|
const renderWorkbenchEmitter = new Emitter();
|
|
@@ -109,4 +125,4 @@ async function initialize(overrides) {
|
|
|
109
125
|
eventuallyPhaseScheduler.schedule();
|
|
110
126
|
});
|
|
111
127
|
}
|
|
112
|
-
export { getService, initialize, onRenderWorkbench, registerServiceInitializeParticipant };
|
|
128
|
+
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 };
|