@codingame/monaco-vscode-view-common-service-override 4.5.0-improve-code-splitting.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 (114) hide show
  1. package/assets/fake.html +10 -0
  2. package/assets/index-no-csp.html +1230 -0
  3. package/assets/index.html +1231 -0
  4. package/assets/service-worker.js +457 -0
  5. package/index.d.ts +1 -0
  6. package/index.js +1 -0
  7. package/override/vs/workbench/browser/parts/editor/textEditor.js +5 -0
  8. package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +11 -0
  9. package/package.json +32 -0
  10. package/tools/editorAssets.js +4 -0
  11. package/tools/url.js +10 -0
  12. package/viewCommon.d.ts +5 -0
  13. package/viewCommon.js +105 -0
  14. package/vscode/src/vs/base/browser/deviceAccess.js +61 -0
  15. package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +180 -0
  16. package/vscode/src/vs/base/browser/ui/grid/grid.js +494 -0
  17. package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +6 -0
  18. package/vscode/src/vs/base/browser/ui/grid/gridview.js +1113 -0
  19. package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +12 -0
  20. package/vscode/src/vs/platform/webview/common/mimeTypes.js +24 -0
  21. package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +64 -0
  22. package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +907 -0
  23. package/vscode/src/vs/workbench/browser/actions/listCommands.js +764 -0
  24. package/vscode/src/vs/workbench/browser/actions/navigationActions.js +301 -0
  25. package/vscode/src/vs/workbench/browser/media/style.css.js +6 -0
  26. package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +671 -0
  27. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +6 -0
  28. package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +6 -0
  29. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +229 -0
  30. package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +6 -0
  31. package/vscode/src/vs/workbench/browser/parts/compositeBar.js +606 -0
  32. package/vscode/src/vs/workbench/browser/parts/compositePart.js +346 -0
  33. package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +246 -0
  34. package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +1403 -0
  35. package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +188 -0
  36. package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +523 -0
  37. package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +1030 -0
  38. package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +391 -0
  39. package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +6 -0
  40. package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +6 -0
  41. package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +6 -0
  42. package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +643 -0
  43. package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +472 -0
  44. package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +68 -0
  45. package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +160 -0
  46. package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +6 -0
  47. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +39 -0
  48. package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +238 -0
  49. package/vscode/src/vs/workbench/browser/style.js +54 -0
  50. package/vscode/src/vs/workbench/browser/window.js +381 -0
  51. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +300 -0
  52. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +367 -0
  53. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +135 -0
  54. package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +6 -0
  55. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +18 -0
  56. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +146 -0
  57. package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +215 -0
  58. package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +6 -0
  59. package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +78 -0
  60. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +56 -0
  61. package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +63 -0
  62. package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +183 -0
  63. package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +8 -0
  64. package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +408 -0
  65. package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +6 -0
  66. package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +147 -0
  67. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +635 -0
  68. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +230 -0
  69. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +75 -0
  70. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +42 -0
  71. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +81 -0
  72. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +350 -0
  73. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +100 -0
  74. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +148 -0
  75. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +106 -0
  76. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +403 -0
  77. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +199 -0
  78. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +41 -0
  79. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +128 -0
  80. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +6 -0
  81. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +619 -0
  82. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +161 -0
  83. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +266 -0
  84. package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +173 -0
  85. package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +195 -0
  86. package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +38 -0
  87. package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +41 -0
  88. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +6 -0
  89. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +283 -0
  90. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +362 -0
  91. package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +133 -0
  92. package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +314 -0
  93. package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +96 -0
  94. package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +98 -0
  95. package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +656 -0
  96. package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +65 -0
  97. package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +59 -0
  98. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +143 -0
  99. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +121 -0
  100. package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +67 -0
  101. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +234 -0
  102. package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +45 -0
  103. package/vscode/src/vs/workbench/services/activity/browser/activityService.js +145 -0
  104. package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +341 -0
  105. package/vscode/src/vs/workbench/services/driver/browser/driver.js +186 -0
  106. package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +13 -0
  107. package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +676 -0
  108. package/vscode/src/vs/workbench/services/history/browser/historyService.js +1516 -0
  109. package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +6 -0
  110. package/vscode/src/vs/workbench/services/progress/browser/progressService.js +527 -0
  111. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +102 -0
  112. package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +133 -0
  113. package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +711 -0
  114. package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +603 -0
