@codingame/monaco-vscode-views-service-override 2.1.4 → 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 (107) hide show
  1. package/index.d.ts +11 -9
  2. package/index.js +8 -6
  3. package/package.json +11 -11
  4. package/tools/views.d.ts +102 -0
  5. package/tools/views.js +253 -0
  6. package/views.d.ts +4 -99
  7. package/views.js +52 -280
  8. package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
  9. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -180
  10. package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -494
  11. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -6
  12. package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -1112
  13. package/vscode/src/vs/base/common/codicons.d.ts +0 -579
  14. package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -24
  15. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -64
  16. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -790
  17. package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -764
  18. package/vscode/src/vs/workbench/browser/layout.d.ts +0 -26
  19. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -612
  20. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -6
  21. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -6
  22. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -150
  23. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -6
  24. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -605
  25. package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -335
  26. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +0 -223
  27. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +0 -1407
  28. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +0 -186
  29. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -511
  30. package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +0 -112
  31. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -1020
  32. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +0 -391
  33. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -6
  34. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -6
  35. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +0 -6
  36. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +0 -645
  37. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -379
  38. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +0 -68
  39. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -146
  40. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -6
  41. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -222
  42. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -299
  43. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -365
  44. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -135
  45. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -6
  46. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -17
  47. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -145
  48. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -214
  49. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -6
  50. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -78
  51. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -63
  52. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -119
  53. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -6
  54. package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +0 -79
  55. package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +0 -74
  56. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +0 -256
  57. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +0 -99
  58. package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +0 -444
  59. package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -432
  60. package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -786
  61. package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -488
  62. package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +0 -522
  63. package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +0 -152
  64. package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +0 -63
  65. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -409
  66. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -6
  67. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +0 -693
  68. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +0 -240
  69. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +0 -77
  70. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +0 -42
  71. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +0 -71
  72. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +0 -348
  73. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +0 -98
  74. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +0 -146
  75. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +0 -105
  76. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +0 -401
  77. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +0 -197
  78. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +0 -41
  79. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +0 -128
  80. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +0 -6
  81. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +0 -612
  82. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +0 -158
  83. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +0 -264
  84. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +0 -173
  85. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -6
  86. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -282
  87. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -360
  88. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -133
  89. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -290
  90. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -96
  91. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -88
  92. package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +0 -79
  93. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -648
  94. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -65
  95. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -59
  96. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -142
  97. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -121
  98. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -68
  99. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -235
  100. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -145
  101. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -670
  102. package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1484
  103. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +0 -6
  104. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +0 -523
  105. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +0 -101
  106. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -713
  107. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -598
package/views.js CHANGED
@@ -1,89 +1,73 @@
1
1
  import { __decorate, __param } from './external/tslib/tslib.es6.js';
2
2
  import { StandaloneServices } from 'vscode/vscode/vs/editor/standalone/browser/standaloneServices';
3
3
  import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
4
- import { IViewDescriptorService, Extensions } from 'vscode/vscode/vs/workbench/common/views';
4
+ import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views';
5
5
  export { ViewContainerLocation } from 'vscode/vscode/vs/workbench/common/views';
