@codingame/monaco-vscode-api 2.1.3 → 2.2.0-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.
Files changed (191) hide show
  1. package/README.md +10 -0
  2. package/contributions.js +1 -0
  3. package/extensions.d.ts +6 -3
  4. package/extensions.js +18 -7
  5. package/lifecycle.js +11 -3
  6. package/missing-services.js +55 -10
  7. package/monaco.js +7 -3
  8. package/package.json +8 -8
  9. package/service-override/tools/editor.js +3 -1
  10. package/service-override/tools/views.d.ts +98 -0
  11. package/service-override/tools/views.js +249 -0
  12. package/services.d.ts +4 -2
  13. package/services.js +11 -9
  14. package/vscode/src/vs/base/browser/deviceAccess.js +60 -0
  15. package/vscode/src/vs/base/browser/dom.js +18 -1
  16. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +178 -0
  17. package/vscode/src/vs/base/browser/ui/grid/grid.js +492 -0
  18. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +4 -0
  19. package/vscode/src/vs/base/browser/ui/grid/gridview.d.ts +1 -0
  20. package/vscode/src/vs/base/browser/ui/grid/gridview.js +1109 -0
  21. package/vscode/src/vs/base/browser/ui/sash/sash.js +9 -1
  22. package/vscode/src/vs/base/browser/ui/splitview/splitview.d.ts +348 -1
  23. package/vscode/src/vs/base/common/async.js +46 -2
  24. package/vscode/src/vs/base/common/codicons.d.ts +579 -0
  25. package/vscode/src/vs/base/common/event.js +11 -2
  26. package/vscode/src/vs/base/common/keybindingParser.js +87 -0
  27. package/vscode/src/vs/base/common/network.js +1 -2
  28. package/vscode/src/vs/base/common/observableInternal/utils.js +1 -1
  29. package/vscode/src/vs/base/common/platform.js +2 -1
  30. package/vscode/src/vs/base/common/scrollable.d.ts +28 -0
  31. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/colors.js +17 -0
  32. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/diffEditorItemTemplate.js +214 -0
  33. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorViewModel.js +84 -0
  34. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidget.js +54 -0
  35. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/multiDiffEditorWidgetImpl.js +324 -0
  36. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/objectPool.js +46 -0
  37. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/style.css.js +4 -0
  38. package/vscode/src/vs/editor/browser/widget/multiDiffEditorWidget/utils.js +11 -0
  39. package/vscode/src/vs/platform/keyboardLayout/common/keyboardLayout.js +61 -1
  40. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +10 -0
  41. package/vscode/src/vs/platform/log/browser/log.js +24 -0
  42. package/vscode/src/vs/platform/product/common/product.js +1 -2
  43. package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +772 -0
  44. package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +551 -0
  45. package/vscode/src/vs/platform/webview/common/mimeTypes.js +22 -0
  46. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +62 -0
  47. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +788 -0
  48. package/vscode/src/vs/workbench/browser/actions/listCommands.js +763 -0
  49. package/vscode/src/vs/workbench/browser/layout.d.ts +26 -0
  50. package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
  51. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +610 -0
  52. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +4 -0
  53. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +4 -0
  54. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +148 -0
  55. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +4 -0
  56. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +603 -0
  57. package/vscode/src/vs/workbench/browser/parts/compositePart.js +333 -0
  58. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +221 -0
  59. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +1406 -0
  60. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +184 -0
  61. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +509 -0
  62. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +112 -0
  63. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +1018 -0
  64. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +389 -0
  65. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +4 -0
  66. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +4 -0
  67. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +4 -0
  68. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsActions.css.js +4 -0
  69. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css.js +4 -0
  70. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsList.css.js +4 -0
  71. package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css.js +4 -0
  72. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +213 -0
  73. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +73 -0
  74. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +307 -0
  75. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +226 -0
  76. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +218 -0
  77. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +433 -0
  78. package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +436 -0
  79. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +643 -0
  80. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +377 -0
  81. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +66 -0
  82. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +144 -0
  83. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +4 -0
  84. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +220 -0
  85. package/vscode/src/vs/workbench/browser/window.js +239 -5
  86. package/vscode/src/vs/workbench/common/configuration.js +11 -1
  87. package/vscode/src/vs/workbench/common/theme.js +3 -3
  88. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +298 -0
  89. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +363 -0
  90. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +133 -0
  91. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +4 -0
  92. package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +90 -0
  93. package/vscode/src/vs/workbench/contrib/comments/browser/commentMenus.js +43 -0
  94. package/vscode/src/vs/workbench/contrib/comments/browser/commentService.js +317 -2
  95. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadRangeDecorator.js +107 -0
  96. package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +395 -0
  97. package/vscode/src/vs/workbench/contrib/comments/browser/comments.js +3 -0
  98. package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +1277 -0
  99. package/vscode/src/vs/workbench/contrib/comments/browser/commentsFilterOptions.js +17 -0
  100. package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +123 -0
  101. package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +342 -0
  102. package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +451 -0
  103. package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +176 -0
  104. package/vscode/src/vs/workbench/contrib/comments/browser/media/panel.css.js +4 -0
  105. package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +35 -0
  106. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +16 -0
  107. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +143 -0
  108. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +212 -0
  109. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +4 -0
  110. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +76 -0
  111. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +61 -0
  112. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +117 -0
  113. package/vscode/src/vs/workbench/contrib/editSessions/common/editSessions.js +62 -0
  114. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +5 -0
  115. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +77 -0
  116. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +72 -0
  117. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +254 -0
  118. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +97 -0
  119. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +442 -0
  120. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +430 -0
  121. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +784 -0
  122. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +487 -0
  123. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +521 -0
  124. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +150 -0
  125. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +61 -0
  126. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveDocumentService.js +25 -1
  127. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +178 -0
  128. package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveHistoryService.js +49 -0
  129. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +408 -0
  130. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +4 -0
  131. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +145 -0
  132. package/vscode/src/vs/workbench/contrib/mappedEdits/common/mappedEdits.contribution.js +22 -0
  133. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +691 -0
  134. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +238 -0
  135. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +76 -0
  136. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +40 -0
  137. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +69 -0
  138. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +346 -0
  139. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +96 -0
  140. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +144 -0
  141. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +103 -0
  142. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +399 -0
  143. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +195 -0
  144. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +39 -0
  145. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +126 -0
  146. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +4 -0
  147. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +611 -0
  148. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +156 -0
  149. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +262 -0
  150. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +171 -0
  151. package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +41 -0
  152. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +317 -0
  153. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/notebookVisibleCellObserver.js +56 -0
  154. package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +315 -0
  155. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +193 -0
  156. package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +2 -1
  157. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +37 -0
  158. package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +39 -0
  159. package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +138 -2
  160. package/vscode/src/vs/workbench/contrib/tags/browser/workspaceTagsService.js +12 -0
  161. package/vscode/src/vs/workbench/contrib/tags/common/workspaceTags.js +3 -0
  162. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +4 -0
  163. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +281 -0
  164. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +358 -0
  165. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +131 -0
  166. package/vscode/src/vs/workbench/contrib/update/common/update.js +2 -0
  167. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +288 -0
  168. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +94 -0
  169. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +86 -0
  170. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +77 -0
  171. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +646 -0
  172. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +63 -0
  173. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +57 -0
  174. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +140 -0
  175. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +119 -0
  176. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +67 -0
  177. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +233 -0
  178. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +143 -0
  179. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +0 -3
  180. package/vscode/src/vs/workbench/services/driver/browser/driver.js +184 -0
  181. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +668 -0
  182. package/vscode/src/vs/workbench/services/history/browser/historyService.js +1482 -0
  183. package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +17 -1
  184. package/vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js +8 -1
  185. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +4 -0
  186. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +521 -0
  187. package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +102 -0
  188. package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +296 -0
  189. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +99 -0
  190. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +711 -0
  191. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +596 -0