@@ -0,0 +1,188 @@
1
+ import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
+ import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
4
+ import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
+ import { Extensions } from 'vscode/vscode/vs/platform/configuration/common/configurationRegistry';
6
+ import { workbenchConfigurationNodeBase } from 'vscode/vscode/vs/workbench/common/configuration';
7
+ import { RegisteredEditorPriority } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
8
+ import { IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service';
9
+ import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions.service';
10
+ import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
11
+ import { Event } from 'vscode/vscode/vs/base/common/event';
12
+ import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService.service';
13
+ import { getLargeFileConfirmationLimit, ByteSize } from 'vscode/vscode/vs/platform/files/common/files';
14
+
15
+ var DynamicEditorConfigurations_1;
16
+ let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disposable {
17
+ static { DynamicEditorConfigurations_1 = this; }
18
+ static { this.ID = 'workbench.contrib.dynamicEditorConfigurations'; }
19
+ static { this.AUTO_LOCK_DEFAULT_ENABLED = ( new Set([
20
+ 'terminalEditor',
21
+ 'mainThreadWebview-simpleBrowser.view',
22
+ 'mainThreadWebview-browserPreview'
23
+ ])); }
24
+ static { this.AUTO_LOCK_EXTRA_EDITORS = [
25
+ {
26
+ id: 'workbench.input.interactive',
27
+ label: ( localizeWithPath(
28
+ 'vs/workbench/browser/parts/editor/editorConfiguration',
29
+ 'interactiveWindow',
30
+ 'Interactive Window'
31
+ )),
32
+ priority: RegisteredEditorPriority.builtin
33
+ },
34
+ {
35
+ id: 'mainThreadWebview-markdown.preview',
36
+ label: ( localizeWithPath(
37
+ 'vs/workbench/browser/parts/editor/editorConfiguration',
38
+ 'markdownPreview',
39
+ "Markdown Preview"
40
+ )),
41
+ priority: RegisteredEditorPriority.builtin
42
+ },
43
+ {
44
+ id: 'mainThreadWebview-simpleBrowser.view',
45
+ label: ( localizeWithPath(
46
+ 'vs/workbench/browser/parts/editor/editorConfiguration',
47
+ 'simpleBrowser',
48
+ "Simple Browser"
49
+ )),
50
+ priority: RegisteredEditorPriority.builtin
51
+ },
52
+ {
53
+ id: 'mainThreadWebview-browserPreview',
54
+ label: ( localizeWithPath(
55
+ 'vs/workbench/browser/parts/editor/editorConfiguration',
56
+ 'livePreview',
57
+ "Live Preview"
58
+ )),
59
+ priority: RegisteredEditorPriority.builtin
60
+ }
61
+ ]; }
62
+ static { this.AUTO_LOCK_REMOVE_EDITORS = ( new Set([
63
+ 'vscode-interactive-input',
64
+ 'interactive',
65
+ 'vscode.markdown.preview.editor'
66
+ ])); }
67
+ constructor(editorResolverService, extensionService, environmentService) {
68
+ super();
69
+ this.editorResolverService = editorResolverService;
70
+ this.environmentService = environmentService;
71
+ this.configurationRegistry = ( Registry.as(Extensions.Configuration));
72
+ (async () => {
73
+ await extensionService.whenInstalledExtensionsRegistered();
74
+ this.updateDynamicEditorConfigurations();
75
+ this.registerListeners();
76
+ })();
77
+ }
78
+ registerListeners() {
79
+ this._register(Event.debounce(this.editorResolverService.onDidChangeEditorRegistrations, (_, e) => e)(() => this.updateDynamicEditorConfigurations()));
80
+ }
81
+ updateDynamicEditorConfigurations() {
82
+ const lockableEditors = [...this.editorResolverService.getEditors(), ...DynamicEditorConfigurations_1.AUTO_LOCK_EXTRA_EDITORS].filter(e => !( DynamicEditorConfigurations_1.AUTO_LOCK_REMOVE_EDITORS.has(e.id)));
83
+ const binaryEditorCandidates = ( this.editorResolverService.getEditors().filter(e => e.priority !== RegisteredEditorPriority.exclusive).map(e => e.id));
84
+ const autoLockGroupConfiguration = Object.create(null);
85
+ for (const editor of lockableEditors) {
86
+ autoLockGroupConfiguration[editor.id] = {
87
+ type: 'boolean',
88
+ default: ( DynamicEditorConfigurations_1.AUTO_LOCK_DEFAULT_ENABLED.has(editor.id)),
89
+ description: editor.label
90
+ };
91
+ }
92
+ const defaultAutoLockGroupConfiguration = Object.create(null);
93
+ for (const editor of lockableEditors) {
94
+ defaultAutoLockGroupConfiguration[editor.id] = ( DynamicEditorConfigurations_1.AUTO_LOCK_DEFAULT_ENABLED.has(editor.id));
95
+ }
96
+ const oldAutoLockConfigurationNode = this.autoLockConfigurationNode;
97
+ this.autoLockConfigurationNode = {
98
+ ...workbenchConfigurationNodeBase,
99
+ properties: {
100
+ 'workbench.editor.autoLockGroups': {
101
+ type: 'object',
102
+ description: ( localizeWithPath(
103
+ 'vs/workbench/browser/parts/editor/editorConfiguration',
104
+ 'workbench.editor.autoLockGroups',
105
+ "If an editor matching one of the listed types is opened as the first in an editor group and more than one group is open, the group is automatically locked. Locked groups will only be used for opening editors when explicitly chosen by a user gesture (for example drag and drop), but not by default. Consequently, the active editor in a locked group is less likely to be replaced accidentally with a different editor."
106
+ )),
107
+ properties: autoLockGroupConfiguration,
108
+ default: defaultAutoLockGroupConfiguration,
109
+ additionalProperties: false
110
+ }
111
+ }
112
+ };
113
+ const oldDefaultBinaryEditorConfigurationNode = this.defaultBinaryEditorConfigurationNode;
114
+ this.defaultBinaryEditorConfigurationNode = {
115
+ ...workbenchConfigurationNodeBase,
116
+ properties: {
117
+ 'workbench.editor.defaultBinaryEditor': {
118
+ type: 'string',
119
+ default: '',
120
+ enum: [...binaryEditorCandidates, ''],
121
+ description: ( localizeWithPath(
122
+ 'vs/workbench/browser/parts/editor/editorConfiguration',
123
+ 'workbench.editor.defaultBinaryEditor',
124
+ "The default editor for files detected as binary. If undefined, the user will be presented with a picker."
125
+ )),
126
+ }
127
+ }
128
+ };
129
+ const oldEditorAssociationsConfigurationNode = this.editorAssociationsConfigurationNode;
130
+ this.editorAssociationsConfigurationNode = {
131
+ ...workbenchConfigurationNodeBase,
132
+ properties: {
133
+ 'workbench.editorAssociations': {
134
+ type: 'object',
135
+ markdownDescription: ( localizeWithPath(
136
+ 'vs/workbench/browser/parts/editor/editorConfiguration',
137
+ 'editor.editorAssociations',
138
+ "Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
139
+ )),
140
+ patternProperties: {
141
+ '.*': {
142
+ type: 'string',
143
+ enum: binaryEditorCandidates,
144
+ }
145
+ }
146
+ }
147
+ }
148
+ };
149
+ const oldEditorLargeFileConfirmationConfigurationNode = this.editorLargeFileConfirmationConfigurationNode;
150
+ this.editorLargeFileConfirmationConfigurationNode = {
151
+ ...workbenchConfigurationNodeBase,
152
+ properties: {
153
+ 'workbench.editorLargeFileConfirmation': {
154
+ type: 'number',
155
+ default: getLargeFileConfirmationLimit(this.environmentService.remoteAuthority) / ByteSize.MB,
156
+ minimum: 1,
157
+ scope: 4 ,
158
+ markdownDescription: ( localizeWithPath(
159
+ 'vs/workbench/browser/parts/editor/editorConfiguration',
160
+ 'editorLargeFileSizeConfirmation',
161
+ "Controls the minimum size of a file in MB before asking for confirmation when opening in the editor. Note that this setting may not apply to all editor types and environments."
162
+ )),
163
+ }
164
+ }
165
+ };
166
+ this.configurationRegistry.updateConfigurations({
167
+ add: [
168
+ this.autoLockConfigurationNode,
169
+ this.defaultBinaryEditorConfigurationNode,
170
+ this.editorAssociationsConfigurationNode,
171
+ this.editorLargeFileConfirmationConfigurationNode
172
+ ],
173
+ remove: coalesce([
174
+ oldAutoLockConfigurationNode,
175
+ oldDefaultBinaryEditorConfigurationNode,
176
+ oldEditorAssociationsConfigurationNode,
177
+ oldEditorLargeFileConfirmationConfigurationNode
178
+ ])
179
+ });
180
+ }
181
+ };
182
+ DynamicEditorConfigurations = DynamicEditorConfigurations_1 = ( __decorate([
183
+ ( __param(0, IEditorResolverService)),
184
+ ( __param(1, IExtensionService)),
185
+ ( __param(2, IWorkbenchEnvironmentService))
186
+ ], DynamicEditorConfigurations));
187
+
188
+ export { DynamicEditorConfigurations };