@codingame/monaco-vscode-views-service-override 2.1.4 → 2.2.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +11 -9
- package/index.js +8 -6
- package/package.json +11 -11
- package/tools/views.d.ts +102 -0
- package/tools/views.js +253 -0
- package/views.d.ts +4 -99
- package/views.js +52 -280
- package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -180
- package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -494
- package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -6
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -1112
- package/vscode/src/vs/base/common/codicons.d.ts +0 -579
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -24
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -64
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -790
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -764
- package/vscode/src/vs/workbench/browser/layout.d.ts +0 -26
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -612
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -150
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -605
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -335
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +0 -223
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +0 -1407
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +0 -186
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -511
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +0 -112
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -1020
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +0 -391
- package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +0 -645
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -379
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +0 -68
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -146
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -222
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -299
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -365
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -135
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -17
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -145
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -214
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -78
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -63
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -119
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -6
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +0 -79
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +0 -74
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +0 -256
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +0 -99
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +0 -444
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -432
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -786
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -488
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +0 -522
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +0 -152
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +0 -63
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -409
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +0 -693
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +0 -240
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +0 -77
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +0 -42
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +0 -71
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +0 -348
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +0 -98
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +0 -146
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +0 -105
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +0 -401
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +0 -197
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +0 -41
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +0 -128
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +0 -612
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +0 -158
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +0 -264
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +0 -173
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -282
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -360
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -133
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -290
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -96
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -88
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +0 -79
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -648
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -65
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -59
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -142
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -121
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -68
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -235
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -145
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -670
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1484
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +0 -6
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +0 -523
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +0 -101
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -713
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -598
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { __decorate, __param } from '../../../../../../../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, IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
8
|
-
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
|
|
9
|
-
import { coalesce } from 'vscode/vscode/vs/base/common/arrays';
|
|
10
|
-
import { Event } from 'vscode/vscode/vs/base/common/event';
|
|
11
|
-
import { IWorkbenchEnvironmentService } from 'vscode/vscode/vs/workbench/services/environment/common/environmentService';
|
|
12
|
-
import { getLargeFileConfirmationLimit, ByteSize } from 'vscode/vscode/vs/platform/files/common/files';
|
|
13
|
-
|
|
14
|
-
var DynamicEditorConfigurations_1;
|
|
15
|
-
let DynamicEditorConfigurations = class DynamicEditorConfigurations extends Disposable {
|
|
16
|
-
static { DynamicEditorConfigurations_1 = this; }
|
|
17
|
-
static { this.AUTO_LOCK_DEFAULT_ENABLED = ( new Set([
|
|
18
|
-
'terminalEditor',
|
|
19
|
-
'mainThreadWebview-simpleBrowser.view',
|
|
20
|
-
'mainThreadWebview-browserPreview'
|
|
21
|
-
])); }
|
|
22
|
-
static { this.AUTO_LOCK_EXTRA_EDITORS = [
|
|
23
|
-
{
|
|
24
|
-
id: 'workbench.input.interactive',
|
|
25
|
-
label: ( localizeWithPath(
|
|
26
|
-
'vs/workbench/browser/parts/editor/editorConfiguration',
|
|
27
|
-
'interactiveWindow',
|
|
28
|
-
'Interactive Window'
|
|
29
|
-
)),
|
|
30
|
-
priority: RegisteredEditorPriority.builtin
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: 'mainThreadWebview-markdown.preview',
|
|
34
|
-
label: ( localizeWithPath(
|
|
35
|
-
'vs/workbench/browser/parts/editor/editorConfiguration',
|
|
36
|
-
'markdownPreview',
|
|
37
|
-
"Markdown Preview"
|
|
38
|
-
)),
|
|
39
|
-
priority: RegisteredEditorPriority.builtin
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
id: 'mainThreadWebview-simpleBrowser.view',
|
|
43
|
-
label: ( localizeWithPath(
|
|
44
|
-
'vs/workbench/browser/parts/editor/editorConfiguration',
|
|
45
|
-
'simpleBrowser',
|
|
46
|
-
"Simple Browser"
|
|
47
|
-
)),
|
|
48
|
-
priority: RegisteredEditorPriority.builtin
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
id: 'mainThreadWebview-browserPreview',
|
|
52
|
-
label: ( localizeWithPath(
|
|
53
|
-
'vs/workbench/browser/parts/editor/editorConfiguration',
|
|
54
|
-
'livePreview',
|
|
55
|
-
"Live Preview"
|
|
56
|
-
)),
|
|
57
|
-
priority: RegisteredEditorPriority.builtin
|
|
58
|
-
}
|
|
59
|
-
]; }
|
|
60
|
-
static { this.AUTO_LOCK_REMOVE_EDITORS = ( new Set([
|
|
61
|
-
'vscode-interactive-input',
|
|
62
|
-
'interactive',
|
|
63
|
-
'vscode.markdown.preview.editor'
|
|
64
|
-
])); }
|
|
65
|
-
constructor(editorResolverService, extensionService, environmentService) {
|
|
66
|
-
super();
|
|
67
|
-
this.editorResolverService = editorResolverService;
|
|
68
|
-
this.environmentService = environmentService;
|
|
69
|
-
this.configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
70
|
-
(async () => {
|
|
71
|
-
await extensionService.whenInstalledExtensionsRegistered();
|
|
72
|
-
this.updateDynamicEditorConfigurations();
|
|
73
|
-
this.registerListeners();
|
|
74
|
-
})();
|
|
75
|
-
}
|
|
76
|
-
registerListeners() {
|
|
77
|
-
Event.debounce(this.editorResolverService.onDidChangeEditorRegistrations, (_, e) => e)(() => this.updateDynamicEditorConfigurations());
|
|
78
|
-
}
|
|
79
|
-
updateDynamicEditorConfigurations() {
|
|
80
|
-
const lockableEditors = [...this.editorResolverService.getEditors(), ...DynamicEditorConfigurations_1.AUTO_LOCK_EXTRA_EDITORS].filter(e => !( DynamicEditorConfigurations_1.AUTO_LOCK_REMOVE_EDITORS.has(e.id)));
|
|
81
|
-
const binaryEditorCandidates = ( this.editorResolverService.getEditors().filter(e => e.priority !== RegisteredEditorPriority.exclusive).map(e => e.id));
|
|
82
|
-
const autoLockGroupConfiguration = Object.create(null);
|
|
83
|
-
for (const editor of lockableEditors) {
|
|
84
|
-
autoLockGroupConfiguration[editor.id] = {
|
|
85
|
-
type: 'boolean',
|
|
86
|
-
default: ( DynamicEditorConfigurations_1.AUTO_LOCK_DEFAULT_ENABLED.has(editor.id)),
|
|
87
|
-
description: editor.label
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
const defaultAutoLockGroupConfiguration = Object.create(null);
|
|
91
|
-
for (const editor of lockableEditors) {
|
|
92
|
-
defaultAutoLockGroupConfiguration[editor.id] = ( DynamicEditorConfigurations_1.AUTO_LOCK_DEFAULT_ENABLED.has(editor.id));
|
|
93
|
-
}
|
|
94
|
-
const oldAutoLockConfigurationNode = this.autoLockConfigurationNode;
|
|
95
|
-
this.autoLockConfigurationNode = {
|
|
96
|
-
...workbenchConfigurationNodeBase,
|
|
97
|
-
properties: {
|
|
98
|
-
'workbench.editor.autoLockGroups': {
|
|
99
|
-
type: 'object',
|
|
100
|
-
description: ( localizeWithPath(
|
|
101
|
-
'vs/workbench/browser/parts/editor/editorConfiguration',
|
|
102
|
-
'workbench.editor.autoLockGroups',
|
|
103
|
-
"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."
|
|
104
|
-
)),
|
|
105
|
-
properties: autoLockGroupConfiguration,
|
|
106
|
-
default: defaultAutoLockGroupConfiguration,
|
|
107
|
-
additionalProperties: false
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
const oldDefaultBinaryEditorConfigurationNode = this.defaultBinaryEditorConfigurationNode;
|
|
112
|
-
this.defaultBinaryEditorConfigurationNode = {
|
|
113
|
-
...workbenchConfigurationNodeBase,
|
|
114
|
-
properties: {
|
|
115
|
-
'workbench.editor.defaultBinaryEditor': {
|
|
116
|
-
type: 'string',
|
|
117
|
-
default: '',
|
|
118
|
-
enum: [...binaryEditorCandidates, ''],
|
|
119
|
-
description: ( localizeWithPath(
|
|
120
|
-
'vs/workbench/browser/parts/editor/editorConfiguration',
|
|
121
|
-
'workbench.editor.defaultBinaryEditor',
|
|
122
|
-
"The default editor for files detected as binary. If undefined, the user will be presented with a picker."
|
|
123
|
-
)),
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
const oldEditorAssociationsConfigurationNode = this.editorAssociationsConfigurationNode;
|
|
128
|
-
this.editorAssociationsConfigurationNode = {
|
|
129
|
-
...workbenchConfigurationNodeBase,
|
|
130
|
-
properties: {
|
|
131
|
-
'workbench.editorAssociations': {
|
|
132
|
-
type: 'object',
|
|
133
|
-
markdownDescription: ( localizeWithPath(
|
|
134
|
-
'vs/workbench/browser/parts/editor/editorConfiguration',
|
|
135
|
-
'editor.editorAssociations',
|
|
136
|
-
"Configure [glob patterns](https://aka.ms/vscode-glob-patterns) to editors (for example `\"*.hex\": \"hexEditor.hexedit\"`). These have precedence over the default behavior."
|
|
137
|
-
)),
|
|
138
|
-
patternProperties: {
|
|
139
|
-
'.*': {
|
|
140
|
-
type: 'string',
|
|
141
|
-
enum: binaryEditorCandidates,
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
const oldEditorLargeFileConfirmationConfigurationNode = this.editorLargeFileConfirmationConfigurationNode;
|
|
148
|
-
this.editorLargeFileConfirmationConfigurationNode = {
|
|
149
|
-
...workbenchConfigurationNodeBase,
|
|
150
|
-
properties: {
|
|
151
|
-
'workbench.editorLargeFileConfirmation': {
|
|
152
|
-
type: 'number',
|
|
153
|
-
default: getLargeFileConfirmationLimit(this.environmentService.remoteAuthority) / ByteSize.MB,
|
|
154
|
-
minimum: 1,
|
|
155
|
-
scope: 4 ,
|
|
156
|
-
markdownDescription: ( localizeWithPath(
|
|
157
|
-
'vs/workbench/browser/parts/editor/editorConfiguration',
|
|
158
|
-
'editorLargeFileSizeConfirmation',
|
|
159
|
-
"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."
|
|
160
|
-
)),
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
this.configurationRegistry.updateConfigurations({
|
|
165
|
-
add: [
|
|
166
|
-
this.autoLockConfigurationNode,
|
|
167
|
-
this.defaultBinaryEditorConfigurationNode,
|
|
168
|
-
this.editorAssociationsConfigurationNode,
|
|
169
|
-
this.editorLargeFileConfirmationConfigurationNode
|
|
170
|
-
],
|
|
171
|
-
remove: coalesce([
|
|
172
|
-
oldAutoLockConfigurationNode,
|
|
173
|
-
oldDefaultBinaryEditorConfigurationNode,
|
|
174
|
-
oldEditorAssociationsConfigurationNode,
|
|
175
|
-
oldEditorLargeFileConfirmationConfigurationNode
|
|
176
|
-
])
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
DynamicEditorConfigurations = DynamicEditorConfigurations_1 = ( __decorate([
|
|
181
|
-
( __param(0, IEditorResolverService)),
|
|
182
|
-
( __param(1, IExtensionService)),
|
|
183
|
-
( __param(2, IWorkbenchEnvironmentService))
|
|
184
|
-
], DynamicEditorConfigurations));
|
|
185
|
-
|
|
186
|
-
export { DynamicEditorConfigurations };
|