@codingame/monaco-vscode-view-common-service-override 11.1.2 → 12.0.0
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 +3 -1
- package/index.js +110 -1
- package/package.json +64 -10
- package/service-override/tools/editorAssets.d.ts +1 -0
- package/service-override/tools/editorAssets.js +5 -0
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +21 -0
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +2 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.d.ts +2 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +1 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +18 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +1 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.d.ts +7 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +116 -115
- package/vscode/src/vs/workbench/browser/actions/listCommands.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +120 -125
- package/vscode/src/vs/workbench/browser/actions/navigationActions.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +81 -74
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +216 -250
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.d.ts +21 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +26 -25
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.d.ts +32 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +10 -8
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -64
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +48 -38
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +19 -40
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +6 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +6 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +16 -16
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +15 -10
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +27 -25
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +4 -2
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +6 -386
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +385 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.d.ts +105 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +50 -62
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +16 -15
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +15 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +15 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +3 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +37 -39
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +22 -21
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +3 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +117 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +57 -53
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +27 -25
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +15 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +4 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +28 -28
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +2 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +54 -56
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +48 -38
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +19 -30
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +3 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +139 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +58 -56
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +4 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +2 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +28 -28
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +3 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +15 -13
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +10 -8
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.d.ts +6 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +3 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +60 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +64 -63
- package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +184 -0
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +154 -148
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +1 -1
- package/vscode/src/vs/workbench/services/progress/browser/progressService.d.ts +36 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +59 -54
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +34 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +4 -3
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +71 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.d.ts +122 -0
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +86 -90
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.d.ts +80 -0
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +58 -64
- package/override/vs/workbench/browser/parts/editor/textEditor.js +0 -5
- package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +0 -11
- package/tools/editorAssets.js +0 -4
- package/tools/url.js +0 -10
- package/viewCommon.js +0 -109
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from 'vscode/external/tslib/tslib.es6';
|
|
2
3
|
import { VIEWS_LOG_ID, VIEWS_LOG_NAME, Extensions, defaultViewIcon } from 'vscode/vscode/vs/workbench/common/views';
|
|
3
4
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
5
|
+
import { StorageScope, StorageTarget } from 'vscode/vscode/vs/platform/storage/common/storage';
|
|
4
6
|
import { IStorageService } from 'vscode/vscode/vs/platform/storage/common/storage.service';
|
|
5
7
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
6
|
-
import { Disposable
|
|
8
|
+
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
7
9
|
import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
|
|
8
10
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
9
11
|
import { URI } from 'vscode/vscode/vs/base/common/uri';
|
|
@@ -23,7 +25,7 @@ registerAction2(class extends Action2 {
|
|
|
23
25
|
constructor() {
|
|
24
26
|
super({
|
|
25
27
|
id: '_workbench.output.showViewsLog',
|
|
26
|
-
title: ( localize2(
|
|
28
|
+
title: ( localize2(12077, "Show Views Log")),
|
|
27
29
|
category: Categories.Developer,
|
|
28
30
|
f1: true
|
|
29
31
|
});
|
|
@@ -41,14 +43,14 @@ let ViewDescriptorsState = class ViewDescriptorsState extends Disposable {
|
|
|
41
43
|
super();
|
|
42
44
|
this.viewContainerName = viewContainerName;
|
|
43
45
|
this.storageService = storageService;
|
|
44
|
-
this._onDidChangeStoredState = this._register((
|
|
46
|
+
this._onDidChangeStoredState = this._register(( new Emitter()));
|
|
45
47
|
this.onDidChangeStoredState = this._onDidChangeStoredState.event;
|
|
46
|
-
this.logger = (
|
|
48
|
+
this.logger = ( new Lazy(
|
|
47
49
|
() => loggerService.createLogger(VIEWS_LOG_ID, { name: VIEWS_LOG_NAME, hidden: true })
|
|
48
|
-
))
|
|
50
|
+
));
|
|
49
51
|
this.globalViewsStateStorageId = getViewsStateStorageId(viewContainerStorageId);
|
|
50
52
|
this.workspaceViewsStateStorageId = viewContainerStorageId;
|
|
51
|
-
this._register(this.storageService.onDidChangeValue(
|
|
53
|
+
this._register(this.storageService.onDidChangeValue(StorageScope.PROFILE, this.globalViewsStateStorageId, this._store)(() => this.onDidStorageChange()));
|
|
52
54
|
this.state = this.initialize();
|
|
53
55
|
}
|
|
54
56
|
set(id, state) {
|
|
@@ -74,11 +76,11 @@ let ViewDescriptorsState = class ViewDescriptorsState extends Disposable {
|
|
|
74
76
|
};
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
|
-
if ((
|
|
78
|
-
this.storageService.store(this.workspaceViewsStateStorageId, JSON.stringify(storedViewsStates),
|
|
79
|
+
if (( Object.keys(storedViewsStates)).length > 0) {
|
|
80
|
+
this.storageService.store(this.workspaceViewsStateStorageId, JSON.stringify(storedViewsStates), StorageScope.WORKSPACE, StorageTarget.MACHINE);
|
|
79
81
|
}
|
|
80
82
|
else {
|
|
81
|
-
this.storageService.remove(this.workspaceViewsStateStorageId,
|
|
83
|
+
this.storageService.remove(this.workspaceViewsStateStorageId, StorageScope.WORKSPACE);
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
updateGlobalState(viewDescriptors) {
|
|
@@ -133,9 +135,9 @@ let ViewDescriptorsState = class ViewDescriptorsState extends Disposable {
|
|
|
133
135
|
}
|
|
134
136
|
}
|
|
135
137
|
initialize() {
|
|
136
|
-
const viewStates = (
|
|
138
|
+
const viewStates = ( new Map());
|
|
137
139
|
const workspaceViewsStates = this.getStoredWorkspaceState();
|
|
138
|
-
for (const id of (
|
|
140
|
+
for (const id of ( Object.keys(workspaceViewsStates))) {
|
|
139
141
|
const workspaceViewState = workspaceViewsStates[id];
|
|
140
142
|
viewStates.set(id, {
|
|
141
143
|
active: false,
|
|
@@ -146,10 +148,10 @@ let ViewDescriptorsState = class ViewDescriptorsState extends Disposable {
|
|
|
146
148
|
size: workspaceViewState.size,
|
|
147
149
|
});
|
|
148
150
|
}
|
|
149
|
-
const value = this.storageService.get(this.globalViewsStateStorageId,
|
|
151
|
+
const value = this.storageService.get(this.globalViewsStateStorageId, StorageScope.WORKSPACE, '[]');
|
|
150
152
|
const { state: workspaceVisibilityStates } = this.parseStoredGlobalState(value);
|
|
151
153
|
if (workspaceVisibilityStates.size > 0) {
|
|
152
|
-
for (const { id, isHidden } of (
|
|
154
|
+
for (const { id, isHidden } of ( workspaceVisibilityStates.values())) {
|
|
153
155
|
const viewState = viewStates.get(id);
|
|
154
156
|
if (viewState) {
|
|
155
157
|
if (isUndefined(viewState.visibleWorkspace)) {
|
|
@@ -165,13 +167,13 @@ let ViewDescriptorsState = class ViewDescriptorsState extends Disposable {
|
|
|
165
167
|
});
|
|
166
168
|
}
|
|
167
169
|
}
|
|
168
|
-
this.storageService.remove(this.globalViewsStateStorageId,
|
|
170
|
+
this.storageService.remove(this.globalViewsStateStorageId, StorageScope.WORKSPACE);
|
|
169
171
|
}
|
|
170
172
|
const { state, hasDuplicates } = this.parseStoredGlobalState(this.globalViewsStatesValue);
|
|
171
173
|
if (hasDuplicates) {
|
|
172
174
|
this.setStoredGlobalState(state);
|
|
173
175
|
}
|
|
174
|
-
for (const { id, isHidden, order } of (
|
|
176
|
+
for (const { id, isHidden, order } of ( state.values())) {
|
|
175
177
|
const viewState = viewStates.get(id);
|
|
176
178
|
if (viewState) {
|
|
177
179
|
viewState.visibleGlobal = !isHidden;
|
|
@@ -192,28 +194,28 @@ let ViewDescriptorsState = class ViewDescriptorsState extends Disposable {
|
|
|
192
194
|
return viewStates;
|
|
193
195
|
}
|
|
194
196
|
getStoredWorkspaceState() {
|
|
195
|
-
return JSON.parse(this.storageService.get(this.workspaceViewsStateStorageId,
|
|
197
|
+
return JSON.parse(this.storageService.get(this.workspaceViewsStateStorageId, StorageScope.WORKSPACE, '{}'));
|
|
196
198
|
}
|
|
197
199
|
getStoredGlobalState() {
|
|
198
200
|
return this.parseStoredGlobalState(this.globalViewsStatesValue).state;
|
|
199
201
|
}
|
|
200
202
|
setStoredGlobalState(storedGlobalState) {
|
|
201
|
-
this.globalViewsStatesValue = JSON.stringify([...(
|
|
203
|
+
this.globalViewsStatesValue = JSON.stringify([...( storedGlobalState.values())]);
|
|
202
204
|
}
|
|
203
205
|
parseStoredGlobalState(value) {
|
|
204
206
|
const storedValue = JSON.parse(value);
|
|
205
207
|
let hasDuplicates = false;
|
|
206
208
|
const state = storedValue.reduce((result, storedState) => {
|
|
207
209
|
if (typeof storedState === 'string' ) {
|
|
208
|
-
hasDuplicates = hasDuplicates || (
|
|
210
|
+
hasDuplicates = hasDuplicates || ( result.has(storedState));
|
|
209
211
|
result.set(storedState, { id: storedState, isHidden: true });
|
|
210
212
|
}
|
|
211
213
|
else {
|
|
212
|
-
hasDuplicates = hasDuplicates || (
|
|
214
|
+
hasDuplicates = hasDuplicates || ( result.has(storedState.id));
|
|
213
215
|
result.set(storedState.id, storedState);
|
|
214
216
|
}
|
|
215
217
|
return result;
|
|
216
|
-
}, (
|
|
218
|
+
}, ( new Map()));
|
|
217
219
|
return { state, hasDuplicates };
|
|
218
220
|
}
|
|
219
221
|
get globalViewsStatesValue() {
|
|
@@ -229,59 +231,51 @@ let ViewDescriptorsState = class ViewDescriptorsState extends Disposable {
|
|
|
229
231
|
}
|
|
230
232
|
}
|
|
231
233
|
getStoredGlobalViewsStatesValue() {
|
|
232
|
-
return this.storageService.get(this.globalViewsStateStorageId,
|
|
234
|
+
return this.storageService.get(this.globalViewsStateStorageId, StorageScope.PROFILE, '[]');
|
|
233
235
|
}
|
|
234
236
|
setStoredGlobalViewsStatesValue(value) {
|
|
235
|
-
this.storageService.store(this.globalViewsStateStorageId, value,
|
|
237
|
+
this.storageService.store(this.globalViewsStateStorageId, value, StorageScope.PROFILE, StorageTarget.USER);
|
|
236
238
|
}
|
|
237
239
|
};
|
|
238
|
-
ViewDescriptorsState = (
|
|
239
|
-
(
|
|
240
|
-
(
|
|
241
|
-
], ViewDescriptorsState))
|
|
240
|
+
ViewDescriptorsState = ( __decorate([
|
|
241
|
+
( __param(2, IStorageService)),
|
|
242
|
+
( __param(3, ILoggerService))
|
|
243
|
+
], ViewDescriptorsState));
|
|
242
244
|
let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
243
245
|
get title() { return this._title; }
|
|
244
246
|
get icon() { return this._icon; }
|
|
245
247
|
get keybindingId() { return this._keybindingId; }
|
|
246
|
-
get allViewDescriptors() { return (
|
|
247
|
-
|
|
248
|
-
); }
|
|
249
|
-
get activeViewDescriptors() { return (
|
|
250
|
-
(this.viewDescriptorItems.filter(item => item.state.active).map(item => item.viewDescriptor))
|
|
251
|
-
); }
|
|
252
|
-
get visibleViewDescriptors() { return (
|
|
253
|
-
(this.viewDescriptorItems.filter(item => this.isViewDescriptorVisible(item)).map(item => item.viewDescriptor))
|
|
254
|
-
); }
|
|
248
|
+
get allViewDescriptors() { return ( this.viewDescriptorItems.map(item => item.viewDescriptor)); }
|
|
249
|
+
get activeViewDescriptors() { return ( this.viewDescriptorItems.filter(item => item.state.active).map(item => item.viewDescriptor)); }
|
|
250
|
+
get visibleViewDescriptors() { return ( this.viewDescriptorItems.filter(item => this.isViewDescriptorVisible(item)).map(item => item.viewDescriptor)); }
|
|
255
251
|
constructor(viewContainer, instantiationService, contextKeyService, loggerService) {
|
|
256
252
|
super();
|
|
257
253
|
this.viewContainer = viewContainer;
|
|
258
254
|
this.contextKeyService = contextKeyService;
|
|
259
|
-
this.contextKeys = (
|
|
255
|
+
this.contextKeys = ( new CounterSet());
|
|
260
256
|
this.viewDescriptorItems = [];
|
|
261
|
-
this._onDidChangeContainerInfo = this._register((
|
|
257
|
+
this._onDidChangeContainerInfo = this._register(( new Emitter()));
|
|
262
258
|
this.onDidChangeContainerInfo = this._onDidChangeContainerInfo.event;
|
|
263
|
-
this._onDidChangeAllViewDescriptors = this._register((
|
|
259
|
+
this._onDidChangeAllViewDescriptors = this._register(( new Emitter()));
|
|
264
260
|
this.onDidChangeAllViewDescriptors = this._onDidChangeAllViewDescriptors.event;
|
|
265
|
-
this._onDidChangeActiveViewDescriptors = this._register((
|
|
261
|
+
this._onDidChangeActiveViewDescriptors = this._register(( new Emitter()));
|
|
266
262
|
this.onDidChangeActiveViewDescriptors = this._onDidChangeActiveViewDescriptors.event;
|
|
267
|
-
this._onDidAddVisibleViewDescriptors = this._register((
|
|
263
|
+
this._onDidAddVisibleViewDescriptors = this._register(( new Emitter()));
|
|
268
264
|
this.onDidAddVisibleViewDescriptors = this._onDidAddVisibleViewDescriptors.event;
|
|
269
|
-
this._onDidRemoveVisibleViewDescriptors = this._register((
|
|
265
|
+
this._onDidRemoveVisibleViewDescriptors = this._register(( new Emitter()));
|
|
270
266
|
this.onDidRemoveVisibleViewDescriptors = this._onDidRemoveVisibleViewDescriptors.event;
|
|
271
|
-
this._onDidMoveVisibleViewDescriptors = this._register((
|
|
267
|
+
this._onDidMoveVisibleViewDescriptors = this._register(( new Emitter()));
|
|
272
268
|
this.onDidMoveVisibleViewDescriptors = this._onDidMoveVisibleViewDescriptors.event;
|
|
273
|
-
this.logger = (
|
|
269
|
+
this.logger = ( new Lazy(
|
|
274
270
|
() => loggerService.createLogger(VIEWS_LOG_ID, { name: VIEWS_LOG_NAME, hidden: true })
|
|
275
|
-
))
|
|
271
|
+
));
|
|
276
272
|
this._register(Event.filter(contextKeyService.onDidChangeContext, e => e.affectsSome(this.contextKeys))(() => this.onDidChangeContext()));
|
|
277
273
|
this.viewDescriptorsState = this._register(instantiationService.createInstance(ViewDescriptorsState, viewContainer.storageId || `${viewContainer.id}.state`, typeof viewContainer.title === 'string' ? viewContainer.title : viewContainer.title.original));
|
|
278
274
|
this._register(this.viewDescriptorsState.onDidChangeStoredState(items => this.updateVisibility(items)));
|
|
279
275
|
this.updateContainerInfo();
|
|
280
276
|
}
|
|
281
277
|
updateContainerInfo() {
|
|
282
|
-
const useDefaultContainerInfo = this.viewContainer.alwaysUseContainerInfo || this.visibleViewDescriptors.length === 0 || (
|
|
283
|
-
v => ( (Registry.as(Extensions.ViewsRegistry))).getViewContainer(v.id) === this.viewContainer
|
|
284
|
-
)));
|
|
278
|
+
const useDefaultContainerInfo = this.viewContainer.alwaysUseContainerInfo || this.visibleViewDescriptors.length === 0 || ( this.visibleViewDescriptors.some(v => ( Registry.as(Extensions.ViewsRegistry)).getViewContainer(v.id) === this.viewContainer));
|
|
285
279
|
const title = useDefaultContainerInfo ? (typeof this.viewContainer.title === 'string' ? this.viewContainer.title : this.viewContainer.title.value) : this.visibleViewDescriptors[0]?.containerTitle || this.visibleViewDescriptors[0]?.name?.value || '';
|
|
286
280
|
let titleChanged = false;
|
|
287
281
|
if (this._title !== title) {
|
|
@@ -316,7 +310,7 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
316
310
|
isVisible(id) {
|
|
317
311
|
const viewDescriptorItem = this.viewDescriptorItems.find(v => v.viewDescriptor.id === id);
|
|
318
312
|
if (!viewDescriptorItem) {
|
|
319
|
-
throw (
|
|
313
|
+
throw ( new Error(`Unknown view ${id}`));
|
|
320
314
|
}
|
|
321
315
|
return this.isViewDescriptorVisible(viewDescriptorItem);
|
|
322
316
|
}
|
|
@@ -324,8 +318,8 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
324
318
|
this.updateVisibility([{ id, visible }]);
|
|
325
319
|
}
|
|
326
320
|
updateVisibility(viewDescriptors) {
|
|
327
|
-
const viewDescriptorItemsToHide = coalesce((
|
|
328
|
-
.map(({ id }) => this.findAndIgnoreIfNotFound(id))))
|
|
321
|
+
const viewDescriptorItemsToHide = coalesce(( viewDescriptors.filter(({ visible }) => !visible)
|
|
322
|
+
.map(({ id }) => this.findAndIgnoreIfNotFound(id))));
|
|
329
323
|
const removed = [];
|
|
330
324
|
for (const { viewDescriptorItem, visibleIndex } of viewDescriptorItemsToHide) {
|
|
331
325
|
if (this.updateViewDescriptorItemVisibility(viewDescriptorItem, false)) {
|
|
@@ -409,7 +403,7 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
409
403
|
for (const addedViewDescriptorState of addedViewDescriptorStates) {
|
|
410
404
|
const viewDescriptor = addedViewDescriptorState.viewDescriptor;
|
|
411
405
|
if (viewDescriptor.when) {
|
|
412
|
-
for (const key of (
|
|
406
|
+
for (const key of ( viewDescriptor.when.keys())) {
|
|
413
407
|
this.contextKeys.add(key);
|
|
414
408
|
}
|
|
415
409
|
}
|
|
@@ -441,7 +435,7 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
441
435
|
}
|
|
442
436
|
this.viewDescriptorItems.push(...addedItems);
|
|
443
437
|
this.viewDescriptorItems.sort(this.compareViewDescriptors.bind(this));
|
|
444
|
-
this._onDidChangeAllViewDescriptors.fire({ added: (
|
|
438
|
+
this._onDidChangeAllViewDescriptors.fire({ added: ( addedItems.map(({ viewDescriptor }) => viewDescriptor)), removed: [] });
|
|
445
439
|
const addedActiveItems = [];
|
|
446
440
|
for (const viewDescriptorItem of addedItems) {
|
|
447
441
|
if (viewDescriptorItem.state.active) {
|
|
@@ -449,7 +443,7 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
449
443
|
}
|
|
450
444
|
}
|
|
451
445
|
if (addedActiveItems.length) {
|
|
452
|
-
this._onDidChangeActiveViewDescriptors.fire(({ added: (
|
|
446
|
+
this._onDidChangeActiveViewDescriptors.fire(({ added: ( addedActiveItems.map(({ viewDescriptorItem }) => viewDescriptorItem.viewDescriptor)), removed: [] }));
|
|
453
447
|
}
|
|
454
448
|
const addedVisibleDescriptors = [];
|
|
455
449
|
for (const { viewDescriptorItem, visible } of addedActiveItems) {
|
|
@@ -467,7 +461,7 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
467
461
|
const removedVisibleDescriptors = [];
|
|
468
462
|
for (const viewDescriptor of viewDescriptors) {
|
|
469
463
|
if (viewDescriptor.when) {
|
|
470
|
-
for (const key of (
|
|
464
|
+
for (const key of ( viewDescriptor.when.keys())) {
|
|
471
465
|
this.contextKeys.delete(key);
|
|
472
466
|
}
|
|
473
467
|
}
|
|
@@ -520,7 +514,7 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
520
514
|
addedActiveItems.forEach(({ item }) => item.state.active = true);
|
|
521
515
|
this.broadCastRemovedVisibleViewDescriptors(removedVisibleDescriptors);
|
|
522
516
|
if (addedActiveItems.length || removedActiveItems.length) {
|
|
523
|
-
this._onDidChangeActiveViewDescriptors.fire(({ added: (
|
|
517
|
+
this._onDidChangeActiveViewDescriptors.fire(({ added: ( addedActiveItems.map(({ item }) => item.viewDescriptor)), removed: ( removedActiveItems.map(item => item.viewDescriptor)) }));
|
|
524
518
|
}
|
|
525
519
|
const addedVisibleDescriptors = [];
|
|
526
520
|
for (const { item, visibleWhenActive } of addedActiveItems) {
|
|
@@ -534,13 +528,13 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
534
528
|
broadCastAddedVisibleViewDescriptors(added) {
|
|
535
529
|
if (added.length) {
|
|
536
530
|
this._onDidAddVisibleViewDescriptors.fire(added.sort((a, b) => a.index - b.index));
|
|
537
|
-
this.updateState(`Added views:${(
|
|
531
|
+
this.updateState(`Added views:${( added.map(v => v.viewDescriptor.id)).join(',')} in ${this.viewContainer.id}`);
|
|
538
532
|
}
|
|
539
533
|
}
|
|
540
534
|
broadCastRemovedVisibleViewDescriptors(removed) {
|
|
541
535
|
if (removed.length) {
|
|
542
536
|
this._onDidRemoveVisibleViewDescriptors.fire(removed.sort((a, b) => b.index - a.index));
|
|
543
|
-
this.updateState(`Removed views:${(
|
|
537
|
+
this.updateState(`Removed views:${( removed.map(v => v.viewDescriptor.id)).join(',')} from ${this.viewContainer.id}`);
|
|
544
538
|
}
|
|
545
539
|
}
|
|
546
540
|
broadCastMovedViewDescriptors(from, to) {
|
|
@@ -569,7 +563,7 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
569
563
|
if (result) {
|
|
570
564
|
return result;
|
|
571
565
|
}
|
|
572
|
-
throw (
|
|
566
|
+
throw ( new Error(`view descriptor ${id} not found`));
|
|
573
567
|
}
|
|
574
568
|
findAndIgnoreIfNotFound(id) {
|
|
575
569
|
for (let i = 0, visibleIndex = 0; i < this.viewDescriptorItems.length; i++) {
|
|
@@ -603,10 +597,10 @@ let ViewContainerModel = class ViewContainerModel extends Disposable {
|
|
|
603
597
|
return a.group < b.group ? -1 : 1;
|
|
604
598
|
}
|
|
605
599
|
};
|
|
606
|
-
ViewContainerModel = (
|
|
607
|
-
(
|
|
608
|
-
(
|
|
609
|
-
(
|
|
610
|
-
], ViewContainerModel))
|
|
600
|
+
ViewContainerModel = ( __decorate([
|
|
601
|
+
( __param(1, IInstantiationService)),
|
|
602
|
+
( __param(2, IContextKeyService)),
|
|
603
|
+
( __param(3, ILoggerService))
|
|
604
|
+
], ViewContainerModel));
|
|
611
605
|
|
|
612
606
|
export { ViewContainerModel, getViewsStateStorageId };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AbstractTextEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/textEditor';
|
|
2
|
-
export { AbstractTextEditor, TextEditorPaneSelection } from 'vscode/vscode/vs/workbench/browser/parts/editor/textEditor';
|
|
3
|
-
import { setAbstractTextEditor } from './textEditor.weak.js';
|
|
4
|
-
|
|
5
|
-
setAbstractTextEditor(AbstractTextEditor);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
let AbstractTextEditor = class {};
|
|
2
|
-
class FakeAbstractTextEditor {
|
|
3
|
-
static [Symbol.hasInstance](instance) {
|
|
4
|
-
return AbstractTextEditor != null && instance instanceof AbstractTextEditor
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
function setAbstractTextEditor(_AbstractTextEditor) {
|
|
8
|
-
AbstractTextEditor = _AbstractTextEditor;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { FakeAbstractTextEditor as AbstractTextEditor, setAbstractTextEditor };
|
package/tools/editorAssets.js
DELETED
package/tools/url.js
DELETED
package/viewCommon.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
2
|
-
import { IViewDescriptorService } from 'vscode/vscode/vs/workbench/common/views.service';
|
|
3
|
-
import { ViewDescriptorService } from './vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js';
|
|
4
|
-
import { IActivityService } from 'vscode/vscode/vs/workbench/services/activity/common/activity.service';
|
|
5
|
-
import { ActivityService } from 'vscode/vscode/vs/workbench/services/activity/browser/activityService';
|
|
6
|
-
import { IPaneCompositePartService } from 'vscode/vscode/vs/workbench/services/panecomposite/browser/panecomposite.service';
|
|
7
|
-
import { IEditorResolverService } from 'vscode/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
8
|
-
import { EditorResolverService } from './vscode/src/vs/workbench/services/editor/browser/editorResolverService.js';
|
|
9
|
-
import { BreadcrumbsService } from '@codingame/monaco-vscode-explorer-outline-timeline-view-common-views-workbench-common/vscode/vs/workbench/browser/parts/editor/breadcrumbs';
|
|
10
|
-
import { IBreadcrumbsService } from 'vscode/vscode/vs/workbench/browser/parts/editor/breadcrumbs.service';
|
|
11
|
-
import { IContextViewService } from 'vscode/vscode/vs/platform/contextview/browser/contextView.service';
|
|
12
|
-
import { ContextViewService } from 'vscode/vscode/vs/platform/contextview/browser/contextViewService';
|
|
13
|
-
import { ICodeEditorService } from 'vscode/vscode/vs/editor/browser/services/codeEditorService';
|
|
14
|
-
import { TextEditorService } from 'vscode/vscode/vs/workbench/services/textfile/common/textEditorService';
|
|
15
|
-
import { ITextEditorService } from 'vscode/vscode/vs/workbench/services/textfile/common/textEditorService.service';
|
|
16
|
-
import { CodeEditorService } from 'vscode/vscode/vs/workbench/services/editor/browser/codeEditorService';
|
|
17
|
-
import { UntitledTextEditorService } from './vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js';
|
|
18
|
-
import { IUntitledTextEditorService } from 'vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorService.service';
|
|
19
|
-
import { IHistoryService } from 'vscode/vscode/vs/workbench/services/history/common/history.service';
|
|
20
|
-
import { HistoryService } from './vscode/src/vs/workbench/services/history/browser/historyService.js';
|
|
21
|
-
import { ICustomEditorService } from 'vscode/vscode/vs/workbench/contrib/customEditor/common/customEditor.service';
|
|
22
|
-
import { CustomEditorService } from './vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js';
|
|
23
|
-
import { WebviewService } from './vscode/src/vs/workbench/contrib/webview/browser/webviewService.js';
|
|
24
|
-
import { WebviewEditorService } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService';
|
|
25
|
-
import { IWebviewWorkbenchService } from 'vscode/vscode/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service';
|
|
26
|
-
import { IWebviewService } from 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.service';
|
|
27
|
-
import { WebviewViewService } from './vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js';
|
|
28
|
-
import { IWebviewViewService } from 'vscode/vscode/vs/workbench/contrib/webviewView/browser/webviewViewService.service';
|
|
29
|
-
import { IProgressService } from 'vscode/vscode/vs/platform/progress/common/progress.service';
|
|
30
|
-
import { ProgressService } from './vscode/src/vs/workbench/services/progress/browser/progressService.js';
|
|
31
|
-
import { PaneCompositePartService } from './vscode/src/vs/workbench/browser/parts/paneCompositePartService.js';
|
|
32
|
-
import { BrowserAuxiliaryWindowService } from 'vscode/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService';
|
|
33
|
-
import { IAuxiliaryWindowService } from 'vscode/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service';
|
|
34
|
-
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
35
|
-
import { ViewsService } from 'vscode/vscode/vs/workbench/services/views/browser/viewsService';
|
|
36
|
-
import { IEditorPaneService } from 'vscode/vscode/vs/workbench/services/editor/common/editorPaneService.service';
|
|
37
|
-
import { EditorPaneService } from './vscode/src/vs/workbench/services/editor/browser/editorPaneService.js';
|
|
38
|
-
import { CustomEditorLabelService } from 'vscode/vscode/vs/workbench/services/editor/common/customEditorLabelService';
|
|
39
|
-
import { ICustomEditorLabelService } from 'vscode/vscode/vs/workbench/services/editor/common/customEditorLabelService.service';
|
|
40
|
-
import { ActionViewItemService } from './vscode/src/vs/platform/actions/browser/actionViewItemService.js';
|
|
41
|
-
import { IActionViewItemService } from 'vscode/vscode/vs/platform/actions/browser/actionViewItemService.service';
|
|
42
|
-
import getServiceOverride$1 from '@codingame/monaco-vscode-bulk-edit-service-override';
|
|
43
|
-
import { changeUrlDomain } from './tools/url.js';
|
|
44
|
-
import { registerAssets } from 'vscode/assets';
|
|
45
|
-
import { registerServiceInitializePostParticipant } from 'vscode/lifecycle';
|
|
46
|
-
import './vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js';
|
|
47
|
-
import './vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js';
|
|
48
|
-
import './vscode/src/vs/workbench/browser/actions/listCommands.js';
|
|
49
|
-
import 'vscode/vscode/vs/workbench/browser/parts/views/media/views.css';
|
|
50
|
-
import './vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js';
|
|
51
|
-
import './vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js';
|
|
52
|
-
import 'vscode/vscode/vs/workbench/browser/workbench.contribution';
|
|
53
|
-
import './vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js';
|
|
54
|
-
import './vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js';
|
|
55
|
-
import './vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js';
|
|
56
|
-
import './vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js';
|
|
57
|
-
import './vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js';
|
|
58
|
-
import 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.contribution';
|
|
59
|
-
import './vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js';
|
|
60
|
-
import './vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js';
|
|
61
|
-
import './vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js';
|
|
62
|
-
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
63
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._editorPane';
|
|
64
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileCommands._save';
|
|
65
|
-
import './vscode/src/vs/workbench/browser/actions/navigationActions.js';
|
|
66
|
-
import 'vscode/vscode/vs/workbench/browser/style';
|
|
67
|
-
import './tools/editorAssets.js';
|
|
68
|
-
import '@codingame/monaco-vscode-view-common-views-workbench-common/vscode/vs/workbench/browser/parts/editor/editorParts';
|
|
69
|
-
|
|
70
|
-
let webviewIframeAlternateDomains;
|
|
71
|
-
registerAssets({
|
|
72
|
-
'vs/workbench/contrib/webview/browser/pre/service-worker.js': () => changeUrlDomain(new URL('./assets/service-worker.js', import.meta.url).href, webviewIframeAlternateDomains),
|
|
73
|
-
'vs/workbench/contrib/webview/browser/pre/index.html': () => changeUrlDomain(new URL('./assets/index.html', import.meta.url).href, webviewIframeAlternateDomains),
|
|
74
|
-
'vs/workbench/contrib/webview/browser/pre/index-no-csp.html': () => changeUrlDomain(new URL('./assets/index-no-csp.html', import.meta.url).href, webviewIframeAlternateDomains),
|
|
75
|
-
'vs/workbench/contrib/webview/browser/pre/fake.html': () => changeUrlDomain(new URL('./assets/fake.html', import.meta.url).href, webviewIframeAlternateDomains)
|
|
76
|
-
});
|
|
77
|
-
registerServiceInitializePostParticipant(async (accessor) => {
|
|
78
|
-
accessor.get(IHistoryService);
|
|
79
|
-
});
|
|
80
|
-
function getServiceOverride(_webviewIframeAlternateDomains) {
|
|
81
|
-
if (_webviewIframeAlternateDomains != null) {
|
|
82
|
-
webviewIframeAlternateDomains = _webviewIframeAlternateDomains;
|
|
83
|
-
}
|
|
84
|
-
return {
|
|
85
|
-
...getServiceOverride$1(),
|
|
86
|
-
[( IViewsService.toString())]: new SyncDescriptor(ViewsService, [], false),
|
|
87
|
-
[( IViewDescriptorService.toString())]: new SyncDescriptor(ViewDescriptorService, [], true),
|
|
88
|
-
[( IActivityService.toString())]: new SyncDescriptor(ActivityService, [], true),
|
|
89
|
-
[( IPaneCompositePartService.toString())]: new SyncDescriptor(PaneCompositePartService, [], true),
|
|
90
|
-
[( ICodeEditorService.toString())]: new SyncDescriptor(CodeEditorService, [], true),
|
|
91
|
-
[( ITextEditorService.toString())]: new SyncDescriptor(TextEditorService, [], false),
|
|
92
|
-
[( IEditorResolverService.toString())]: new SyncDescriptor(EditorResolverService, [], false),
|
|
93
|
-
[( IBreadcrumbsService.toString())]: new SyncDescriptor(BreadcrumbsService, [], true),
|
|
94
|
-
[( IContextViewService.toString())]: new SyncDescriptor(ContextViewService, [], true),
|
|
95
|
-
[( IUntitledTextEditorService.toString())]: new SyncDescriptor(UntitledTextEditorService, [], true),
|
|
96
|
-
[( IHistoryService.toString())]: new SyncDescriptor(HistoryService, [], false),
|
|
97
|
-
[( ICustomEditorService.toString())]: new SyncDescriptor(CustomEditorService, [], true),
|
|
98
|
-
[( IWebviewService.toString())]: new SyncDescriptor(WebviewService, [], true),
|
|
99
|
-
[( IWebviewViewService.toString())]: new SyncDescriptor(WebviewViewService, [], true),
|
|
100
|
-
[( IWebviewWorkbenchService.toString())]: new SyncDescriptor(WebviewEditorService, [], true),
|
|
101
|
-
[( IProgressService.toString())]: new SyncDescriptor(ProgressService, [], true),
|
|
102
|
-
[( IAuxiliaryWindowService.toString())]: new SyncDescriptor(BrowserAuxiliaryWindowService, [], true),
|
|
103
|
-
[( IEditorPaneService.toString())]: new SyncDescriptor(EditorPaneService, [], true),
|
|
104
|
-
[( ICustomEditorLabelService.toString())]: new SyncDescriptor(CustomEditorLabelService, [], true),
|
|
105
|
-
[( IActionViewItemService.toString())]: new SyncDescriptor(ActionViewItemService, [], true)
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export { getServiceOverride as default };
|