@codingame/monaco-vscode-view-common-service-override 4.5.1 → 4.5.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/package.json +3 -3
- package/vscode/src/vs/base/browser/ui/grid/grid.js +12 -12
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +26 -26
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +4 -3
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +127 -220
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +43 -44
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -30
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +67 -138
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +21 -36
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +26 -27
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +17 -31
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +215 -764
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +27 -42
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +24 -23
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +31 -33
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +51 -54
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +38 -41
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +21 -24
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -5
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +17 -20
- package/vscode/src/vs/workbench/browser/window.js +41 -92
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +41 -78
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +23 -46
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +36 -27
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +14 -15
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +10 -11
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +25 -52
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +55 -87
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +18 -48
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +61 -150
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +15 -70
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +9 -20
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -65
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +38 -113
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +12 -19
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +34 -75
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +16 -37
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +40 -43
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +12 -11
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +24 -61
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -6
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +37 -70
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +23 -46
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +26 -27
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +50 -52
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +18 -34
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +7 -10
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +2 -2
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +45 -46
- package/vscode/src/vs/workbench/services/driver/browser/driver.js +8 -6
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +45 -68
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +95 -98
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +34 -74
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +69 -67
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +52 -47
|
@@ -24,6 +24,7 @@ import { stripIcons } from 'vscode/vscode/vs/base/common/iconLabels';
|
|
|
24
24
|
import { defaultButtonStyles, defaultCheckboxStyles, defaultInputBoxStyles, defaultDialogStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
25
25
|
import Severity$1 from 'vscode/vscode/vs/base/common/severity';
|
|
26
26
|
|
|
27
|
+
const _moduleId = "vs/workbench/services/progress/browser/progressService";
|
|
27
28
|
let ProgressService = class ProgressService extends Disposable {
|
|
28
29
|
constructor(activityService, paneCompositeService, viewDescriptorService, viewsService, notificationService, statusbarService, layoutService, keybindingService) {
|
|
29
30
|
super();
|
|
@@ -51,7 +52,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
51
52
|
if (this.viewDescriptorService.getViewDescriptorById(location) !== null) {
|
|
52
53
|
return this.withViewProgress(location, task, { ...options, location });
|
|
53
54
|
}
|
|
54
|
-
throw new Error(`Bad progress location: ${location}`);
|
|
55
|
+
throw ( (new Error(`Bad progress location: ${location}`)));
|
|
55
56
|
};
|
|
56
57
|
if (typeof location === 'string') {
|
|
57
58
|
return handleStringLocation(location);
|
|
@@ -85,11 +86,11 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
85
86
|
case 20 :
|
|
86
87
|
return this.withDialogProgress(options, task, onDidCancel);
|
|
87
88
|
default:
|
|
88
|
-
throw new Error(`Bad progress location: ${location}`);
|
|
89
|
+
throw ( (new Error(`Bad progress location: ${location}`)));
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
withWindowProgress(options, callback) {
|
|
92
|
-
const task = [options, ( new Progress(() => this.updateWindowProgress()))];
|
|
93
|
+
const task = [options, ( (new Progress(() => this.updateWindowProgress())))];
|
|
93
94
|
const promise = callback(task[1]);
|
|
94
95
|
let delayHandle = setTimeout(() => {
|
|
95
96
|
delayHandle = undefined;
|
|
@@ -116,52 +117,23 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
116
117
|
let title;
|
|
117
118
|
const source = options.source && typeof options.source !== 'string' ? options.source.label : options.source;
|
|
118
119
|
if (progressTitle && progressMessage) {
|
|
119
|
-
text = ( localizeWithPath(
|
|
120
|
-
|
|
121
|
-
'progress.text2',
|
|
122
|
-
"{0}: {1}",
|
|
123
|
-
progressTitle,
|
|
124
|
-
progressMessage
|
|
125
|
-
));
|
|
126
|
-
title = source ? ( localizeWithPath(
|
|
127
|
-
'vs/workbench/services/progress/browser/progressService',
|
|
128
|
-
'progress.title3',
|
|
129
|
-
"[{0}] {1}: {2}",
|
|
130
|
-
source,
|
|
131
|
-
progressTitle,
|
|
132
|
-
progressMessage
|
|
133
|
-
)) : text;
|
|
120
|
+
text = ( localizeWithPath(_moduleId, 0, "{0}: {1}", progressTitle, progressMessage));
|
|
121
|
+
title = source ? ( localizeWithPath(_moduleId, 1, "[{0}] {1}: {2}", source, progressTitle, progressMessage)) : text;
|
|
134
122
|
}
|
|
135
123
|
else if (progressTitle) {
|
|
136
124
|
text = progressTitle;
|
|
137
|
-
title = source ? ( localizeWithPath(
|
|
138
|
-
'vs/workbench/services/progress/browser/progressService',
|
|
139
|
-
'progress.title2',
|
|
140
|
-
"[{0}]: {1}",
|
|
141
|
-
source,
|
|
142
|
-
progressTitle
|
|
143
|
-
)) : text;
|
|
125
|
+
title = source ? ( localizeWithPath(_moduleId, 2, "[{0}]: {1}", source, progressTitle)) : text;
|
|
144
126
|
}
|
|
145
127
|
else if (progressMessage) {
|
|
146
128
|
text = progressMessage;
|
|
147
|
-
title = source ? ( localizeWithPath(
|
|
148
|
-
'vs/workbench/services/progress/browser/progressService',
|
|
149
|
-
'progress.title2',
|
|
150
|
-
"[{0}]: {1}",
|
|
151
|
-
source,
|
|
152
|
-
progressMessage
|
|
153
|
-
)) : text;
|
|
129
|
+
title = source ? ( localizeWithPath(_moduleId, 2, "[{0}]: {1}", source, progressMessage)) : text;
|
|
154
130
|
}
|
|
155
131
|
else {
|
|
156
132
|
this.updateWindowProgress(idx + 1);
|
|
157
133
|
return;
|
|
158
134
|
}
|
|
159
135
|
const statusEntryProperties = {
|
|
160
|
-
name: ( localizeWithPath(
|
|
161
|
-
'vs/workbench/services/progress/browser/progressService',
|
|
162
|
-
'status.progress',
|
|
163
|
-
"Progress Message"
|
|
164
|
-
)),
|
|
136
|
+
name: ( localizeWithPath(_moduleId, 3, "Progress Message")),
|
|
165
137
|
text,
|
|
166
138
|
showProgress: options.type || true,
|
|
167
139
|
ariaLabel: text,
|
|
@@ -186,9 +158,9 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
186
158
|
get done() { return this._done; }
|
|
187
159
|
constructor() {
|
|
188
160
|
super();
|
|
189
|
-
this._onDidReport = this._register(( new Emitter()));
|
|
161
|
+
this._onDidReport = this._register(( (new Emitter())));
|
|
190
162
|
this.onDidReport = this._onDidReport.event;
|
|
191
|
-
this._onWillDispose = this._register(( new Emitter()));
|
|
163
|
+
this._onWillDispose = this._register(( (new Emitter())));
|
|
192
164
|
this.onWillDispose = this._onWillDispose.event;
|
|
193
165
|
this._step = undefined;
|
|
194
166
|
this._done = false;
|
|
@@ -212,17 +184,17 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
212
184
|
}
|
|
213
185
|
});
|
|
214
186
|
const createWindowProgress = () => {
|
|
215
|
-
const promise = ( new DeferredPromise());
|
|
187
|
+
const promise = ( (new DeferredPromise()));
|
|
216
188
|
this.withWindowProgress({
|
|
217
189
|
location: 10 ,
|
|
218
|
-
title: options.title ? ( parseLinkedText(options.title).toString()) : undefined,
|
|
190
|
+
title: options.title ? ( (parseLinkedText(options.title).toString())) : undefined,
|
|
219
191
|
command: 'notifications.showList',
|
|
220
192
|
type: options.type
|
|
221
193
|
}, progress => {
|
|
222
194
|
function reportProgress(step) {
|
|
223
195
|
if (step.message) {
|
|
224
196
|
progress.report({
|
|
225
|
-
message: ( parseLinkedText(step.message).toString())
|
|
197
|
+
message: ( (parseLinkedText(step.message).toString()))
|
|
226
198
|
});
|
|
227
199
|
}
|
|
228
200
|
}
|
|
@@ -237,7 +209,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
237
209
|
return toDisposable(() => promise.complete());
|
|
238
210
|
};
|
|
239
211
|
const createNotification = (message, priority, increment) => {
|
|
240
|
-
const notificationDisposables = ( new DisposableStore());
|
|
212
|
+
const notificationDisposables = ( (new DisposableStore()));
|
|
241
213
|
const primaryActions = options.primaryActions ? Array.from(options.primaryActions) : [];
|
|
242
214
|
const secondaryActions = options.secondaryActions ? Array.from(options.secondaryActions) : [];
|
|
243
215
|
if (options.buttons) {
|
|
@@ -257,11 +229,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
257
229
|
if (options.cancellable) {
|
|
258
230
|
const cancelAction = new (class extends Action {
|
|
259
231
|
constructor() {
|
|
260
|
-
super('progress.cancel', ( localizeWithPath(
|
|
261
|
-
'vs/workbench/services/progress/browser/progressService',
|
|
262
|
-
'cancel',
|
|
263
|
-
"Cancel"
|
|
264
|
-
)), undefined, true);
|
|
232
|
+
super('progress.cancel', ( localizeWithPath(_moduleId, 4, "Cancel")), undefined, true);
|
|
265
233
|
}
|
|
266
234
|
async run() {
|
|
267
235
|
progressStateModel.cancel();
|
|
@@ -375,7 +343,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
375
343
|
let activityProgress;
|
|
376
344
|
let delayHandle = setTimeout(() => {
|
|
377
345
|
delayHandle = undefined;
|
|
378
|
-
const handle = this.activityService.showViewContainerActivity(viewletId, { badge: ( new ProgressBadge(() => '')), priority: 100 });
|
|
346
|
+
const handle = this.activityService.showViewContainerActivity(viewletId, { badge: ( (new ProgressBadge(() => ''))), priority: 100 });
|
|
379
347
|
const startTimeVisible = Date.now();
|
|
380
348
|
const minTimeVisible = 300;
|
|
381
349
|
activityProgress = {
|
|
@@ -433,7 +401,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
433
401
|
return promise;
|
|
434
402
|
}
|
|
435
403
|
withDialogProgress(options, task, onDidCancel) {
|
|
436
|
-
const disposables = ( new DisposableStore());
|
|
404
|
+
const disposables = ( (new DisposableStore()));
|
|
437
405
|
const allowableCommands = [
|
|
438
406
|
'workbench.action.quit',
|
|
439
407
|
'workbench.action.reloadWindow',
|
|
@@ -446,17 +414,9 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
446
414
|
const createDialog = (message) => {
|
|
447
415
|
const buttons = options.buttons || [];
|
|
448
416
|
if (!options.sticky) {
|
|
449
|
-
buttons.push(options.cancellable ? ( localizeWithPath(
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
"Cancel"
|
|
453
|
-
)) : ( localizeWithPath(
|
|
454
|
-
'vs/workbench/services/progress/browser/progressService',
|
|
455
|
-
'dismiss',
|
|
456
|
-
"Dismiss"
|
|
457
|
-
)));
|
|
458
|
-
}
|
|
459
|
-
dialog = ( new Dialog(this.layoutService.activeContainer, message, buttons, {
|
|
417
|
+
buttons.push(options.cancellable ? ( localizeWithPath(_moduleId, 4, "Cancel")) : ( localizeWithPath(_moduleId, 5, "Dismiss")));
|
|
418
|
+
}
|
|
419
|
+
dialog = ( (new Dialog(this.layoutService.activeContainer, message, buttons, {
|
|
460
420
|
type: 'pending',
|
|
461
421
|
detail: options.detail,
|
|
462
422
|
cancelId: buttons.length - 1,
|
|
@@ -474,7 +434,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
474
434
|
checkboxStyles: defaultCheckboxStyles,
|
|
475
435
|
inputBoxStyles: defaultInputBoxStyles,
|
|
476
436
|
dialogStyles: defaultDialogStyles
|
|
477
|
-
}));
|
|
437
|
+
})));
|
|
478
438
|
disposables.add(dialog);
|
|
479
439
|
dialog.show().then(dialogResult => {
|
|
480
440
|
onDidCancel?.(dialogResult.button);
|
|
@@ -484,7 +444,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
484
444
|
};
|
|
485
445
|
let delay = options.delay ?? 0;
|
|
486
446
|
let latestMessage = undefined;
|
|
487
|
-
const scheduler = disposables.add(( new RunOnceScheduler(() => {
|
|
447
|
+
const scheduler = disposables.add(( (new RunOnceScheduler(() => {
|
|
488
448
|
delay = 0;
|
|
489
449
|
if (latestMessage && !dialog) {
|
|
490
450
|
dialog = createDialog(latestMessage);
|
|
@@ -492,7 +452,7 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
492
452
|
else if (latestMessage) {
|
|
493
453
|
dialog.updateMessage(latestMessage);
|
|
494
454
|
}
|
|
495
|
-
}, 0)));
|
|
455
|
+
}, 0))));
|
|
496
456
|
const updateDialog = function (message) {
|
|
497
457
|
latestMessage = message;
|
|
498
458
|
if (!scheduler.isScheduled()) {
|
|
@@ -513,15 +473,15 @@ let ProgressService = class ProgressService extends Disposable {
|
|
|
513
473
|
return promise;
|
|
514
474
|
}
|
|
515
475
|
};
|
|
516
|
-
ProgressService = ( __decorate([
|
|
517
|
-
( __param(0, IActivityService)),
|
|
518
|
-
( __param(1, IPaneCompositePartService)),
|
|
519
|
-
( __param(2, IViewDescriptorService)),
|
|
520
|
-
( __param(3, IViewsService)),
|
|
521
|
-
( __param(4, INotificationService)),
|
|
522
|
-
( __param(5, IStatusbarService)),
|
|
523
|
-
( __param(6, ILayoutService)),
|
|
524
|
-
( __param(7, IKeybindingService))
|
|
525
|
-
], ProgressService));
|
|
476
|
+
ProgressService = ( (__decorate([
|
|
477
|
+
( (__param(0, IActivityService))),
|
|
478
|
+
( (__param(1, IPaneCompositePartService))),
|
|
479
|
+
( (__param(2, IViewDescriptorService))),
|
|
480
|
+
( (__param(3, IViewsService))),
|
|
481
|
+
( (__param(4, INotificationService))),
|
|
482
|
+
( (__param(5, IStatusbarService))),
|
|
483
|
+
( (__param(6, ILayoutService))),
|
|
484
|
+
( (__param(7, IKeybindingService)))
|
|
485
|
+
], ProgressService)));
|
|
526
486
|
|
|
527
487
|
export { ProgressService };
|
|
@@ -18,6 +18,7 @@ import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
|
18
18
|
import { ILoggerService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
19
19
|
|
|
20
20
|
var ViewDescriptorService_1;
|
|
21
|
+
const _moduleId = "vs/workbench/services/views/browser/viewDescriptorService";
|
|
21
22
|
function getViewContainerStorageId(viewContainerId) { return `${viewContainerId}.state`; }
|
|
22
23
|
let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
23
24
|
static { ViewDescriptorService_1 = this; }
|
|
@@ -31,28 +32,28 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
31
32
|
this.storageService = storageService;
|
|
32
33
|
this.extensionService = extensionService;
|
|
33
34
|
this.telemetryService = telemetryService;
|
|
34
|
-
this._onDidChangeContainer = this._register(( new Emitter()));
|
|
35
|
+
this._onDidChangeContainer = this._register(( (new Emitter())));
|
|
35
36
|
this.onDidChangeContainer = this._onDidChangeContainer.event;
|
|
36
|
-
this._onDidChangeLocation = this._register(( new Emitter()));
|
|
37
|
+
this._onDidChangeLocation = this._register(( (new Emitter())));
|
|
37
38
|
this.onDidChangeLocation = this._onDidChangeLocation.event;
|
|
38
|
-
this._onDidChangeContainerLocation = this._register(( new Emitter()));
|
|
39
|
+
this._onDidChangeContainerLocation = this._register(( (new Emitter())));
|
|
39
40
|
this.onDidChangeContainerLocation = this._onDidChangeContainerLocation.event;
|
|
40
|
-
this.viewContainerModels = this._register(( new DisposableMap()));
|
|
41
|
-
this.viewsVisibilityActionDisposables = this._register(( new DisposableMap()));
|
|
41
|
+
this.viewContainerModels = this._register(( (new DisposableMap())));
|
|
42
|
+
this.viewsVisibilityActionDisposables = this._register(( (new DisposableMap())));
|
|
42
43
|
this.canRegisterViewsVisibilityActions = false;
|
|
43
|
-
this._onDidChangeViewContainers = this._register(( new Emitter()));
|
|
44
|
+
this._onDidChangeViewContainers = this._register(( (new Emitter())));
|
|
44
45
|
this.onDidChangeViewContainers = this._onDidChangeViewContainers.event;
|
|
45
46
|
this.logger = loggerService.createLogger(VIEWS_LOG_ID, { name: VIEWS_LOG_NAME, hidden: true });
|
|
46
|
-
this.activeViewContextKeys = ( new Map());
|
|
47
|
-
this.movableViewContextKeys = ( new Map());
|
|
48
|
-
this.defaultViewLocationContextKeys = ( new Map());
|
|
49
|
-
this.defaultViewContainerLocationContextKeys = ( new Map());
|
|
50
|
-
this.viewContainersRegistry = ( Registry.as(Extensions.ViewContainersRegistry));
|
|
51
|
-
this.viewsRegistry = ( Registry.as(Extensions.ViewsRegistry));
|
|
47
|
+
this.activeViewContextKeys = ( (new Map()));
|
|
48
|
+
this.movableViewContextKeys = ( (new Map()));
|
|
49
|
+
this.defaultViewLocationContextKeys = ( (new Map()));
|
|
50
|
+
this.defaultViewContainerLocationContextKeys = ( (new Map()));
|
|
51
|
+
this.viewContainersRegistry = ( (Registry.as(Extensions.ViewContainersRegistry)));
|
|
52
|
+
this.viewsRegistry = ( (Registry.as(Extensions.ViewsRegistry)));
|
|
52
53
|
this.migrateToViewsCustomizationsStorage();
|
|
53
|
-
this.viewContainersCustomLocations = ( new Map(Object.entries(this.viewCustomizations.viewContainerLocations)));
|
|
54
|
-
this.viewDescriptorsCustomLocations = ( new Map(Object.entries(this.viewCustomizations.viewLocations)));
|
|
55
|
-
this.viewContainerBadgeEnablementStates = ( new Map(Object.entries(this.viewCustomizations.viewContainerBadgeEnablementStates)));
|
|
54
|
+
this.viewContainersCustomLocations = ( (new Map(Object.entries(this.viewCustomizations.viewContainerLocations))));
|
|
55
|
+
this.viewDescriptorsCustomLocations = ( (new Map(Object.entries(this.viewCustomizations.viewLocations))));
|
|
56
|
+
this.viewContainerBadgeEnablementStates = ( (new Map(Object.entries(this.viewCustomizations.viewContainerBadgeEnablementStates))));
|
|
56
57
|
this.viewContainers.forEach(viewContainer => this.onDidRegisterViewContainer(viewContainer));
|
|
57
58
|
this._register(this.viewsRegistry.onViewsRegistered(views => this.onDidRegisterViews(views)));
|
|
58
59
|
this._register(this.viewsRegistry.onViewsDeregistered(({ views, viewContainer }) => this.onDidDeregisterViews(views, viewContainer)));
|
|
@@ -65,7 +66,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
65
66
|
this.onDidDeregisterViewContainer(viewContainer);
|
|
66
67
|
this._onDidChangeViewContainers.fire({ removed: [{ container: viewContainer, location: viewContainerLocation }], added: [] });
|
|
67
68
|
}));
|
|
68
|
-
this._register(this.storageService.onDidChangeValue(0 , ViewDescriptorService_1.VIEWS_CUSTOMIZATIONS, this._register(( new DisposableStore())))(() => this.onDidStorageChange()));
|
|
69
|
+
this._register(this.storageService.onDidChangeValue(0 , ViewDescriptorService_1.VIEWS_CUSTOMIZATIONS, this._register(( (new DisposableStore()))))(() => this.onDidStorageChange()));
|
|
69
70
|
this.extensionService.whenInstalledExtensionsRegistered().then(() => this.whenExtensionsRegistered());
|
|
70
71
|
}
|
|
71
72
|
migrateToViewsCustomizationsStorage() {
|
|
@@ -91,7 +92,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
91
92
|
registerGroupedViews(groupedViews) {
|
|
92
93
|
for (const [containerId, views] of groupedViews.entries()) {
|
|
93
94
|
const viewContainer = this.viewContainersRegistry.get(containerId);
|
|
94
|
-
if (!viewContainer || !( this.viewContainerModels.has(viewContainer))) {
|
|
95
|
+
if (!viewContainer || !( (this.viewContainerModels.has(viewContainer)))) {
|
|
95
96
|
if (this.isGeneratedContainerId(containerId)) {
|
|
96
97
|
const viewContainerLocation = this.viewContainersCustomLocations.get(containerId);
|
|
97
98
|
if (viewContainerLocation !== undefined) {
|
|
@@ -107,7 +108,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
107
108
|
deregisterGroupedViews(groupedViews) {
|
|
108
109
|
for (const [viewContainerId, views] of groupedViews.entries()) {
|
|
109
110
|
const viewContainer = this.viewContainersRegistry.get(viewContainerId);
|
|
110
|
-
if (!viewContainer || !( this.viewContainerModels.has(viewContainer))) {
|
|
111
|
+
if (!viewContainer || !( (this.viewContainerModels.has(viewContainer)))) {
|
|
111
112
|
continue;
|
|
112
113
|
}
|
|
113
114
|
this.removeViews(viewContainer, views);
|
|
@@ -127,7 +128,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
127
128
|
}
|
|
128
129
|
whenExtensionsRegistered() {
|
|
129
130
|
this.moveOrphanViewsToDefaultLocation();
|
|
130
|
-
for (const viewContainerId of [...( this.viewContainersCustomLocations.keys())]) {
|
|
131
|
+
for (const viewContainerId of [...( (this.viewContainersCustomLocations.keys()))]) {
|
|
131
132
|
this.cleanUpGeneratedViewContainer(viewContainerId);
|
|
132
133
|
}
|
|
133
134
|
this.saveViewCustomizations();
|
|
@@ -156,7 +157,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
156
157
|
});
|
|
157
158
|
}
|
|
158
159
|
regroupViews(containerId, views) {
|
|
159
|
-
const viewsByContainer = ( new Map());
|
|
160
|
+
const viewsByContainer = ( (new Map()));
|
|
160
161
|
for (const viewDescriptor of views) {
|
|
161
162
|
const correctContainerId = this.viewDescriptorsCustomLocations.get(viewDescriptor.id) ?? containerId;
|
|
162
163
|
let containerViews = viewsByContainer.get(correctContainerId);
|
|
@@ -225,7 +226,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
225
226
|
if (!views.length) {
|
|
226
227
|
return;
|
|
227
228
|
}
|
|
228
|
-
this.logger.info(`moveViewsToContainer: views:${( views.map(view => view.id)).join(',')} viewContainer:${viewContainer.id} reason:${reason}`);
|
|
229
|
+
this.logger.info(`moveViewsToContainer: views:${( (views.map(view => view.id))).join(',')} viewContainer:${viewContainer.id} reason:${reason}`);
|
|
229
230
|
const from = this.getViewContainerByViewId(views[0].id);
|
|
230
231
|
const to = viewContainer;
|
|
231
232
|
if (from && to && from !== to) {
|
|
@@ -257,10 +258,10 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
257
258
|
this.saveViewCustomizations();
|
|
258
259
|
}
|
|
259
260
|
isViewContainerRemovedPermanently(viewContainerId) {
|
|
260
|
-
return this.isGeneratedContainerId(viewContainerId) && !( this.viewContainersCustomLocations.has(viewContainerId));
|
|
261
|
+
return this.isGeneratedContainerId(viewContainerId) && !( (this.viewContainersCustomLocations.has(viewContainerId)));
|
|
261
262
|
}
|
|
262
263
|
onDidChangeDefaultContainer(views, from, to) {
|
|
263
|
-
const viewsToMove = views.filter(view => !( this.viewDescriptorsCustomLocations.has(view.id))
|
|
264
|
+
const viewsToMove = views.filter(view => !( (this.viewDescriptorsCustomLocations.has(view.id)))
|
|
264
265
|
|| (!this.viewContainers.includes(from) && this.viewDescriptorsCustomLocations.get(view.id) === from.id)
|
|
265
266
|
);
|
|
266
267
|
if (viewsToMove.length) {
|
|
@@ -323,7 +324,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
323
324
|
if (viewContainer && this.getViewContainerModel(viewContainer)?.allViewDescriptors.length) {
|
|
324
325
|
return;
|
|
325
326
|
}
|
|
326
|
-
if ([...( this.viewDescriptorsCustomLocations.values())].includes(viewContainerId)) {
|
|
327
|
+
if ([...( (this.viewDescriptorsCustomLocations.values()))].includes(viewContainerId)) {
|
|
327
328
|
return;
|
|
328
329
|
}
|
|
329
330
|
if (viewContainer) {
|
|
@@ -337,7 +338,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
337
338
|
const id = existingId || this.generateContainerId(location);
|
|
338
339
|
const container = this.viewContainersRegistry.registerViewContainer({
|
|
339
340
|
id,
|
|
340
|
-
ctorDescriptor: ( new SyncDescriptor(ViewPaneContainer, [id, { mergeViewWithContainerWhenSingleView: true }])),
|
|
341
|
+
ctorDescriptor: ( (new SyncDescriptor(ViewPaneContainer, [id, { mergeViewWithContainerWhenSingleView: true }]))),
|
|
341
342
|
title: { value: id, original: id },
|
|
342
343
|
icon: location === 0 ? defaultViewIcon : undefined,
|
|
343
344
|
storageId: getViewContainerStorageId(id),
|
|
@@ -356,8 +357,8 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
356
357
|
}
|
|
357
358
|
onDidViewCustomizationsStorageChange() {
|
|
358
359
|
this._viewCustomizations = undefined;
|
|
359
|
-
const newViewContainerCustomizations = ( new Map(Object.entries(this.viewCustomizations.viewContainerLocations)));
|
|
360
|
-
const newViewDescriptorCustomizations = ( new Map(Object.entries(this.viewCustomizations.viewLocations)));
|
|
360
|
+
const newViewContainerCustomizations = ( (new Map(Object.entries(this.viewCustomizations.viewContainerLocations))));
|
|
361
|
+
const newViewDescriptorCustomizations = ( (new Map(Object.entries(this.viewCustomizations.viewLocations))));
|
|
361
362
|
const viewContainersToMove = [];
|
|
362
363
|
const viewsToMove = [];
|
|
363
364
|
for (const [containerId, location] of newViewContainerCustomizations.entries()) {
|
|
@@ -372,7 +373,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
372
373
|
}
|
|
373
374
|
}
|
|
374
375
|
for (const viewContainer of this.viewContainers) {
|
|
375
|
-
if (!( newViewContainerCustomizations.has(viewContainer.id))) {
|
|
376
|
+
if (!( (newViewContainerCustomizations.has(viewContainer.id)))) {
|
|
376
377
|
const currentLocation = this.getViewContainerLocation(viewContainer);
|
|
377
378
|
const defaultLocation = this.getDefaultViewContainerLocation(viewContainer);
|
|
378
379
|
if (currentLocation !== defaultLocation) {
|
|
@@ -393,7 +394,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
393
394
|
for (const viewContainer of this.viewContainers) {
|
|
394
395
|
const viewContainerModel = this.getViewContainerModel(viewContainer);
|
|
395
396
|
for (const viewDescriptor of viewContainerModel.allViewDescriptors) {
|
|
396
|
-
if (!( newViewDescriptorCustomizations.has(viewDescriptor.id))) {
|
|
397
|
+
if (!( (newViewDescriptorCustomizations.has(viewDescriptor.id)))) {
|
|
397
398
|
const currentContainer = this.getViewContainerByViewId(viewDescriptor.id);
|
|
398
399
|
const defaultContainer = this.getDefaultContainerById(viewDescriptor.id);
|
|
399
400
|
if (currentContainer && defaultContainer && currentContainer !== defaultContainer) {
|
|
@@ -489,13 +490,13 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
489
490
|
getOrRegisterViewContainerModel(viewContainer) {
|
|
490
491
|
let viewContainerModel = this.viewContainerModels.get(viewContainer)?.viewContainerModel;
|
|
491
492
|
if (!viewContainerModel) {
|
|
492
|
-
const disposables = ( new DisposableStore());
|
|
493
|
+
const disposables = ( (new DisposableStore()));
|
|
493
494
|
viewContainerModel = disposables.add(this.instantiationService.createInstance(ViewContainerModel, viewContainer));
|
|
494
495
|
this.onDidChangeActiveViews({ added: viewContainerModel.activeViewDescriptors, removed: [] });
|
|
495
496
|
viewContainerModel.onDidChangeActiveViewDescriptors(changed => this.onDidChangeActiveViews(changed), this, disposables);
|
|
496
497
|
this.onDidChangeVisibleViews({ added: [...viewContainerModel.visibleViewDescriptors], removed: [] });
|
|
497
|
-
viewContainerModel.onDidAddVisibleViewDescriptors(added => this.onDidChangeVisibleViews({ added: ( added.map(({ viewDescriptor }) => viewDescriptor)), removed: [] }), this, disposables);
|
|
498
|
-
viewContainerModel.onDidRemoveVisibleViewDescriptors(removed => this.onDidChangeVisibleViews({ added: [], removed: ( removed.map(({ viewDescriptor }) => viewDescriptor)) }), this, disposables);
|
|
498
|
+
viewContainerModel.onDidAddVisibleViewDescriptors(added => this.onDidChangeVisibleViews({ added: ( (added.map(({ viewDescriptor }) => viewDescriptor))), removed: [] }), this, disposables);
|
|
499
|
+
viewContainerModel.onDidRemoveVisibleViewDescriptors(removed => this.onDidChangeVisibleViews({ added: [], removed: ( (removed.map(({ viewDescriptor }) => viewDescriptor))) }), this, disposables);
|
|
499
500
|
disposables.add(toDisposable(() => this.viewsVisibilityActionDisposables.deleteAndDispose(viewContainer)));
|
|
500
501
|
disposables.add(this.registerResetViewContainerAction(viewContainer));
|
|
501
502
|
const value = { viewContainerModel: viewContainerModel, disposables, dispose: () => disposables.dispose() };
|
|
@@ -539,7 +540,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
539
540
|
}));
|
|
540
541
|
}
|
|
541
542
|
registerViewsVisibilityActionsForContainer(viewContainerModel) {
|
|
542
|
-
const disposables = ( new DisposableStore());
|
|
543
|
+
const disposables = ( (new DisposableStore()));
|
|
543
544
|
viewContainerModel.activeViewDescriptors.forEach((viewDescriptor, index) => {
|
|
544
545
|
if (!viewDescriptor.remoteAuthority) {
|
|
545
546
|
disposables.add(registerAction2(class extends ViewPaneContainerAction {
|
|
@@ -547,21 +548,25 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
547
548
|
super({
|
|
548
549
|
id: `${viewDescriptor.id}.toggleVisibility`,
|
|
549
550
|
viewPaneContainerId: viewContainerModel.viewContainer.id,
|
|
550
|
-
precondition: viewDescriptor.canToggleVisibility && (!viewContainerModel.isVisible(viewDescriptor.id) || viewContainerModel.visibleViewDescriptors.length > 1) ? ContextKeyExpr.true() : ( ContextKeyExpr.false()),
|
|
551
|
-
toggled: ( ContextKeyExpr.has(`${viewDescriptor.id}.visible`)),
|
|
551
|
+
precondition: viewDescriptor.canToggleVisibility && (!viewContainerModel.isVisible(viewDescriptor.id) || viewContainerModel.visibleViewDescriptors.length > 1) ? ContextKeyExpr.true() : ( (ContextKeyExpr.false())),
|
|
552
|
+
toggled: ( (ContextKeyExpr.has(`${viewDescriptor.id}.visible`))),
|
|
552
553
|
title: viewDescriptor.name,
|
|
553
554
|
menu: [{
|
|
554
555
|
id: ViewsSubMenu,
|
|
555
|
-
when: ( ContextKeyExpr.equals('viewContainer', viewContainerModel.viewContainer.id)),
|
|
556
|
+
when: ( (ContextKeyExpr.equals('viewContainer', viewContainerModel.viewContainer.id))),
|
|
556
557
|
order: index,
|
|
557
558
|
}, {
|
|
558
559
|
id: MenuId.ViewContainerTitleContext,
|
|
559
|
-
when: ( ContextKeyExpr.and(
|
|
560
|
+
when: ( (ContextKeyExpr.and(
|
|
561
|
+
(ContextKeyExpr.equals('viewContainer', viewContainerModel.viewContainer.id))
|
|
562
|
+
))),
|
|
560
563
|
order: index,
|
|
561
564
|
group: '1_toggleVisibility'
|
|
562
565
|
}, {
|
|
563
566
|
id: MenuId.ViewTitleContext,
|
|
564
|
-
when: ( ContextKeyExpr.and((
|
|
567
|
+
when: ( (ContextKeyExpr.and( (ContextKeyExpr.or(
|
|
568
|
+
...( (viewContainerModel.visibleViewDescriptors.map(v => ( (ContextKeyExpr.equals('view', v.id))))))
|
|
569
|
+
))))),
|
|
565
570
|
order: index,
|
|
566
571
|
group: '2_toggleVisibility'
|
|
567
572
|
}]
|
|
@@ -576,16 +581,14 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
576
581
|
super({
|
|
577
582
|
id: `${viewDescriptor.id}.removeView`,
|
|
578
583
|
viewPaneContainerId: viewContainerModel.viewContainer.id,
|
|
579
|
-
title: ( localizeWithPath(
|
|
580
|
-
|
|
581
|
-
'hideView',
|
|
582
|
-
"Hide '{0}'",
|
|
583
|
-
viewDescriptor.name.value
|
|
584
|
-
)),
|
|
585
|
-
precondition: viewDescriptor.canToggleVisibility && (!viewContainerModel.isVisible(viewDescriptor.id) || viewContainerModel.visibleViewDescriptors.length > 1) ? ContextKeyExpr.true() : ( ContextKeyExpr.false()),
|
|
584
|
+
title: ( localizeWithPath(_moduleId, 0, "Hide '{0}'", viewDescriptor.name.value)),
|
|
585
|
+
precondition: viewDescriptor.canToggleVisibility && (!viewContainerModel.isVisible(viewDescriptor.id) || viewContainerModel.visibleViewDescriptors.length > 1) ? ContextKeyExpr.true() : ( (ContextKeyExpr.false())),
|
|
586
586
|
menu: [{
|
|
587
587
|
id: MenuId.ViewTitleContext,
|
|
588
|
-
when: ( ContextKeyExpr.and(
|
|
588
|
+
when: ( (ContextKeyExpr.and(
|
|
589
|
+
(ContextKeyExpr.equals('view', viewDescriptor.id)),
|
|
590
|
+
(ContextKeyExpr.has(`${viewDescriptor.id}.visible`))
|
|
591
|
+
))),
|
|
589
592
|
group: '1_hide',
|
|
590
593
|
order: 1
|
|
591
594
|
}]
|
|
@@ -605,14 +608,13 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
605
608
|
constructor() {
|
|
606
609
|
super({
|
|
607
610
|
id: `${viewContainer.id}.resetViewContainerLocation`,
|
|
608
|
-
title: ( localize2WithPath(
|
|
609
|
-
'vs/workbench/services/views/browser/viewDescriptorService',
|
|
610
|
-
'resetViewLocation',
|
|
611
|
-
"Reset Location"
|
|
612
|
-
)),
|
|
611
|
+
title: ( localize2WithPath(_moduleId, 1, "Reset Location")),
|
|
613
612
|
menu: [{
|
|
614
613
|
id: MenuId.ViewContainerTitleContext,
|
|
615
|
-
when: ( ContextKeyExpr.or((
|
|
614
|
+
when: ( (ContextKeyExpr.or( (ContextKeyExpr.and(
|
|
615
|
+
(ContextKeyExpr.equals('viewContainer', viewContainer.id)),
|
|
616
|
+
(ContextKeyExpr.equals(`${viewContainer.id}.defaultViewContainerLocation`, false))
|
|
617
|
+
)))))
|
|
616
618
|
}],
|
|
617
619
|
});
|
|
618
620
|
}
|
|
@@ -634,13 +636,13 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
634
636
|
}
|
|
635
637
|
});
|
|
636
638
|
});
|
|
637
|
-
this.getViewContainerModel(container).add(( views.map(view => {
|
|
639
|
+
this.getViewContainerModel(container).add(( (views.map(view => {
|
|
638
640
|
return {
|
|
639
641
|
viewDescriptor: view,
|
|
640
642
|
collapsed: visibilityState === ViewVisibilityState.Default ? undefined : false,
|
|
641
643
|
visible: visibilityState === ViewVisibilityState.Default ? undefined : true
|
|
642
644
|
};
|
|
643
|
-
})));
|
|
645
|
+
}))));
|
|
644
646
|
}
|
|
645
647
|
removeViews(container, views) {
|
|
646
648
|
this.contextKeyService.bufferChangeEvents(() => {
|
|
@@ -657,7 +659,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
657
659
|
const activeContextKeyId = `${viewDescriptor.id}.active`;
|
|
658
660
|
let contextKey = this.activeViewContextKeys.get(activeContextKeyId);
|
|
659
661
|
if (!contextKey) {
|
|
660
|
-
contextKey = ( new RawContextKey(activeContextKeyId, false)).bindTo(this.contextKeyService);
|
|
662
|
+
contextKey = ( (new RawContextKey(activeContextKeyId, false))).bindTo(this.contextKeyService);
|
|
661
663
|
this.activeViewContextKeys.set(activeContextKeyId, contextKey);
|
|
662
664
|
}
|
|
663
665
|
return contextKey;
|
|
@@ -666,7 +668,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
666
668
|
const activeContextKeyId = `${viewDescriptor.id}.visible`;
|
|
667
669
|
let contextKey = this.activeViewContextKeys.get(activeContextKeyId);
|
|
668
670
|
if (!contextKey) {
|
|
669
|
-
contextKey = ( new RawContextKey(activeContextKeyId, false)).bindTo(this.contextKeyService);
|
|
671
|
+
contextKey = ( (new RawContextKey(activeContextKeyId, false))).bindTo(this.contextKeyService);
|
|
670
672
|
this.activeViewContextKeys.set(activeContextKeyId, contextKey);
|
|
671
673
|
}
|
|
672
674
|
return contextKey;
|
|
@@ -675,7 +677,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
675
677
|
const movableViewContextKeyId = `${viewDescriptor.id}.canMove`;
|
|
676
678
|
let contextKey = this.movableViewContextKeys.get(movableViewContextKeyId);
|
|
677
679
|
if (!contextKey) {
|
|
678
|
-
contextKey = ( new RawContextKey(movableViewContextKeyId, false)).bindTo(this.contextKeyService);
|
|
680
|
+
contextKey = ( (new RawContextKey(movableViewContextKeyId, false))).bindTo(this.contextKeyService);
|
|
679
681
|
this.movableViewContextKeys.set(movableViewContextKeyId, contextKey);
|
|
680
682
|
}
|
|
681
683
|
return contextKey;
|
|
@@ -684,7 +686,7 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
684
686
|
const defaultViewLocationContextKeyId = `${viewDescriptor.id}.defaultViewLocation`;
|
|
685
687
|
let contextKey = this.defaultViewLocationContextKeys.get(defaultViewLocationContextKeyId);
|
|
686
688
|
if (!contextKey) {
|
|
687
|
-
contextKey = ( new RawContextKey(defaultViewLocationContextKeyId, false)).bindTo(this.contextKeyService);
|
|
689
|
+
contextKey = ( (new RawContextKey(defaultViewLocationContextKeyId, false))).bindTo(this.contextKeyService);
|
|
688
690
|
this.defaultViewLocationContextKeys.set(defaultViewLocationContextKeyId, contextKey);
|
|
689
691
|
}
|
|
690
692
|
return contextKey;
|
|
@@ -693,19 +695,19 @@ let ViewDescriptorService = class ViewDescriptorService extends Disposable {
|
|
|
693
695
|
const defaultViewContainerLocationContextKeyId = `${viewContainer.id}.defaultViewContainerLocation`;
|
|
694
696
|
let contextKey = this.defaultViewContainerLocationContextKeys.get(defaultViewContainerLocationContextKeyId);
|
|
695
697
|
if (!contextKey) {
|
|
696
|
-
contextKey = ( new RawContextKey(defaultViewContainerLocationContextKeyId, false)).bindTo(this.contextKeyService);
|
|
698
|
+
contextKey = ( (new RawContextKey(defaultViewContainerLocationContextKeyId, false))).bindTo(this.contextKeyService);
|
|
697
699
|
this.defaultViewContainerLocationContextKeys.set(defaultViewContainerLocationContextKeyId, contextKey);
|
|
698
700
|
}
|
|
699
701
|
return contextKey;
|
|
700
702
|
}
|
|
701
703
|
};
|
|
702
|
-
ViewDescriptorService = ViewDescriptorService_1 = ( __decorate([
|
|
703
|
-
( __param(0, IInstantiationService)),
|
|
704
|
-
( __param(1, IContextKeyService)),
|
|
705
|
-
( __param(2, IStorageService)),
|
|
706
|
-
( __param(3, IExtensionService)),
|
|
707
|
-
( __param(4, ITelemetryService)),
|
|
708
|
-
( __param(5, ILoggerService))
|
|
709
|
-
], ViewDescriptorService));
|
|
704
|
+
ViewDescriptorService = ViewDescriptorService_1 = ( (__decorate([
|
|
705
|
+
( (__param(0, IInstantiationService))),
|
|
706
|
+
( (__param(1, IContextKeyService))),
|
|
707
|
+
( (__param(2, IStorageService))),
|
|
708
|
+
( (__param(3, IExtensionService))),
|
|
709
|
+
( (__param(4, ITelemetryService))),
|
|
710
|
+
( (__param(5, ILoggerService)))
|
|
711
|
+
], ViewDescriptorService)));
|
|
710
712
|
|
|
711
713
|
export { ViewDescriptorService };
|