6
6
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
7
- import { SidebarPart } from './vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js';
8
- import { ViewDescriptorService } from './vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js';
7
+ import { SidebarPart } from 'vscode/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
8
+ export { SidebarPart } from 'vscode/vscode/vs/workbench/browser/parts/sidebar/sidebarPart';
9
+ import { ViewDescriptorService } from 'vscode/vscode/vs/workbench/services/views/browser/viewDescriptorService';
9
10
  import { IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity';
10
- import { ActivityService } from './vscode/src/vs/workbench/services/activity/browser/activityService.js';
11
+ import { ActivityService } from 'vscode/vscode/vs/workbench/services/activity/browser/activityService';
12
+ export { ActivityService } from 'vscode/vscode/vs/workbench/services/activity/browser/activityService';
11
13
  import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite';
12
- export { ActivitybarPart } from './vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js';
13
- import { MutableDisposable, DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
14
- import { ExplorerService } from './vscode/src/vs/workbench/contrib/files/browser/explorerService.js';
14
+ export { ActivitybarPart } from 'vscode/vscode/vs/workbench/browser/parts/activitybar/activitybarPart';
15
+ import { ExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/explorerService';
15
16
  import { IExplorerService } from 'vscode/vscode/vs/workbench/contrib/files/browser/files';
16
- import { PanelPart } from './vscode/src/vs/workbench/browser/parts/panel/panelPart.js';
17
- import { size, $, append } from 'vscode/vscode/vs/base/browser/dom';
18
- import { ViewPane } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPane';
19
- import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
20
- import { ViewPaneContainer } from 'vscode/vscode/vs/workbench/browser/parts/views/viewPaneContainer';
17
+ import { PanelPart } from 'vscode/vscode/vs/workbench/browser/parts/panel/panelPart';
18
+ export { PanelPart } from 'vscode/vscode/vs/workbench/browser/parts/panel/panelPart';
21
19
  import { URI } from 'vscode/vscode/vs/base/common/uri';
22
- import './vscode/src/vs/workbench/contrib/files/browser/fileCommands.js';
23
- import './vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js';
24
- import './vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js';
25
- import './vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js';
26
- import './vscode/src/vs/workbench/browser/actions/listCommands.js';
20
+ import 'vscode/vscode/vs/workbench/contrib/files/browser/fileCommands';
21
+ import 'vscode/vscode/vs/workbench/contrib/files/browser/fileActions.contribution';
22
+ import 'vscode/vscode/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution';
23
+ import 'vscode/vscode/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution';
24
+ import 'vscode/vscode/vs/workbench/browser/actions/listCommands';
27
25
  import 'vscode/vscode/vs/workbench/browser/parts/views/media/views.css';
28
- import './vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js';
29
- import './vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js';
26
+ import 'vscode/vscode/vs/workbench/api/browser/viewsExtensionPoint';
27
+ import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.contribution';
30
28
  import 'vscode/vscode/vs/workbench/browser/workbench.contribution';
31
- import './vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js';
32
- import './vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js';
33
- import './vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js';
34
- import './vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js';
35
- import './vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js';
36
- import './vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js';
37
- import './vscode/src/vs/workbench/contrib/files/browser/files.contribution.js';
38
- import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
29
+ import 'vscode/vscode/vs/workbench/contrib/customEditor/browser/customEditor.contribution';
30
+ import 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution';
31
+ import 'vscode/vscode/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution';
32
+ import 'vscode/vscode/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution';
33
+ import 'vscode/vscode/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution';
34
+ import 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.contribution';
35
+ import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution';
36
+ import 'vscode/vscode/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution';
37
+ import 'vscode/vscode/vs/workbench/contrib/sash/browser/sash.contribution';
38
+ import 'vscode/vscode/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker';
39
39
  import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
40
40
  export { GroupOrientation } from 'vscode/vscode/vs/workbench/services/editor/common/editorGroupsService';
41
41
  import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/common/editorService';
42
42
  import { IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
43
43
  export { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
44
- import { EditorResolverService } from './vscode/src/vs/workbench/services/editor/browser/editorResolverService.js';
44
+ import { EditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/browser/editorResolverService';
45
45
  import { IBreadcrumbsService, BreadcrumbsService } from 'vscode/vscode/vs/workbench/browser/parts/editor/breadcrumbs';
46
46
  import { IContextViewService } from 'vscode/vscode/vs/platform/contextview/browser/contextView';
47
47
  import { ContextViewService } from 'vscode/vscode/vs/platform/contextview/browser/contextViewService';
48
48
  import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
49
- import { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
50
- export { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
51
- import { EditorExtensions, pathsToEditors, isResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor';
49
+ import { pathsToEditors, isResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor';
52
50
  export { EditorInputCapabilities } from 'vscode/vscode/vs/workbench/common/editor';
53
51
  import { ITextEditorService, TextEditorService } from 'vscode/vscode/vs/workbench/services/textfile/common/textEditorService';
54
52
  import { CodeEditorService } from 'vscode/vscode/vs/workbench/services/editor/browser/codeEditorService';
55
53
  import { IUntitledTextEditorService, UntitledTextEditorService } from 'vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorService';
56
54
  import { IHistoryService } from 'vscode/vscode/vs/workbench/services/history/common/history';
57
- import { HistoryService } from './vscode/src/vs/workbench/services/history/browser/historyService.js';
58
- import { registerAction2, Action2, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
59
- import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
60
- import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
61
- import { BaseActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
55
+ import { HistoryService } from 'vscode/vscode/vs/workbench/services/history/browser/historyService';
62
56
  import { ICustomEditorService } from 'vscode/vscode/vs/workbench/contrib/customEditor/common/customEditor';
63
- import { CustomEditorService } from './vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js';
64
- import { WebviewService } from './vscode/src/vs/workbench/contrib/webview/browser/webviewService.js';
57
+ import { CustomEditorService } from 'vscode/vscode/vs/workbench/contrib/customEditor/browser/customEditors';
58
+ import { WebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webviewService';
65
59
  import { IWebviewWorkbenchService, WebviewEditorService } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService';
66
60
  import { IWebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview';
67
61
  import { IWebviewViewService, WebviewViewService } from 'vscode/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService';
68
- import { positionToString, IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
62
+ import { positionToString } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
69
63
  export { Parts, Position } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
70
- import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
71
- import { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
72
- export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
73
- import { ITelemetryService } from 'vscode/vscode/vs/platform/telemetry/common/telemetry';
74
64
  import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage';
75
- import { IThemeService } from 'vscode/vscode/vs/platform/theme/common/themeService';
76
- export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
77
65
  import { IFileService } from 'vscode/vscode/vs/platform/files/common/files';
78
66
  import { ILayoutService } from 'vscode/vscode/vs/platform/layout/browser/layoutService';
79
67
  import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress';
80
- import { ProgressService } from './vscode/src/vs/workbench/services/progress/browser/progressService.js';
81
- import { DomScrollableElement } from 'vscode/vscode/vs/base/browser/ui/scrollbar/scrollableElement';
82
- import { assertAllDefined, assertIsDefined } from 'vscode/vscode/vs/base/common/types';
83
- export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
84
- export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
68
+ import { ProgressService } from 'vscode/vscode/vs/workbench/services/progress/browser/progressService';
85
69
  import { ILifecycleService } from 'vscode/vscode/vs/workbench/services/lifecycle/common/lifecycle';
86
- import { AuxiliaryBarPart } from './vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js';
70
+ import { AuxiliaryBarPart } from 'vscode/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart';
87
71
  import { ILogService } from 'vscode/vscode/vs/platform/log/common/log';
88
72
  import { mark } from 'vscode/vscode/vs/base/common/performance';
89
73
  import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
@@ -94,8 +78,8 @@ import { IWorkspaceContextService, isTemporaryWorkspace } from 'vscode/vscode/vs
94
78
  import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
95
79
  import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
96
80
  import { IWorkingCopyBackupService } from 'vscode/vscode/vs/workbench/services/workingCopy/common/workingCopyBackup';
97
- import { PaneCompositePartService } from './vscode/src/vs/workbench/browser/parts/paneCompositePartService.js';
98
- import { EditorParts } from './vscode/src/vs/workbench/browser/parts/editor/editorParts.js';
81
+ import { PaneCompositePartService } from 'vscode/vscode/vs/workbench/browser/parts/paneCompositePartService';
82
+ import { EditorParts } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorParts';
99
83
  import { IAuxiliaryWindowService, BrowserAuxiliaryWindowService } from 'vscode/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService';
100
84
  import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService';
101
85
  import { ViewsService } from 'vscode/vscode/vs/workbench/services/views/browser/viewsService';
@@ -103,18 +87,23 @@ import { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverServ
103
87
  export { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService';
104
88
  import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover';
105
89
  import { MonacoEditorService, MonacoDelegateEditorGroupsService } from './tools/editor.js';
106
- import getServiceOverride$2 from '@codingame/monaco-vscode-bulk-edit-service-override';
107
- import getServiceOverride$1 from '@codingame/monaco-vscode-layout-service-override';
108
- import getServiceOverride$4 from '@codingame/monaco-vscode-quickaccess-service-override';
109
- import getServiceOverride$4$1 from '@codingame/monaco-vscode-keybindings-service-override';
90
+ import getServiceOverride$1 from '@codingame/monaco-vscode-bulk-edit-service-override';
91
+ import getServiceOverride$2 from '@codingame/monaco-vscode-quickaccess-service-override';
92
+ import getServiceOverride$3 from '@codingame/monaco-vscode-keybindings-service-override';
110
93
  import { changeUrlDomain } from './tools/url.js';
111
- import { registerAssets } from 'vscode/assets';
112
94
  import { onRenderWorkbench } from 'vscode/lifecycle';
113
- import { withReadyServices } from 'vscode/services';
95
+ import { registerAssets } from 'vscode/assets';
96
+ export { SimpleEditorInput, SimpleEditorPane, getPanelPosition, getSideBarPosition, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, setPartVisibility } from './tools/views.js';
97
+ export { ConfirmResult } from './override/vs/platform/dialogs/common/dialogs.js';
98
+ export { EditorPane } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorPane';
99
+ export { AbstractResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/resourceEditorInput';
100
+ export { AbstractTextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
101
+ export { EditorInput } from 'vscode/vscode/vs/workbench/common/editor/editorInput';
102
+ export { SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
114
103
 
115
104
  function createPart(id, role, classes) {
116
105
  const part = document.createElement(role === 'status' ? 'footer' : 'div');
117
- part.classList.add('part', ...classes);
106
+ part.classList.add('part', 'monaco-workbench-part', ...classes);
118
107
  part.id = id;
119
108
  part.setAttribute('role', role);
120
109
  if (role === 'status') {
@@ -168,24 +157,6 @@ function onPartVisibilityChange(part, listener) {
168
157
  }
169
158
  return _part.onDidVisibilityChange(listener);
170
159
  }
171
- function isPartVisibile(part) {
172
- return StandaloneServices.get(IWorkbenchLayoutService).isVisible(part, window);
173
- }
174
- function setPartVisibility(part, visible) {
175
- StandaloneServices.get(IWorkbenchLayoutService).setPartHidden(!visible, part, window);
176
- }
177
- const onDidChangePanelPosition = (listener) => {
178
- return StandaloneServices.get(IWorkbenchLayoutService).onDidChangePanelPosition(listener);
179
- };
180
- function getPanelPosition() {
181
- return StandaloneServices.get(IWorkbenchLayoutService).getPanelPosition();
182
- }
183
- const onDidChangeSideBarPosition = (listener) => {
184
- return StandaloneServices.get(IWorkbenchLayoutService).onDidChangeSideBarPosition(listener);
185
- };
186
- function getSideBarPosition() {
187
- return StandaloneServices.get(IWorkbenchLayoutService).getSideBarPosition();
188
- }
189
160
  function renderActivitybarPar(container) {
190
161
  return attachPart("workbench.parts.activitybar" , container);
191
162
  }
@@ -204,204 +175,6 @@ function renderEditorPart(container) {
204
175
  function renderStatusBarPart(container) {
205
176
  return attachPart("workbench.parts.statusbar" , container);
206
177
  }
207
- let SimpleEditorPane = class SimpleEditorPane extends EditorPane {
208
- constructor(id, telemetryService, themeService, storageService) {
209
- super(id, telemetryService, themeService, storageService);
210
- this.inputDisposable = this._register(new MutableDisposable());
211
- }
212
- createEditor(parent) {
213
- this.container = this.initialize();
214
- this.scrollbar = this._register(new DomScrollableElement(this.container, { horizontal: 1 , vertical: 1 }));
215
- parent.appendChild(this.scrollbar.getDomNode());
216
- }
217
- async setInput(input, editorOptions, context, token) {
218
- await super.setInput(input, editorOptions, context, token);
219
- if (token.isCancellationRequested) {
220
- return;
221
- }
222
- this.inputDisposable.value = await this.renderInput?.(input, editorOptions, context, token);
223
- }
224
- layout(dimension) {
225
- const [container, scrollbar] = assertAllDefined(this.container, this.scrollbar);
226
- size(container, dimension.width, dimension.height);
227
- scrollbar.scanDomNode();
228
- }
229
- focus() {
230
- const container = assertIsDefined(this.container);
231
- container.focus();
232
- }
233
- clearInput() {
234
- this.inputDisposable.clear();
235
- super.clearInput();
236
- }
237
- };
238
- SimpleEditorPane = __decorate([
239
- ( __param(1, ITelemetryService)),
240
- ( __param(2, IThemeService)),
241
- ( __param(3, IStorageService))
242
- ], SimpleEditorPane);
243
- class SimpleEditorInput extends EditorInput {
244
- constructor(resource, closeHandler) {
245
- super();
246
- this.closeHandler = closeHandler;
247
- this.dirty = false;
248
- this._capabilities = 0;
249
- this.resource = resource;
250
- }
251
- get capabilities() {
252
- return this._capabilities;
253
- }
254
- addCapability(capability) {
255
- this._capabilities |= capability;
256
- this._onDidChangeCapabilities.fire();
257
- }
258
- removeCapability(capability) {
259
- this._capabilities &= ~capability;
260
- this._onDidChangeCapabilities.fire();
261
- }
262
- get editorId() {
263
- return this.typeId;
264
- }
265
- setName(name) {
266
- this.name = name;
267
- this._onDidChangeLabel.fire();
268
- }
269
- setTitle(title) {
270
- this.title = title;
271
- this._onDidChangeLabel.fire();
272
- }
273
- setDescription(description) {
274
- this.description = description;
275
- this._onDidChangeLabel.fire();
276
- }
277
- getLabelValue(label, verbosity) {
278
- if (typeof label === 'string') {
279
- return label;
280
- }
281
- switch (verbosity) {
282
- case 0 :
283
- return label.short;
284
- case 2 :
285
- return label.long;
286
- case 1 :
287
- default:
288
- return label.medium;
289
- }
290
- }
291
- getName() {
292
- return this.name ?? 'Unnamed';
293
- }
294
- getTitle(verbosity) {
295
- return this.getLabelValue(this.title ?? this.getName(), verbosity);
296
- }
297
- getDescription(verbosity) {
298
- return this.getLabelValue(this.description ?? this.getName(), verbosity);
299
- }
300
- isDirty() {
301
- return this.dirty;
302
- }
303
- setDirty(dirty) {
304
- this.dirty = dirty;
305
- this._onDidChangeDirty.fire();
306
- }
307
- }
308
- function registerEditorPane(typeId, name, ctor, inputCtors) {
309
- return ( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ctor, typeId, name), ( inputCtors.map(ctor => new SyncDescriptor(ctor))));
310
- }
311
- function registerEditor(globPattern, editorInfo, editorOptions, factory) {
312
- return withReadyServices((servicesAccessor) => {
313
- const resolverService = servicesAccessor.get(IEditorResolverService);
314
- return resolverService.registerEditor(globPattern, editorInfo, editorOptions, factory);
315
- });
316
- }
317
- function registerEditorSerializer(editorTypeId, ctor) {
318
- return ( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(editorTypeId, ctor);
319
- }
320
- function registerCustomView(options) {
321
- const iconUrl = options.icon != null ? ( URI.parse(options.icon)) : undefined;
322
- const viewContainer = options.viewContainer ?? ( Registry.as(Extensions.ViewContainersRegistry)).registerViewContainer({
323
- id: options.id,
324
- title: { value: options.name, original: options.name },
325
- order: options.order,
326
- ctorDescriptor: new SyncDescriptor(ViewPaneContainer, [options.id, { mergeViewWithContainerWhenSingleView: true }]),
327
- hideIfEmpty: true,
328
- icon: iconUrl
329
- }, options.location, {
330
- isDefault: options.default
331
- });
332
- const views = [{
333
- id: options.id,
334
- name: {
335
- value: options.name,
336
- original: options.name
337
- },
338
- ctorDescriptor: new SyncDescriptor(class extends ViewPane {
339
- renderBody(container) {
340
- super.renderBody(container);
341
- this.content = $('.view-pane-content');
342
- this.content.style.display = 'flex';
343
- this.content.style.alignItems = 'stretch';
344
- append(container, this.content);
345
- this._register(options.renderBody(this.content));
346
- }
347
- getActionViewItem(action, actionOptions) {
348
- const customAction = (options.actions ?? []).find(customAction => customAction.id === action.id);
349
- if (customAction?.render != null) {
350
- return new (class extends BaseActionViewItem {
351
- constructor() {
352
- super(null, action);
353
- this.render = customAction.render;
354
- }
355
- })();
356
- }
357
- return super.getActionViewItem(action, actionOptions);
358
- }
359
- layoutBody(height, width) {
360
- this.content.style.height = `${height}px`;
361
- this.content.style.width = `${width}px`;
362
- }
363
- }),
364
- canMoveView: options.canMoveView ?? true,
365
- canToggleVisibility: options.canToggleVisibility ?? false,
366
- hideByDefault: options.hideByDefault ?? false,
367
- collapsed: options.collapsed ?? false,
368
- order: options.order,
369
- containerIcon: iconUrl
370
- }];
371
- ( Registry.as(Extensions.ViewsRegistry)).registerViews(views, viewContainer);
372
- const disposableCollection = new DisposableStore();
373
- disposableCollection.add({
374
- dispose() {
375
- ( Registry.as(Extensions.ViewsRegistry)).deregisterViews(views, viewContainer);
376
- if (options.viewContainer == null) {
377
- ( Registry.as(Extensions.ViewContainersRegistry)).deregisterViewContainer(viewContainer);
378
- }
379
- }
380
- });
381
- for (const action of options.actions ?? []) {
382
- disposableCollection.add(registerAction2(class extends Action2 {
383
- constructor() {
384
- super({
385
- id: action.id,
386
- title: { value: action.title, original: action.title },
387
- category: Categories.View,
388
- menu: [{
389
- id: MenuId.ViewTitle,
390
- when: ( ContextKeyExpr.equals('view', options.id)),
391
- group: 'navigation',
392
- order: action.order
393
- }, {
394
- id: MenuId.CommandPalette
395
- }],
396
- tooltip: action.tooltip,
397
- icon: action.icon != null ? Codicon[action.icon] : undefined
398
- });
399
- this.run = action.run ?? (async () => { });
400
- }
401
- }));
402
- }
403
- return disposableCollection;
404
- }
405
178
  function isElementVisible(el) {
406
179
  if (!el.isConnected) {
407
180
  return false;
@@ -769,12 +542,11 @@ function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains,
769
542
  }
770
543
  return {
771
544
  ...getServiceOverride$1(),
772
- ...getServiceOverride$2(),
773
- ...getServiceOverride$4({
545
+ ...getServiceOverride$2({
774
546
  isKeybindingConfigurationVisible: isEditorPartVisible,
775
547
  shouldUseGlobalPicker: isEditorPartVisible
776
548
  }),
777
- ...getServiceOverride$4$1({
549
+ ...getServiceOverride$3({
778
550
  shouldUseGlobalKeybindings: isEditorPartVisible
779
551
  }),
780
552
  [( IViewsService.toString())]: new SyncDescriptor(ViewsService, [], false),
@@ -801,4 +573,4 @@ function getServiceOverride(openEditorFallback, _webviewIframeAlternateDomains,
801
573
  };
802
574
  }
803
575
 
804
- export { ActivityService, PanelPart, SidebarPart, SimpleEditorInput, SimpleEditorPane, attachPart, getServiceOverride as default, getPanelPosition, getSideBarPosition, isEditorPartVisible, isPartVisibile, onDidChangePanelPosition, onDidChangeSideBarPosition, onPartVisibilityChange, registerCustomView, registerEditor, registerEditorPane, registerEditorSerializer, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart, setPartVisibility };
576
+ export { attachPart, getServiceOverride as default, isEditorPartVisible, onPartVisibilityChange, renderActivitybarPar, renderAuxiliaryPart, renderEditorPart, renderPanelPart, renderPart, renderSidebarPart, renderStatusBarPart };
@@ -1,3 +0,0 @@
1
- var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=( Object.keys(r.attributes)),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
2
-
3
- export { n as default };
@@ -1,180 +0,0 @@
1
- import { $ } from 'vscode/vscode/vs/base/browser/dom';
2
- import { SplitView } from 'vscode/vscode/vs/base/browser/ui/splitview/splitview';
3
- import { Event } from 'vscode/vscode/vs/base/common/event';
4
- import { DisposableStore } from 'vscode/vscode/vs/base/common/lifecycle';
5
-
6
- const defaultState = {
7
- targetWidth: 900,
8
- leftMarginRatio: 0.1909,
9
- rightMarginRatio: 0.1909,
10
- };
11
- const distributeSizing = { type: 'distribute' };
12
- function createEmptyView(background) {
13
- const element = $('.centered-layout-margin');
14
- element.style.height = '100%';
15
- if (background) {
16
- element.style.backgroundColor = ( background.toString());
17
- }
18
- return {
19
- element,
20
- layout: () => undefined,
21
- minimumSize: 60,
22
- maximumSize: Number.POSITIVE_INFINITY,
23
- onDidChange: Event.None
24
- };
25
- }
26
- function toSplitViewView(view, getHeight) {
27
- return {
28
- element: view.element,
29
- get maximumSize() { return view.maximumWidth; },
30
- get minimumSize() { return view.minimumWidth; },
31
- onDidChange: ( Event.map(view.onDidChange, e => e && e.width)),
32
- layout: (size, offset, ctx) => view.layout(size, getHeight(), ctx?.top ?? 0, (ctx?.left ?? 0) + offset)
33
- };
34
- }
35
- class CenteredViewLayout {
36
- constructor(container, view, state = { ...defaultState }, centeredLayoutFixedWidth = false) {
37
- this.container = container;
38
- this.view = view;
39
- this.state = state;
40
- this.centeredLayoutFixedWidth = centeredLayoutFixedWidth;
41
- this.lastLayoutPosition = { width: 0, height: 0, left: 0, top: 0 };
42
- this.didLayout = false;
43
- this.splitViewDisposables = ( new DisposableStore());
44
- this._boundarySashes = {};
45
- this.container.appendChild(this.view.element);
46
- this.container.style.overflow = 'hidden';
47
- }
48
- get minimumWidth() { return this.splitView ? this.splitView.minimumSize : this.view.minimumWidth; }
49
- get maximumWidth() { return this.splitView ? this.splitView.maximumSize : this.view.maximumWidth; }
50
- get minimumHeight() { return this.view.minimumHeight; }
51
- get maximumHeight() { return this.view.maximumHeight; }
52
- get onDidChange() { return this.view.onDidChange; }
53
- get boundarySashes() { return this._boundarySashes; }
54
- set boundarySashes(boundarySashes) {
55
- this._boundarySashes = boundarySashes;
56
- if (!this.splitView) {
57
- return;
58
- }
59
- this.splitView.orthogonalStartSash = boundarySashes.top;
60
- this.splitView.orthogonalEndSash = boundarySashes.bottom;
61
- }
62
- layout(width, height, top, left) {
63
- this.lastLayoutPosition = { width, height, top, left };
64
- if (this.splitView) {
65
- this.splitView.layout(width, this.lastLayoutPosition);
66
- if (!this.didLayout || this.centeredLayoutFixedWidth) {
67
- this.resizeSplitViews();
68
- }
69
- }
70
- else {
71
- this.view.layout(width, height, top, left);
72
- }
73
- this.didLayout = true;
74
- }
75
- resizeSplitViews() {
76
- if (!this.splitView) {
77
- return;
78
- }
79
- if (this.centeredLayoutFixedWidth) {
80
- const centerViewWidth = Math.min(this.lastLayoutPosition.width, this.state.targetWidth);
81
- const marginWidthFloat = (this.lastLayoutPosition.width - centerViewWidth) / 2;
82
- this.splitView.resizeView(0, Math.floor(marginWidthFloat));
83
- this.splitView.resizeView(1, centerViewWidth);
84
- this.splitView.resizeView(2, Math.ceil(marginWidthFloat));
85
- }
86
- else {
87
- const leftMargin = this.state.leftMarginRatio * this.lastLayoutPosition.width;
88
- const rightMargin = this.state.rightMarginRatio * this.lastLayoutPosition.width;
89
- const center = this.lastLayoutPosition.width - leftMargin - rightMargin;
90
- this.splitView.resizeView(0, leftMargin);
91
- this.splitView.resizeView(1, center);
92
- this.splitView.resizeView(2, rightMargin);
93
- }
94
- }
95
- setFixedWidth(option) {
96
- this.centeredLayoutFixedWidth = option;
97
- if (!!this.splitView) {
98
- this.updateState();
99
- this.resizeSplitViews();
100
- }
101
- }
102
- updateState() {
103
- if (!!this.splitView) {
104
- this.state.targetWidth = this.splitView.getViewSize(1);
105
- this.state.leftMarginRatio = this.splitView.getViewSize(0) / this.lastLayoutPosition.width;
106
- this.state.rightMarginRatio = this.splitView.getViewSize(2) / this.lastLayoutPosition.width;
107
- }
108
- }
109
- isActive() {
110
- return !!this.splitView;
111
- }
112
- styles(style) {
113
- this.style = style;
114
- if (this.splitView && this.emptyViews) {
115
- this.splitView.style(this.style);
116
- this.emptyViews[0].element.style.backgroundColor = ( this.style.background.toString());
117
- this.emptyViews[1].element.style.backgroundColor = ( this.style.background.toString());
118
- }
119
- }
120
- activate(active) {
121
- if (active === this.isActive()) {
122
- return;
123
- }
124
- if (active) {
125
- this.container.removeChild(this.view.element);
126
- this.splitView = ( new SplitView(this.container, {
127
- inverseAltBehavior: true,
128
- orientation: 1 ,
129
- styles: this.style
130
- }));
131
- this.splitView.orthogonalStartSash = this.boundarySashes.top;
132
- this.splitView.orthogonalEndSash = this.boundarySashes.bottom;
133
- this.splitViewDisposables.add(this.splitView.onDidSashChange(() => {
134
- if (!!this.splitView) {
135
- this.updateState();
136
- }
137
- }));
138
- this.splitViewDisposables.add(this.splitView.onDidSashReset(() => {
139
- this.state = { ...defaultState };
140
- this.resizeSplitViews();
141
- }));
142
- this.splitView.layout(this.lastLayoutPosition.width, this.lastLayoutPosition);
143
- const backgroundColor = this.style ? this.style.background : undefined;
144
- this.emptyViews = [createEmptyView(backgroundColor), createEmptyView(backgroundColor)];
145
- this.splitView.addView(this.emptyViews[0], distributeSizing, 0);
146
- this.splitView.addView(toSplitViewView(this.view, () => this.lastLayoutPosition.height), distributeSizing, 1);
147
- this.splitView.addView(this.emptyViews[1], distributeSizing, 2);
148
- this.resizeSplitViews();
149
- }
150
- else {
151
- if (this.splitView) {
152
- this.container.removeChild(this.splitView.el);
153
- }
154
- this.splitViewDisposables.clear();
155
- this.splitView?.dispose();
156
- this.splitView = undefined;
157
- this.emptyViews = undefined;
158
- this.container.appendChild(this.view.element);
159
- this.view.layout(this.lastLayoutPosition.width, this.lastLayoutPosition.height, this.lastLayoutPosition.top, this.lastLayoutPosition.left);
160
- }
161
- }
162
- isDefault(state) {
163
- if (this.centeredLayoutFixedWidth) {
164
- return state.targetWidth === defaultState.targetWidth;
165
- }
166
- else {
167
- return state.leftMarginRatio === defaultState.leftMarginRatio
168
- && state.rightMarginRatio === defaultState.rightMarginRatio;
169
- }
170
- }
171
- dispose() {
172
- this.splitViewDisposables.dispose();
173
- if (this.splitView) {
174
- this.splitView.dispose();
175
- this.splitView = undefined;
176
- }
177
- }
178
- }
179
-
180
- export { CenteredViewLayout };