@@ -0,0 +1,377 @@
1
+ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import './media/paneCompositePart.css.js';
3
+ import { Event } from '../../../base/common/event.js';
4
+ import { IInstantiationService } from '../../../platform/instantiation/common/instantiation.js';
5
+ import { Extensions } from '../panecomposite.js';
6
+ import { IViewDescriptorService } from '../../common/views.js';
7
+ import { MutableDisposable, DisposableStore } from '../../../base/common/lifecycle.js';
8
+ import { IWorkbenchLayoutService } from '../../services/layout/browser/layoutService.js';
9
+ import { CompositePart } from './compositePart.js';
10
+ import { PaneCompositeBar } from './paneCompositeBar.js';
11
+ import { trackFocus, EventHelper, addDisposableListener, $, prepend, Dimension, getWindow, EventType } from '../../../base/browser/dom.js';
12
+ import { Registry } from '../../../platform/registry/common/platform.js';
13
+ import { INotificationService } from '../../../platform/notification/common/notification.js';
14
+ import { IStorageService } from '../../../platform/storage/common/storage.js';
15
+ import { IContextMenuService } from '../../../platform/contextview/browser/contextView.js';
16
+ import { IKeybindingService } from '../../../platform/keybinding/common/keybinding.js';
17
+ import { IThemeService } from '../../../platform/theme/common/themeService.js';
18
+ import { IContextKeyService } from '../../../platform/contextkey/common/contextkey.js';
19
+ import { IExtensionService } from '../../services/extensions/common/extensions.js';
20
+ import { localizeWithPath } from '../../../nls.js';
21
+ import { CompositeDragAndDropObserver, toggleDropEffect } from '../dnd.js';
22
+ import { EDITOR_DRAG_AND_DROP_BACKGROUND } from '../../common/theme.js';
23
+ import { ToolBar } from '../../../base/browser/ui/toolbar/toolbar.js';
24
+ import { CompositeMenuActions } from '../actions.js';
25
+ import { MenuId, IMenuService } from '../../../platform/actions/common/actions.js';
26
+ import { prepareActions } from '../../../base/browser/ui/actionbar/actionbar.js';
27
+ import { Gesture, EventType as EventType$1 } from '../../../base/browser/touch.js';
28
+ import { StandardMouseEvent } from '../../../base/browser/mouseEvent.js';
29
+ import { SubmenuAction } from '../../../base/common/actions.js';
30
+ import { ViewsSubMenu } from './views/viewPaneContainer.js';
31
+ import { createAndFillInActionBarActions } from '../../../platform/actions/browser/menuEntryActionViewItem.js';
32
+ var AbstractPaneCompositePart_1;
33
+ let AbstractPaneCompositePart = class AbstractPaneCompositePart extends CompositePart {
34
+ static { AbstractPaneCompositePart_1 = this; }
35
+ static { this.MIN_COMPOSITE_BAR_WIDTH = 50; }
36
+ get snap() {
37
+ return this.layoutService.isVisible(this.partId) || !!this.paneCompositeBar.value?.getVisiblePaneCompositeIds().length;
38
+ }
39
+ get onDidPaneCompositeOpen() { return ( Event.map(this.onDidCompositeOpen.event, compositeEvent => compositeEvent.composite)); }
40
+ constructor(partId, partOptions, activePaneCompositeSettingsKey, activePaneContextKey, paneFocusContextKey, nameForTelemetry, compositeCSSClass, titleForegroundColor, notificationService, storageService, contextMenuService, layoutService, keybindingService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, menuService) {
41
+ let location = 0 ;
42
+ let registryId = Extensions.Viewlets;
43
+ let globalActionsMenuId = MenuId.SidebarTitle;
44
+ if (partId === "workbench.parts.panel" ) {
45
+ location = 1 ;
46
+ registryId = Extensions.Panels;
47
+ globalActionsMenuId = MenuId.PanelTitle;
48
+ }
49
+ else if (partId === "workbench.parts.auxiliarybar" ) {
50
+ location = 2 ;
51
+ registryId = Extensions.Auxiliary;
52
+ globalActionsMenuId = MenuId.AuxiliaryBarTitle;
53
+ }
54
+ super(notificationService, storageService, contextMenuService, layoutService, keybindingService, instantiationService, themeService, ( Registry.as(registryId)), activePaneCompositeSettingsKey, viewDescriptorService.getDefaultViewContainer(location)?.id || '', nameForTelemetry, compositeCSSClass, titleForegroundColor, partId, partOptions);
55
+ this.partId = partId;
56
+ this.activePaneContextKey = activePaneContextKey;
57
+ this.paneFocusContextKey = paneFocusContextKey;
58
+ this.viewDescriptorService = viewDescriptorService;
59
+ this.contextKeyService = contextKeyService;
60
+ this.extensionService = extensionService;
61
+ this.menuService = menuService;
62
+ this.onDidPaneCompositeClose = this.onDidCompositeClose.event;
63
+ this.paneCompositeBar = this._register(( new MutableDisposable()));
64
+ this.blockOpening = false;
65
+ this.location = location;
66
+ this.globalActions = this._register(this.instantiationService.createInstance(CompositeMenuActions, globalActionsMenuId, undefined, undefined));
67
+ this.registerListeners();
68
+ }
69
+ registerListeners() {
70
+ this._register(this.onDidPaneCompositeOpen(composite => this.onDidOpen(composite)));
71
+ this._register(this.onDidPaneCompositeClose(this.onDidClose, this));
72
+ this._register(this.globalActions.onDidChange(() => this.updateGlobalToolbarActions()));
73
+ this._register(this.registry.onDidDeregister(async (viewletDescriptor) => {
74
+ const activeContainers = this.viewDescriptorService.getViewContainersByLocation(this.location)
75
+ .filter(container => this.viewDescriptorService.getViewContainerModel(container).activeViewDescriptors.length > 0);
76
+ if (activeContainers.length) {
77
+ if (this.getActiveComposite()?.getId() === viewletDescriptor.id) {
78
+ const defaultViewletId = this.viewDescriptorService.getDefaultViewContainer(this.location)?.id;
79
+ const containerToOpen = activeContainers.filter(c => c.id === defaultViewletId)[0] || activeContainers[0];
80
+ await this.openPaneComposite(containerToOpen.id);
81
+ }
82
+ }
83
+ else {
84
+ this.layoutService.setPartHidden(true, this.partId);
85
+ }
86
+ this.removeComposite(viewletDescriptor.id);
87
+ }));
88
+ this._register(this.extensionService.onDidRegisterExtensions(() => {
89
+ this.layoutCompositeBar();
90
+ }));
91
+ }
92
+ onDidOpen(composite) {
93
+ this.activePaneContextKey.set(composite.getId());
94
+ }
95
+ onDidClose(composite) {
96
+ const id = composite.getId();
97
+ if (this.activePaneContextKey.get() === id) {
98
+ this.activePaneContextKey.reset();
99
+ }
100
+ }
101
+ showComposite(composite) {
102
+ super.showComposite(composite);
103
+ this.layoutCompositeBar();
104
+ this.layoutEmptyMessage();
105
+ }
106
+ hideActiveComposite() {
107
+ const composite = super.hideActiveComposite();
108
+ this.layoutCompositeBar();
109
+ this.layoutEmptyMessage();
110
+ return composite;
111
+ }
112
+ create(parent) {
113
+ this.element = parent;
114
+ this.element.classList.add('pane-composite-part');
115
+ super.create(parent);
116
+ const contentArea = this.getContentArea();
117
+ if (contentArea) {
118
+ this.createEmptyPaneMessage(contentArea);
119
+ }
120
+ const focusTracker = this._register(trackFocus(parent));
121
+ this._register(focusTracker.onDidFocus(() => this.paneFocusContextKey.set(true)));
122
+ this._register(focusTracker.onDidBlur(() => this.paneFocusContextKey.set(false)));
123
+ }
124
+ createEmptyPaneMessage(parent) {
125
+ this.emptyPaneMessageElement = document.createElement('div');
126
+ this.emptyPaneMessageElement.classList.add('empty-pane-message-area');
127
+ const messageElement = document.createElement('div');
128
+ messageElement.classList.add('empty-pane-message');
129
+ messageElement.innerText = ( localizeWithPath(
130
+ 'vs/workbench/browser/parts/paneCompositePart',
131
+ 'pane.emptyMessage',
132
+ "Drag a view here to display."
133
+ ));
134
+ this.emptyPaneMessageElement.appendChild(messageElement);
135
+ parent.appendChild(this.emptyPaneMessageElement);
136
+ this._register(CompositeDragAndDropObserver.INSTANCE.registerTarget(this.emptyPaneMessageElement, {
137
+ onDragOver: (e) => {
138
+ EventHelper.stop(e.eventData, true);
139
+ if (this.paneCompositeBar.value) {
140
+ const validDropTarget = this.paneCompositeBar.value.dndHandler.onDragEnter(e.dragAndDropData, undefined, e.eventData);
141
+ toggleDropEffect(e.eventData.dataTransfer, 'move', validDropTarget);
142
+ }
143
+ },
144
+ onDragEnter: (e) => {
145
+ EventHelper.stop(e.eventData, true);
146
+ if (this.paneCompositeBar.value) {
147
+ const validDropTarget = this.paneCompositeBar.value.dndHandler.onDragEnter(e.dragAndDropData, undefined, e.eventData);
148
+ this.emptyPaneMessageElement.style.backgroundColor = validDropTarget ? this.theme.getColor(EDITOR_DRAG_AND_DROP_BACKGROUND)?.toString() || '' : '';
149
+ }
150
+ },
151
+ onDragLeave: (e) => {
152
+ EventHelper.stop(e.eventData, true);
153
+ this.emptyPaneMessageElement.style.backgroundColor = '';
154
+ },
155
+ onDragEnd: (e) => {
156
+ EventHelper.stop(e.eventData, true);
157
+ this.emptyPaneMessageElement.style.backgroundColor = '';
158
+ },
159
+ onDrop: (e) => {
160
+ EventHelper.stop(e.eventData, true);
161
+ this.emptyPaneMessageElement.style.backgroundColor = '';
162
+ if (this.paneCompositeBar.value) {
163
+ this.paneCompositeBar.value.dndHandler.drop(e.dragAndDropData, undefined, e.eventData);
164
+ }
165
+ },
166
+ }));
167
+ }
168
+ createTitleArea(parent) {
169
+ const titleArea = super.createTitleArea(parent);
170
+ this._register(addDisposableListener(titleArea, EventType.CONTEXT_MENU, e => {
171
+ this.onTitleAreaContextMenu(( new StandardMouseEvent(getWindow(titleArea), e)));
172
+ }));
173
+ this._register(Gesture.addTarget(titleArea));
174
+ this._register(addDisposableListener(titleArea, EventType$1.Contextmenu, e => {
175
+ this.onTitleAreaContextMenu(( new StandardMouseEvent(getWindow(titleArea), e)));
176
+ }));
177
+ const globalTitleActionsContainer = titleArea.appendChild($('.global-actions'));
178
+ this.globalToolBar = this._register(( new ToolBar(globalTitleActionsContainer, this.contextMenuService, {
179
+ actionViewItemProvider: action => this.actionViewItemProvider(action),
180
+ orientation: 0 ,
181
+ getKeyBinding: action => this.keybindingService.lookupKeybinding(action.id),
182
+ anchorAlignmentProvider: () => this.getTitleAreaDropDownAnchorAlignment(),
183
+ toggleMenuTitle: ( localizeWithPath(
184
+ 'vs/workbench/browser/parts/paneCompositePart',
185
+ 'moreActions',
186
+ "More Actions..."
187
+ ))
188
+ })));
189
+ this.updateGlobalToolbarActions();
190
+ return titleArea;
191
+ }
192
+ createTitleLabel(parent) {
193
+ this.titleContainer = parent;
194
+ const titleLabel = super.createTitleLabel(parent);
195
+ this.titleLabelElement.draggable = true;
196
+ const draggedItemProvider = () => {
197
+ const activeViewlet = this.getActivePaneComposite();
198
+ return { type: 'composite', id: activeViewlet.getId() };
199
+ };
200
+ this._register(CompositeDragAndDropObserver.INSTANCE.registerDraggable(this.titleLabelElement, draggedItemProvider, {}));
201
+ this.updateTitleArea();
202
+ return titleLabel;
203
+ }
204
+ updateTitleArea() {
205
+ if (!this.titleContainer) {
206
+ return;
207
+ }
208
+ if (this.shouldShowCompositeBar()) {
209
+ if (!this.paneCompositeBar.value) {
210
+ this.titleContainer.classList.add('has-composite-bar');
211
+ this.paneCompositeBarContainer = prepend(this.titleContainer, $('.composite-bar-container'));
212
+ this.paneCompositeBar.value = this.createCompisteBar();
213
+ this.paneCompositeBar.value.create(this.paneCompositeBarContainer);
214
+ }
215
+ }
216
+ else {
217
+ this.titleContainer.classList.remove('has-composite-bar');
218
+ this.paneCompositeBarContainer?.remove();
219
+ this.paneCompositeBarContainer = undefined;
220
+ this.paneCompositeBar.clear();
221
+ }
222
+ }
223
+ createCompisteBar() {
224
+ return this.instantiationService.createInstance(PaneCompositeBar, this.getCompositeBarOptions(), this.partId, this);
225
+ }
226
+ onTitleAreaUpdate(compositeId) {
227
+ super.onTitleAreaUpdate(compositeId);
228
+ this.layoutCompositeBar();
229
+ }
230
+ async openPaneComposite(id, focus) {
231
+ if (typeof id === 'string' && this.getPaneComposite(id)) {
232
+ return this.doOpenPaneComposite(id, focus);
233
+ }
234
+ await this.extensionService.whenInstalledExtensionsRegistered();
235
+ if (typeof id === 'string' && this.getPaneComposite(id)) {
236
+ return this.doOpenPaneComposite(id, focus);
237
+ }
238
+ return undefined;
239
+ }
240
+ doOpenPaneComposite(id, focus) {
241
+ if (this.blockOpening) {
242
+ return undefined;
243
+ }
244
+ if (!this.layoutService.isVisible(this.partId)) {
245
+ try {
246
+ this.blockOpening = true;
247
+ this.layoutService.setPartHidden(false, this.partId);
248
+ }
249
+ finally {
250
+ this.blockOpening = false;
251
+ }
252
+ }
253
+ return this.openComposite(id, focus);
254
+ }
255
+ getPaneComposite(id) {
256
+ return this.registry.getPaneComposite(id);
257
+ }
258
+ getPaneComposites() {
259
+ return this.registry.getPaneComposites()
260
+ .sort((v1, v2) => {
261
+ if (typeof v1.order !== 'number') {
262
+ return 1;
263
+ }
264
+ if (typeof v2.order !== 'number') {
265
+ return -1;
266
+ }
267
+ return v1.order - v2.order;
268
+ });
269
+ }
270
+ getPinnedPaneCompositeIds() {
271
+ return this.paneCompositeBar.value?.getPinnedPaneCompositeIds() ?? [];
272
+ }
273
+ getVisiblePaneCompositeIds() {
274
+ return this.paneCompositeBar.value?.getVisiblePaneCompositeIds() ?? [];
275
+ }
276
+ getActivePaneComposite() {
277
+ return this.getActiveComposite();
278
+ }
279
+ getLastActivePaneCompositeId() {
280
+ return this.getLastActiveCompositeId();
281
+ }
282
+ hideActivePaneComposite() {
283
+ if (this.layoutService.isVisible(this.partId)) {
284
+ this.layoutService.setPartHidden(true, this.partId);
285
+ }
286
+ this.hideActiveComposite();
287
+ }
288
+ focusComositeBar() {
289
+ this.paneCompositeBar.value?.focus();
290
+ }
291
+ layout(width, height, top, left) {
292
+ if (!this.layoutService.isVisible(this.partId)) {
293
+ return;
294
+ }
295
+ this.contentDimension = ( new Dimension(width, height));
296
+ super.layout(this.contentDimension.width, this.contentDimension.height, top, left);
297
+ this.layoutCompositeBar();
298
+ this.layoutEmptyMessage();
299
+ }
300
+ layoutCompositeBar() {
301
+ if (this.contentDimension && this.dimension && this.paneCompositeBar.value) {
302
+ let availableWidth = this.contentDimension.width - 16;
303
+ if (this.toolBar) {
304
+ availableWidth = Math.max(AbstractPaneCompositePart_1.MIN_COMPOSITE_BAR_WIDTH, availableWidth - this.getToolbarWidth());
305
+ }
306
+ this.paneCompositeBar.value.layout(availableWidth, this.dimension.height);
307
+ }
308
+ }
309
+ layoutEmptyMessage() {
310
+ this.emptyPaneMessageElement?.classList.toggle('visible', !this.getActiveComposite());
311
+ }
312
+ updateGlobalToolbarActions() {
313
+ const primaryActions = this.globalActions.getPrimaryActions();
314
+ const secondaryActions = this.globalActions.getSecondaryActions();
315
+ this.globalToolBar?.setActions(prepareActions(primaryActions), prepareActions(secondaryActions));
316
+ }
317
+ getToolbarWidth() {
318
+ const activePane = this.getActivePaneComposite();
319
+ if (!activePane || !this.toolBar) {
320
+ return 0;
321
+ }
322
+ return this.toolBar.getItemsWidth() + 5 + (this.globalToolBar?.getItemsWidth() ?? 0);
323
+ }
324
+ onTitleAreaContextMenu(event) {
325
+ if (this.shouldShowCompositeBar() && this.paneCompositeBar.value) {
326
+ const actions = [...this.paneCompositeBar.value.getContextMenuActions()];
327
+ if (actions.length) {
328
+ this.contextMenuService.showContextMenu({
329
+ getAnchor: () => event,
330
+ getActions: () => actions,
331
+ skipTelemetry: true
332
+ });
333
+ }
334
+ }
335
+ else {
336
+ const activePaneComposite = this.getActivePaneComposite();
337
+ const activePaneCompositeActions = activePaneComposite ? activePaneComposite.getContextMenuActions() : [];
338
+ if (activePaneCompositeActions.length) {
339
+ this.contextMenuService.showContextMenu({
340
+ getAnchor: () => event,
341
+ getActions: () => activePaneCompositeActions,
342
+ getActionViewItem: action => this.actionViewItemProvider(action),
343
+ actionRunner: activePaneComposite.getActionRunner(),
344
+ skipTelemetry: true
345
+ });
346
+ }
347
+ }
348
+ }
349
+ getViewsSubmenuAction() {
350
+ const viewPaneContainer = this.getActivePaneComposite()?.getViewPaneContainer();
351
+ if (viewPaneContainer) {
352
+ const disposables = ( new DisposableStore());
353
+ const viewsActions = [];
354
+ const scopedContextKeyService = disposables.add(this.contextKeyService.createScoped(this.element));
355
+ scopedContextKeyService.createKey('viewContainer', viewPaneContainer.viewContainer.id);
356
+ const menu = disposables.add(this.menuService.createMenu(ViewsSubMenu, scopedContextKeyService));
357
+ createAndFillInActionBarActions(menu, { shouldForwardArgs: true, renderShortTitle: true }, { primary: viewsActions, secondary: [] }, () => true);
358
+ disposables.dispose();
359
+ return viewsActions.length > 1 && ( viewsActions.some(a => a.enabled)) ? ( new SubmenuAction('views', ( localizeWithPath('vs/workbench/browser/parts/paneCompositePart', 'views', "Views")), viewsActions)) : undefined;
360
+ }
361
+ return undefined;
362
+ }
363
+ };
364
+ AbstractPaneCompositePart = AbstractPaneCompositePart_1 = ( __decorate([
365
+ ( __param(8, INotificationService)),
366
+ ( __param(9, IStorageService)),
367
+ ( __param(10, IContextMenuService)),
368
+ ( __param(11, IWorkbenchLayoutService)),
369
+ ( __param(12, IKeybindingService)),
370
+ ( __param(13, IInstantiationService)),
371
+ ( __param(14, IThemeService)),
372
+ ( __param(15, IViewDescriptorService)),
373
+ ( __param(16, IContextKeyService)),
374
+ ( __param(17, IExtensionService)),
375
+ ( __param(18, IMenuService))
376
+ ], AbstractPaneCompositePart));
377
+ export { AbstractPaneCompositePart };
@@ -0,0 +1,66 @@
1
+ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
2
+ import { Event } from '../../../base/common/event.js';
3
+ import { assertIsDefined } from '../../../base/common/types.js';
4
+ import { IInstantiationService } from '../../../platform/instantiation/common/instantiation.js';
5
+ import { AuxiliaryBarPart } from './auxiliarybar/auxiliaryBarPart.js';
6
+ import { PanelPart } from './panel/panelPart.js';
7
+ import { SidebarPart } from './sidebar/sidebarPart.js';
8
+ import { ViewContainerLocations } from '../../common/views.js';
9
+ import { Disposable, DisposableStore } from '../../../base/common/lifecycle.js';
10
+ let PaneCompositePartService = class PaneCompositePartService extends Disposable {
11
+ constructor(instantiationService) {
12
+ super();
13
+ this.paneCompositeParts = ( new Map());
14
+ const panelPart = instantiationService.createInstance(PanelPart);
15
+ const sideBarPart = instantiationService.createInstance(SidebarPart);
16
+ const auxiliaryBarPart = instantiationService.createInstance(AuxiliaryBarPart);
17
+ this.paneCompositeParts.set(1 , panelPart);
18
+ this.paneCompositeParts.set(0 , sideBarPart);
19
+ this.paneCompositeParts.set(2 , auxiliaryBarPart);
20
+ const eventDisposables = this._register(( new DisposableStore()));
21
+ this.onDidPaneCompositeOpen = Event.any(...( ViewContainerLocations.map(loc => ( Event.map(
22
+ this.paneCompositeParts.get(loc).onDidPaneCompositeOpen,
23
+ composite => { return { composite, viewContainerLocation: loc }; },
24
+ eventDisposables
25
+ )))));
26
+ this.onDidPaneCompositeClose = Event.any(...( ViewContainerLocations.map(loc => ( Event.map(
27
+ this.paneCompositeParts.get(loc).onDidPaneCompositeClose,
28
+ composite => { return { composite, viewContainerLocation: loc }; },
29
+ eventDisposables
30
+ )))));
31
+ }
32
+ openPaneComposite(id, viewContainerLocation, focus) {
33
+ return this.getPartByLocation(viewContainerLocation).openPaneComposite(id, focus);
34
+ }
35
+ getActivePaneComposite(viewContainerLocation) {
36
+ return this.getPartByLocation(viewContainerLocation).getActivePaneComposite();
37
+ }
38
+ getPaneComposite(id, viewContainerLocation) {
39
+ return this.getPartByLocation(viewContainerLocation).getPaneComposite(id);
40
+ }
41
+ getPaneComposites(viewContainerLocation) {
42
+ return this.getPartByLocation(viewContainerLocation).getPaneComposites();
43
+ }
44
+ getPinnedPaneCompositeIds(viewContainerLocation) {
45
+ return this.getPartByLocation(viewContainerLocation).getPinnedPaneCompositeIds();
46
+ }
47
+ getVisiblePaneCompositeIds(viewContainerLocation) {
48
+ return this.getPartByLocation(viewContainerLocation).getVisiblePaneCompositeIds();
49
+ }
50
+ getProgressIndicator(id, viewContainerLocation) {
51
+ return this.getPartByLocation(viewContainerLocation).getProgressIndicator(id);
52
+ }
53
+ hideActivePaneComposite(viewContainerLocation) {
54
+ this.getPartByLocation(viewContainerLocation).hideActivePaneComposite();
55
+ }
56
+ getLastActivePaneCompositeId(viewContainerLocation) {
57
+ return this.getPartByLocation(viewContainerLocation).getLastActivePaneCompositeId();
58
+ }
59
+ getPartByLocation(viewContainerLocation) {
60
+ return assertIsDefined(this.paneCompositeParts.get(viewContainerLocation));
61
+ }
62
+ };
63
+ PaneCompositePartService = ( __decorate([
64
+ ( __param(0, IInstantiationService))
65
+ ], PaneCompositePartService));
66
+ export { PaneCompositePartService };
@@ -0,0 +1,144 @@
1
+ import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
2
+ import './media/panelpart.css.js';
3
+ import { localizeWithPath } from '../../../../nls.js';
4
+ import { Separator, SubmenuAction, toAction } from '../../../../base/common/actions.js';
5
+ import { ActivePanelContext, PanelFocusContext } from '../../../common/contextkeys.js';
6
+ import { IWorkbenchLayoutService } from '../../../services/layout/browser/layoutService.js';
7
+ import { IStorageService } from '../../../../platform/storage/common/storage.js';
8
+ import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.js';
9
+ import { IKeybindingService } from '../../../../platform/keybinding/common/keybinding.js';
10
+ import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
11
+ import { TogglePanelAction } from './panelActions.js';
12
+ import { IThemeService } from '../../../../platform/theme/common/themeService.js';
13
+ import { PANEL_BACKGROUND, PANEL_BORDER, PANEL_ACTIVE_TITLE_BORDER, PANEL_ACTIVE_TITLE_FOREGROUND, PANEL_INACTIVE_TITLE_FOREGROUND, PANEL_DRAG_AND_DROP_BORDER } from '../../../common/theme.js';
14
+ import { contrastBorder, badgeBackground, badgeForeground } from '../../../../platform/theme/common/colorRegistry.js';
15
+ import { INotificationService } from '../../../../platform/notification/common/notification.js';
16
+ import { Dimension } from '../../../../base/browser/dom.js';
17
+ import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
18
+ import { assertIsDefined } from '../../../../base/common/types.js';
19
+ import { IExtensionService } from '../../../services/extensions/common/extensions.js';
20
+ import { IViewDescriptorService } from '../../../common/views.js';
21
+ import { MenuId, IMenuService } from '../../../../platform/actions/common/actions.js';
22
+ import { AbstractPaneCompositePart } from '../paneCompositePart.js';
23
+ import { ICommandService } from '../../../../platform/commands/common/commands.js';
24
+ import { createAndFillInContextMenuActions } from '../../../../platform/actions/browser/menuEntryActionViewItem.js';
25
+ var PanelPart_1;
26
+ let PanelPart = class PanelPart extends AbstractPaneCompositePart {
27
+ static { PanelPart_1 = this; }
28
+ get preferredHeight() {
29
+ return this.layoutService.mainContainerDimension.height * 0.4;
30
+ }
31
+ get preferredWidth() {
32
+ const activeComposite = this.getActivePaneComposite();
33
+ if (!activeComposite) {
34
+ return;
35
+ }
36
+ const width = activeComposite.getOptimalWidth();
37
+ if (typeof width !== 'number') {
38
+ return;
39
+ }
40
+ return Math.max(width, 300);
41
+ }
42
+ static { this.activePanelSettingsKey = 'workbench.panelpart.activepanelid'; }
43
+ constructor(notificationService, storageService, contextMenuService, layoutService, keybindingService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, commandService, menuService) {
44
+ super("workbench.parts.panel" , { hasTitle: true }, PanelPart_1.activePanelSettingsKey, ActivePanelContext.bindTo(contextKeyService), PanelFocusContext.bindTo(contextKeyService), 'panel', 'panel', undefined, notificationService, storageService, contextMenuService, layoutService, keybindingService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, menuService);
45
+ this.commandService = commandService;
46
+ this.minimumWidth = 300;
47
+ this.maximumWidth = Number.POSITIVE_INFINITY;
48
+ this.minimumHeight = 77;
49
+ this.maximumHeight = Number.POSITIVE_INFINITY;
50
+ }
51
+ updateStyles() {
52
+ super.updateStyles();
53
+ const container = assertIsDefined(this.getContainer());
54
+ container.style.backgroundColor = this.getColor(PANEL_BACKGROUND) || '';
55
+ const borderColor = this.getColor(PANEL_BORDER) || this.getColor(contrastBorder) || '';
56
+ container.style.borderLeftColor = borderColor;
57
+ container.style.borderRightColor = borderColor;
58
+ const title = this.getTitleArea();
59
+ if (title) {
60
+ title.style.borderTopColor = this.getColor(PANEL_BORDER) || this.getColor(contrastBorder) || '';
61
+ }
62
+ }
63
+ getCompositeBarOptions() {
64
+ return {
65
+ partContainerClass: 'panel',
66
+ pinnedViewContainersKey: 'workbench.panel.pinnedPanels',
67
+ placeholderViewContainersKey: 'workbench.panel.placeholderPanels',
68
+ viewContainersWorkspaceStateKey: 'workbench.panel.viewContainersWorkspaceState',
69
+ icon: false,
70
+ orientation: 0 ,
71
+ recomputeSizes: true,
72
+ activityHoverOptions: {
73
+ position: () => this.layoutService.getPanelPosition() === 2 && !this.layoutService.isPanelMaximized() ? 3 : 2 ,
74
+ },
75
+ fillExtraContextMenuActions: actions => ( this.fillExtraContextMenuActions(actions)),
76
+ compositeSize: 0,
77
+ iconSize: 16,
78
+ overflowActionSize: 44,
79
+ colors: theme => ({
80
+ activeBackgroundColor: theme.getColor(PANEL_BACKGROUND),
81
+ inactiveBackgroundColor: theme.getColor(PANEL_BACKGROUND),
82
+ activeBorderBottomColor: theme.getColor(PANEL_ACTIVE_TITLE_BORDER),
83
+ activeForegroundColor: theme.getColor(PANEL_ACTIVE_TITLE_FOREGROUND),
84
+ inactiveForegroundColor: theme.getColor(PANEL_INACTIVE_TITLE_FOREGROUND),
85
+ badgeBackground: theme.getColor(badgeBackground),
86
+ badgeForeground: theme.getColor(badgeForeground),
87
+ dragAndDropBorder: theme.getColor(PANEL_DRAG_AND_DROP_BORDER)
88
+ })
89
+ };
90
+ }
91
+ fillExtraContextMenuActions(actions) {
92
+ const panelPositionMenu = this.menuService.createMenu(MenuId.PanelPositionMenu, this.contextKeyService);
93
+ const panelAlignMenu = this.menuService.createMenu(MenuId.PanelAlignmentMenu, this.contextKeyService);
94
+ const positionActions = [];
95
+ const alignActions = [];
96
+ createAndFillInContextMenuActions(panelPositionMenu, { shouldForwardArgs: true }, { primary: [], secondary: positionActions });
97
+ createAndFillInContextMenuActions(panelAlignMenu, { shouldForwardArgs: true }, { primary: [], secondary: alignActions });
98
+ panelAlignMenu.dispose();
99
+ panelPositionMenu.dispose();
100
+ actions.push(...[
101
+ ( new Separator()),
102
+ ( new SubmenuAction('workbench.action.panel.position', ( localizeWithPath(
103
+ 'vs/workbench/browser/parts/panel/panelPart',
104
+ 'panel position',
105
+ "Panel Position"
106
+ )), positionActions)),
107
+ ( new SubmenuAction('workbench.action.panel.align', ( localizeWithPath('vs/workbench/browser/parts/panel/panelPart', 'align panel', "Align Panel")), alignActions)),
108
+ toAction({ id: TogglePanelAction.ID, label: ( localizeWithPath('vs/workbench/browser/parts/panel/panelPart', 'hidePanel', "Hide Panel")), run: () => this.commandService.executeCommand(TogglePanelAction.ID) })
109
+ ]);
110
+ }
111
+ layout(width, height, top, left) {
112
+ let dimensions;
113
+ if (this.layoutService.getPanelPosition() === 1 ) {
114
+ dimensions = ( new Dimension(width - 1, height));
115
+ }
116
+ else {
117
+ dimensions = ( new Dimension(width, height));
118
+ }
119
+ super.layout(dimensions.width, dimensions.height, top, left);
120
+ }
121
+ shouldShowCompositeBar() {
122
+ return true;
123
+ }
124
+ toJSON() {
125
+ return {
126
+ type: "workbench.parts.panel"
127
+ };
128
+ }
129
+ };
130
+ PanelPart = PanelPart_1 = ( __decorate([
131
+ ( __param(0, INotificationService)),
132
+ ( __param(1, IStorageService)),
133
+ ( __param(2, IContextMenuService)),
134
+ ( __param(3, IWorkbenchLayoutService)),
135
+ ( __param(4, IKeybindingService)),
136
+ ( __param(5, IInstantiationService)),
137
+ ( __param(6, IThemeService)),
138
+ ( __param(7, IViewDescriptorService)),
139
+ ( __param(8, IContextKeyService)),
140
+ ( __param(9, IExtensionService)),
141
+ ( __param(10, ICommandService)),
142
+ ( __param(11, IMenuService))
143
+ ], PanelPart));
144
+ export { PanelPart };
@@ -0,0 +1,4 @@
1
+ import n from '../../../../../../../../external/rollup-plugin-styles/dist/runtime/inject-css.js';
2
+ var css = ".monaco-workbench.nosidebar>.part.sidebar{display:none!important;visibility:hidden!important}.monaco-workbench .part.sidebar .title-actions .actions-container{justify-content:flex-end}.monaco-workbench .part.sidebar .title-actions .action-item{margin-right:4px}.monaco-workbench .part.sidebar>.title>.title-label h2{text-transform:uppercase}.monaco-workbench .viewlet .collapsible.header .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-workbench .viewlet .collapsible.header .actions{width:0}.monaco-workbench .viewlet .collapsible.header.focused .actions,.monaco-workbench .viewlet .split-view-view:hover>.header .actions{flex:1;width:auto}.monaco-workbench .viewlet .collapsible.header .actions .action-label{background-position:50%;background-repeat:no-repeat;background-size:16px;height:22px;margin-right:0;width:28px}.monaco-workbench .viewlet .collapsible.header .actions .action-label .label,.monaco-workbench .viewlet .collapsible.header.collapsed .actions{display:none}.monaco-workbench .viewlet .collapsible.header .action-label{background-repeat:no-repeat;height:16px;margin-right:.2em;width:16px}.monaco-workbench .part.sidebar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked.clicked:focus .active-item-indicator:before,.monaco-workbench .part.sidebar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked:not(:focus) .active-item-indicator:before{border-top-color:var(--vscode-activityBarTop-activeBorder)!important}.monaco-workbench .part.sidebar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:focus .action-label,.monaco-workbench .part.sidebar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:hover .action-label{color:var(--vscode-activityBarTop-foreground)!important}.monaco-workbench .sidebar.pane-composite-part>.title>.composite-bar-container{flex:1}.monaco-workbench .sidebar.part.pane-composite-part>.composite.title.has-composite-bar>.title-actions{flex:inherit}.monaco-workbench .sidebar.pane-composite-part>.title.has-composite-bar>.title-actions .monaco-action-bar .action-item{max-width:150px}";
3
+ n(css,{});
4
+ export { css, css as default };