@codingame/monaco-vscode-view-common-service-override 4.5.2 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/viewCommon.js +3 -6
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +50 -36
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +6 -1
- package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +12 -10
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +7 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +51 -16
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +92 -40
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +15 -12
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +11 -9
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +12 -9
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +8 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +6 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +5 -3
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +13 -11
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +34 -3
- package/vscode/src/vs/workbench/services/driver/browser/driver.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-common-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
30
|
-
"@codingame/monaco-vscode-bulk-edit-service-override": "
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@5.0.1",
|
|
30
|
+
"@codingame/monaco-vscode-bulk-edit-service-override": "5.0.1"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/viewCommon.js
CHANGED
|
@@ -33,10 +33,8 @@ import { BrowserAuxiliaryWindowService } from './vscode/src/vs/workbench/service
|
|
|
33
33
|
import { IAuxiliaryWindowService } from 'vscode/vscode/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.service';
|
|
34
34
|
import { IViewsService } from 'vscode/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
35
35
|
import { ViewsService } from 'vscode/vscode/vs/workbench/services/views/browser/viewsService';
|
|
36
|
-
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
37
36
|
import { IEditorPaneService } from 'vscode/vscode/vs/workbench/services/editor/common/editorPaneService.service';
|
|
38
37
|
import { EditorPaneService } from './vscode/src/vs/workbench/services/editor/browser/editorPaneService.js';
|
|
39
|
-
import { HoverService } from 'vscode/vscode/vs/editor/browser/services/hoverService/hoverService';
|
|
40
38
|
import { CustomEditorLabelService } from 'vscode/vscode/vs/workbench/services/editor/common/customEditorLabelService';
|
|
41
39
|
import { ICustomEditorLabelService } from 'vscode/vscode/vs/workbench/services/editor/common/customEditorLabelService.service';
|
|
42
40
|
import getServiceOverride$1 from '@codingame/monaco-vscode-bulk-edit-service-override';
|
|
@@ -58,9 +56,9 @@ import 'vscode/vscode/vs/workbench/contrib/webview/browser/webview.contribution'
|
|
|
58
56
|
import './vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js';
|
|
59
57
|
import './vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js';
|
|
60
58
|
import './vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js';
|
|
61
|
-
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.
|
|
62
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.
|
|
63
|
-
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileCommands.
|
|
59
|
+
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
60
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/files.contribution._editorPane';
|
|
61
|
+
import 'vscode/vscode/vs/workbench/contrib/files/browser/fileCommands._save';
|
|
64
62
|
import './vscode/src/vs/workbench/browser/actions/navigationActions.js';
|
|
65
63
|
import './vscode/src/vs/workbench/browser/style.js';
|
|
66
64
|
import './tools/editorAssets.js';
|
|
@@ -83,7 +81,6 @@ function getServiceOverride(_webviewIframeAlternateDomains) {
|
|
|
83
81
|
[( IViewDescriptorService.toString())]: new SyncDescriptor(ViewDescriptorService, [], true),
|
|
84
82
|
[( IActivityService.toString())]: new SyncDescriptor(ActivityService, [], true),
|
|
85
83
|
[( IPaneCompositePartService.toString())]: new SyncDescriptor(PaneCompositePartService, [], true),
|
|
86
|
-
[( IHoverService.toString())]: new SyncDescriptor(HoverService, [], true),
|
|
87
84
|
[( ICodeEditorService.toString())]: new SyncDescriptor(CodeEditorService, [], true),
|
|
88
85
|
[( ITextEditorService.toString())]: new SyncDescriptor(TextEditorService, [], false),
|
|
89
86
|
[( IEditorResolverService.toString())]: new SyncDescriptor(EditorResolverService, [], false),
|
|
@@ -31,6 +31,7 @@ import { ITreeViewsService } from 'vscode/vscode/vs/workbench/services/views/bro
|
|
|
31
31
|
import { ILogService } from 'vscode/vscode/vs/platform/log/common/log.service';
|
|
32
32
|
import { Extensions as Extensions$2 } from 'vscode/vscode/vs/workbench/services/extensionManagement/common/extensionFeatures';
|
|
33
33
|
import { Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
|
|
34
|
+
import { MarkdownString } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
34
35
|
|
|
35
36
|
const _moduleId = "vs/workbench/api/browser/viewsExtensionPoint";
|
|
36
37
|
const viewsContainerSchema = {
|
|
@@ -186,6 +187,14 @@ const viewDescriptor = {
|
|
|
186
187
|
18,
|
|
187
188
|
"The initial size of the view. The size will behave like the css 'flex' property, and will set the initial size when the view is first shown. In the side bar, this is the height of the view. This value is only respected when the same extension owns both the view and the view container."
|
|
188
189
|
)),
|
|
190
|
+
},
|
|
191
|
+
accessibilityHelpContent: {
|
|
192
|
+
type: 'string',
|
|
193
|
+
markdownDescription: ( localizeWithPath(
|
|
194
|
+
_moduleId,
|
|
195
|
+
19,
|
|
196
|
+
"When the accessibility help dialog is invoked in this view, this content will be presented to the user as a markdown string. Keybindings will be resolved when provided in the format of <keybinding:commandId>. If there is no keybinding, that will be indicated with a link to configure one."
|
|
197
|
+
))
|
|
189
198
|
}
|
|
190
199
|
}
|
|
191
200
|
};
|
|
@@ -210,11 +219,11 @@ const remoteViewDescriptor = {
|
|
|
210
219
|
type: 'string'
|
|
211
220
|
},
|
|
212
221
|
group: {
|
|
213
|
-
description: ( localizeWithPath(_moduleId,
|
|
222
|
+
description: ( localizeWithPath(_moduleId, 20, 'Nested group in the viewlet')),
|
|
214
223
|
type: 'string'
|
|
215
224
|
},
|
|
216
225
|
remoteName: {
|
|
217
|
-
description: ( localizeWithPath(_moduleId,
|
|
226
|
+
description: ( localizeWithPath(_moduleId, 21, 'The name of the remote type associated with this view')),
|
|
218
227
|
type: ['string', 'array'],
|
|
219
228
|
items: {
|
|
220
229
|
type: 'string'
|
|
@@ -223,13 +232,13 @@ const remoteViewDescriptor = {
|
|
|
223
232
|
}
|
|
224
233
|
};
|
|
225
234
|
const viewsContribution = {
|
|
226
|
-
description: ( localizeWithPath(_moduleId,
|
|
235
|
+
description: ( localizeWithPath(_moduleId, 22, "Contributes views to the editor")),
|
|
227
236
|
type: 'object',
|
|
228
237
|
properties: {
|
|
229
238
|
'explorer': {
|
|
230
239
|
description: ( localizeWithPath(
|
|
231
240
|
_moduleId,
|
|
232
|
-
|
|
241
|
+
23,
|
|
233
242
|
"Contributes views to Explorer container in the Activity bar"
|
|
234
243
|
)),
|
|
235
244
|
type: 'array',
|
|
@@ -237,19 +246,19 @@ const viewsContribution = {
|
|
|
237
246
|
default: []
|
|
238
247
|
},
|
|
239
248
|
'debug': {
|
|
240
|
-
description: ( localizeWithPath(_moduleId,
|
|
249
|
+
description: ( localizeWithPath(_moduleId, 24, "Contributes views to Debug container in the Activity bar")),
|
|
241
250
|
type: 'array',
|
|
242
251
|
items: viewDescriptor,
|
|
243
252
|
default: []
|
|
244
253
|
},
|
|
245
254
|
'scm': {
|
|
246
|
-
description: ( localizeWithPath(_moduleId,
|
|
255
|
+
description: ( localizeWithPath(_moduleId, 25, "Contributes views to SCM container in the Activity bar")),
|
|
247
256
|
type: 'array',
|
|
248
257
|
items: viewDescriptor,
|
|
249
258
|
default: []
|
|
250
259
|
},
|
|
251
260
|
'test': {
|
|
252
|
-
description: ( localizeWithPath(_moduleId,
|
|
261
|
+
description: ( localizeWithPath(_moduleId, 26, "Contributes views to Test container in the Activity bar")),
|
|
253
262
|
type: 'array',
|
|
254
263
|
items: viewDescriptor,
|
|
255
264
|
default: []
|
|
@@ -257,7 +266,7 @@ const viewsContribution = {
|
|
|
257
266
|
'remote': {
|
|
258
267
|
description: ( localizeWithPath(
|
|
259
268
|
_moduleId,
|
|
260
|
-
|
|
269
|
+
27,
|
|
261
270
|
"Contributes views to Remote container in the Activity bar. To contribute to this container, enableProposedApi needs to be turned on"
|
|
262
271
|
)),
|
|
263
272
|
type: 'array',
|
|
@@ -266,7 +275,7 @@ const viewsContribution = {
|
|
|
266
275
|
}
|
|
267
276
|
},
|
|
268
277
|
additionalProperties: {
|
|
269
|
-
description: ( localizeWithPath(_moduleId,
|
|
278
|
+
description: ( localizeWithPath(_moduleId, 28, "Contributes views to contributed views container")),
|
|
270
279
|
type: 'array',
|
|
271
280
|
items: viewDescriptor,
|
|
272
281
|
default: []
|
|
@@ -391,14 +400,14 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
391
400
|
}
|
|
392
401
|
isValidViewsContainer(viewsContainersDescriptors, collector) {
|
|
393
402
|
if (!Array.isArray(viewsContainersDescriptors)) {
|
|
394
|
-
collector.error(( localizeWithPath(_moduleId,
|
|
403
|
+
collector.error(( localizeWithPath(_moduleId, 29, "views containers must be an array")));
|
|
395
404
|
return false;
|
|
396
405
|
}
|
|
397
406
|
for (const descriptor of viewsContainersDescriptors) {
|
|
398
407
|
if (typeof descriptor.id !== 'string' && isFalsyOrWhitespace(descriptor.id)) {
|
|
399
408
|
collector.error(( localizeWithPath(
|
|
400
409
|
_moduleId,
|
|
401
|
-
|
|
410
|
+
30,
|
|
402
411
|
"property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
|
|
403
412
|
'id'
|
|
404
413
|
)));
|
|
@@ -407,7 +416,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
407
416
|
if (!(/^[a-z0-9_-]+$/i.test(descriptor.id))) {
|
|
408
417
|
collector.error(( localizeWithPath(
|
|
409
418
|
_moduleId,
|
|
410
|
-
|
|
419
|
+
30,
|
|
411
420
|
"property `{0}` is mandatory and must be of type `string` with non-empty value. Only alphanumeric characters, '_', and '-' are allowed.",
|
|
412
421
|
'id'
|
|
413
422
|
)));
|
|
@@ -416,7 +425,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
416
425
|
if (typeof descriptor.title !== 'string') {
|
|
417
426
|
collector.error(( localizeWithPath(
|
|
418
427
|
_moduleId,
|
|
419
|
-
|
|
428
|
+
31,
|
|
420
429
|
"property `{0}` is mandatory and must be of type `string`",
|
|
421
430
|
'title'
|
|
422
431
|
)));
|
|
@@ -425,7 +434,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
425
434
|
if (typeof descriptor.icon !== 'string') {
|
|
426
435
|
collector.error(( localizeWithPath(
|
|
427
436
|
_moduleId,
|
|
428
|
-
|
|
437
|
+
31,
|
|
429
438
|
"property `{0}` is mandatory and must be of type `string`",
|
|
430
439
|
'icon'
|
|
431
440
|
)));
|
|
@@ -434,7 +443,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
434
443
|
if (isFalsyOrWhitespace(descriptor.title)) {
|
|
435
444
|
collector.warn(( localizeWithPath(
|
|
436
445
|
_moduleId,
|
|
437
|
-
|
|
446
|
+
32,
|
|
438
447
|
"property `{0}` is mandatory and must be of type `string` with non-empty value",
|
|
439
448
|
'title'
|
|
440
449
|
)));
|
|
@@ -505,7 +514,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
505
514
|
if (key === 'remote' && !isProposedApiEnabled(extension.description, 'contribViewsRemote')) {
|
|
506
515
|
collector.warn(( localizeWithPath(
|
|
507
516
|
_moduleId,
|
|
508
|
-
|
|
517
|
+
33,
|
|
509
518
|
"View container '{0}' requires 'enabledApiProposals: [\"contribViewsRemote\"]' to be added to 'Remote'.",
|
|
510
519
|
key
|
|
511
520
|
)));
|
|
@@ -515,7 +524,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
515
524
|
if (!viewContainer) {
|
|
516
525
|
collector.warn(( localizeWithPath(
|
|
517
526
|
_moduleId,
|
|
518
|
-
|
|
527
|
+
34,
|
|
519
528
|
"View container '{0}' does not exist and all views registered to it will be added to 'Explorer'.",
|
|
520
529
|
key
|
|
521
530
|
)));
|
|
@@ -527,14 +536,14 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
527
536
|
if (( (viewIds.has(item.id)))) {
|
|
528
537
|
collector.error(( localizeWithPath(
|
|
529
538
|
_moduleId,
|
|
530
|
-
|
|
539
|
+
35,
|
|
531
540
|
"Cannot register multiple views with same id `{0}`",
|
|
532
541
|
item.id
|
|
533
542
|
)));
|
|
534
543
|
continue;
|
|
535
544
|
}
|
|
536
545
|
if (this.viewsRegistry.getView(item.id) !== null) {
|
|
537
|
-
collector.error(( localizeWithPath(_moduleId,
|
|
546
|
+
collector.error(( localizeWithPath(_moduleId, 36, "A view with id `{0}` is already registered.", item.id)));
|
|
538
547
|
continue;
|
|
539
548
|
}
|
|
540
549
|
const order = ExtensionIdentifier.equals(extension.description.identifier, container.extensionId)
|
|
@@ -549,7 +558,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
549
558
|
const initialVisibility = this.convertInitialVisibility(item.visibility);
|
|
550
559
|
const type = this.getViewType(item.type);
|
|
551
560
|
if (!type) {
|
|
552
|
-
collector.error(( localizeWithPath(_moduleId,
|
|
561
|
+
collector.error(( localizeWithPath(_moduleId, 37, "Unknown view type `{0}`.", item.type)));
|
|
553
562
|
continue;
|
|
554
563
|
}
|
|
555
564
|
let weight = undefined;
|
|
@@ -561,6 +570,10 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
561
570
|
this.logService.warn(`${extension.description.identifier.value} tried to set the view size of ${item.id} but it was ignored because the view container does not belong to it.`);
|
|
562
571
|
}
|
|
563
572
|
}
|
|
573
|
+
let accessibilityHelpContent;
|
|
574
|
+
if (isProposedApiEnabled(extension.description, 'contribAccessibilityHelpContent') && item.accessibilityHelpContent) {
|
|
575
|
+
accessibilityHelpContent = ( (new MarkdownString(item.accessibilityHelpContent)));
|
|
576
|
+
}
|
|
564
577
|
const viewDescriptor = {
|
|
565
578
|
type: type,
|
|
566
579
|
ctorDescriptor: type === ViewType.Tree ? ( (new SyncDescriptor(TreeViewPane))) : ( (new SyncDescriptor(WebviewViewPane))),
|
|
@@ -581,7 +594,8 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
581
594
|
virtualWorkspace: item.virtualWorkspace,
|
|
582
595
|
hideByDefault: initialVisibility === InitialVisibility.Hidden,
|
|
583
596
|
workspace: viewContainer?.id === VIEWLET_ID ? true : undefined,
|
|
584
|
-
weight
|
|
597
|
+
weight,
|
|
598
|
+
accessibilityHelpContent
|
|
585
599
|
};
|
|
586
600
|
viewIds.add(viewDescriptor.id);
|
|
587
601
|
viewDescriptors.push(viewDescriptor);
|
|
@@ -626,14 +640,14 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
626
640
|
}
|
|
627
641
|
isValidViewDescriptors(viewDescriptors, collector) {
|
|
628
642
|
if (!Array.isArray(viewDescriptors)) {
|
|
629
|
-
collector.error(( localizeWithPath(_moduleId,
|
|
643
|
+
collector.error(( localizeWithPath(_moduleId, 38, "views must be an array")));
|
|
630
644
|
return false;
|
|
631
645
|
}
|
|
632
646
|
for (const descriptor of viewDescriptors) {
|
|
633
647
|
if (typeof descriptor.id !== 'string') {
|
|
634
648
|
collector.error(( localizeWithPath(
|
|
635
649
|
_moduleId,
|
|
636
|
-
|
|
650
|
+
31,
|
|
637
651
|
"property `{0}` is mandatory and must be of type `string`",
|
|
638
652
|
'id'
|
|
639
653
|
)));
|
|
@@ -642,7 +656,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
642
656
|
if (typeof descriptor.name !== 'string') {
|
|
643
657
|
collector.error(( localizeWithPath(
|
|
644
658
|
_moduleId,
|
|
645
|
-
|
|
659
|
+
31,
|
|
646
660
|
"property `{0}` is mandatory and must be of type `string`",
|
|
647
661
|
'name'
|
|
648
662
|
)));
|
|
@@ -651,7 +665,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
651
665
|
if (descriptor.when && typeof descriptor.when !== 'string') {
|
|
652
666
|
collector.error(( localizeWithPath(
|
|
653
667
|
_moduleId,
|
|
654
|
-
|
|
668
|
+
39,
|
|
655
669
|
"property `{0}` can be omitted or must be of type `string`",
|
|
656
670
|
'when'
|
|
657
671
|
)));
|
|
@@ -660,7 +674,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
660
674
|
if (descriptor.icon && typeof descriptor.icon !== 'string') {
|
|
661
675
|
collector.error(( localizeWithPath(
|
|
662
676
|
_moduleId,
|
|
663
|
-
|
|
677
|
+
39,
|
|
664
678
|
"property `{0}` can be omitted or must be of type `string`",
|
|
665
679
|
'icon'
|
|
666
680
|
)));
|
|
@@ -669,7 +683,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
669
683
|
if (descriptor.contextualTitle && typeof descriptor.contextualTitle !== 'string') {
|
|
670
684
|
collector.error(( localizeWithPath(
|
|
671
685
|
_moduleId,
|
|
672
|
-
|
|
686
|
+
39,
|
|
673
687
|
"property `{0}` can be omitted or must be of type `string`",
|
|
674
688
|
'contextualTitle'
|
|
675
689
|
)));
|
|
@@ -678,7 +692,7 @@ let ViewsExtensionHandler = class ViewsExtensionHandler {
|
|
|
678
692
|
if (descriptor.visibility && !this.convertInitialVisibility(descriptor.visibility)) {
|
|
679
693
|
collector.error(( localizeWithPath(
|
|
680
694
|
_moduleId,
|
|
681
|
-
|
|
695
|
+
40,
|
|
682
696
|
"property `{0}` can be omitted or must be one of {1}",
|
|
683
697
|
'visibility',
|
|
684
698
|
( (Object.values(InitialVisibility))).join(', ')
|
|
@@ -730,9 +744,9 @@ class ViewContainersDataRenderer extends Disposable {
|
|
|
730
744
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
731
745
|
}
|
|
732
746
|
const headers = [
|
|
733
|
-
( localizeWithPath(_moduleId,
|
|
734
|
-
( localizeWithPath(_moduleId,
|
|
735
|
-
( localizeWithPath(_moduleId,
|
|
747
|
+
( localizeWithPath(_moduleId, 41, "ID")),
|
|
748
|
+
( localizeWithPath(_moduleId, 42, "Title")),
|
|
749
|
+
( localizeWithPath(_moduleId, 43, "Where")),
|
|
736
750
|
];
|
|
737
751
|
const rows = ( (viewContainers
|
|
738
752
|
.sort((a, b) => a.id.localeCompare(b.id))
|
|
@@ -771,9 +785,9 @@ class ViewsDataRenderer extends Disposable {
|
|
|
771
785
|
return { data: { headers: [], rows: [] }, dispose: () => { } };
|
|
772
786
|
}
|
|
773
787
|
const headers = [
|
|
774
|
-
( localizeWithPath(_moduleId,
|
|
775
|
-
( localizeWithPath(_moduleId,
|
|
776
|
-
( localizeWithPath(_moduleId,
|
|
788
|
+
( localizeWithPath(_moduleId, 44, "ID")),
|
|
789
|
+
( localizeWithPath(_moduleId, 45, "Name")),
|
|
790
|
+
( localizeWithPath(_moduleId, 43, "Where")),
|
|
777
791
|
];
|
|
778
792
|
const rows = ( (views
|
|
779
793
|
.sort((a, b) => a.id.localeCompare(b.id))
|
|
@@ -795,7 +809,7 @@ class ViewsDataRenderer extends Disposable {
|
|
|
795
809
|
}
|
|
796
810
|
( (Registry.as(Extensions$2.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
797
811
|
id: 'viewsContainers',
|
|
798
|
-
label: ( localizeWithPath(_moduleId,
|
|
812
|
+
label: ( localizeWithPath(_moduleId, 46, "View Containers")),
|
|
799
813
|
access: {
|
|
800
814
|
canToggle: false
|
|
801
815
|
},
|
|
@@ -803,7 +817,7 @@ class ViewsDataRenderer extends Disposable {
|
|
|
803
817
|
});
|
|
804
818
|
( (Registry.as(Extensions$2.ExtensionFeaturesRegistry))).registerExtensionFeature({
|
|
805
819
|
id: 'views',
|
|
806
|
-
label: ( localizeWithPath(_moduleId,
|
|
820
|
+
label: ( localizeWithPath(_moduleId, 47, "Views")),
|
|
807
821
|
access: {
|
|
808
822
|
canToggle: false
|
|
809
823
|
},
|
|
@@ -666,7 +666,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
666
666
|
id: 'list.find',
|
|
667
667
|
weight: 200 ,
|
|
668
668
|
when: ( (ContextKeyExpr.and(RawWorkbenchListFocusContextKey, WorkbenchListSupportsFind))),
|
|
669
|
-
primary: 2048 | 36 ,
|
|
669
|
+
primary: 2048 | 512 | 36 ,
|
|
670
670
|
secondary: [61 ],
|
|
671
671
|
handler: (accessor) => {
|
|
672
672
|
const widget = accessor.get(IListService).lastFocusedList;
|
|
@@ -752,6 +752,11 @@ registerAction2(class ToggleStickyScroll extends Action2 {
|
|
|
752
752
|
mnemonicTitle: ( localizeWithPath(_moduleId, 1, "&&Toggle Tree Sticky Scroll")),
|
|
753
753
|
},
|
|
754
754
|
category: 'View',
|
|
755
|
+
metadata: { description: ( localizeWithPath(
|
|
756
|
+
_moduleId,
|
|
757
|
+
2,
|
|
758
|
+
"Toggles Sticky Scroll widget at the top of tree structures such as the File Explorer and Debug variables View."
|
|
759
|
+
)) },
|
|
755
760
|
f1: true
|
|
756
761
|
});
|
|
757
762
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
2
|
|
|
3
|
-
var css = "@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.mac .monaco-workbench-part,.mac.monaco-workbench-part{font-family:-apple-system,BlinkMacSystemFont,sans-serif}.mac:lang(zh-Hans) .monaco-workbench-part,.mac:lang(zh-Hans).monaco-workbench-part{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,sans-serif}.mac:lang(zh-Hant) .monaco-workbench-part,.mac:lang(zh-Hant).monaco-workbench-part{font-family:-apple-system,BlinkMacSystemFont,PingFang TC,sans-serif}.mac:lang(ja) .monaco-workbench-part,.mac:lang(ja).monaco-workbench-part{font-family:-apple-system,BlinkMacSystemFont,Hiragino Kaku Gothic Pro,sans-serif}.mac:lang(ko) .monaco-workbench-part,.mac:lang(ko).monaco-workbench-part{font-family:-apple-system,BlinkMacSystemFont,Nanum Gothic,Apple SD Gothic Neo,AppleGothic,sans-serif}.windows .monaco-workbench-part,.windows.monaco-workbench-part{font-family:Segoe WPC,Segoe UI,sans-serif}.windows:lang(zh-Hans) .monaco-workbench-part,.windows:lang(zh-Hans).monaco-workbench-part{font-family:Segoe WPC,Segoe UI,Microsoft YaHei,sans-serif}.windows:lang(zh-Hant) .monaco-workbench-part,.windows:lang(zh-Hant).monaco-workbench-part{font-family:Segoe WPC,Segoe UI,Microsoft Jhenghei,sans-serif}.windows:lang(ja) .monaco-workbench-part,.windows:lang(ja).monaco-workbench-part{font-family:Segoe WPC,Segoe UI,Yu Gothic UI,Meiryo UI,sans-serif}.windows:lang(ko) .monaco-workbench-part,.windows:lang(ko).monaco-workbench-part{font-family:Segoe WPC,Segoe UI,Malgun Gothic,Dotom,sans-serif}.linux .monaco-workbench-part,.linux.monaco-workbench-part{font-family:system-ui,Ubuntu,Droid Sans,sans-serif}.linux:lang(zh-Hans) .monaco-workbench-part,.linux:lang(zh-Hans).monaco-workbench-part{font-family:system-ui,Ubuntu,Droid Sans,Source Han Sans SC,Source Han Sans CN,Source Han Sans,sans-serif}.linux:lang(zh-Hant) .monaco-workbench-part,.linux:lang(zh-Hant).monaco-workbench-part{font-family:system-ui,Ubuntu,Droid Sans,Source Han Sans TC,Source Han Sans TW,Source Han Sans,sans-serif}.linux:lang(ja) .monaco-workbench-part,.linux:lang(ja).monaco-workbench-part{font-family:system-ui,Ubuntu,Droid Sans,Source Han Sans J,Source Han Sans JP,Source Han Sans,sans-serif}.linux:lang(ko) .monaco-workbench-part,.linux:lang(ko).monaco-workbench-part{font-family:system-ui,Ubuntu,Droid Sans,Source Han Sans K,Source Han Sans JR,Source Han Sans,UnDotum,FBaekmuk Gulim,sans-serif}.mac .monaco-workbench-part,.mac.monaco-workbench-part{--monaco-monospace-font:\"SF Mono\",Monaco,Menlo,Courier,monospace}.windows .monaco-workbench-part,.windows.monaco-workbench-part{--monaco-monospace-font:Consolas,\"Courier New\",monospace}.linux .monaco-workbench-part,.linux.monaco-workbench-part{--monaco-monospace-font:\"Ubuntu Mono\",\"Liberation Mono\",\"DejaVu Sans Mono\",\"Courier New\",monospace}.monaco-workbench-part{color:var(--vscode-foreground);font-size:13px;line-height:1.4em}.monaco-workbench-part.web,.monaco-workbench.web .monaco-workbench-part{touch-action:none}.monaco-workbench.border:not(.fullscreen){border:1px solid var(--window-border-color);box-sizing:border-box}.monaco-workbench.border.mac{border-radius:5px}.monaco-workbench.border.mac.macos-bigsur-or-newer{border-radius:10px}.monaco-workbench-part img{border:0}.monaco-workbench-part label{cursor:pointer}.monaco-workbench-part a{text-decoration:none}.monaco-workbench.hc-black .monaco-workbench-part p>a,.monaco-workbench.hc-black.monaco-workbench-part p>a,.monaco-workbench.hc-light .monaco-workbench-part p>a,.monaco-workbench.hc-light.monaco-workbench-part p>a{text-decoration:underline!important}.monaco-workbench-part a:active{background-color:inherit;color:inherit}.monaco-workbench-part a.plain,.monaco-workbench-part a.plain.hover,.monaco-workbench-part a.plain:hover{color:inherit;text-decoration:none}.monaco-workbench-part input{color:inherit;font-family:inherit;font-size:100%}.monaco-workbench-part table{color:inherit;font-size:inherit}.monaco-workbench-part input::placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part input::-webkit-input-placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part input::-moz-placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part textarea::placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part textarea::-webkit-input-placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part textarea::-moz-placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part .pointer{cursor:pointer}.monaco-workbench.mac.monaco-font-aliasing-antialiased .monaco-workbench-part,.monaco-workbench.mac.monaco-font-aliasing-antialiased.monaco-workbench-part{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.monaco-workbench.mac.monaco-font-aliasing-none .monaco-workbench-part,.monaco-workbench.mac.monaco-font-aliasing-none.monaco-workbench-part{-webkit-font-smoothing:none;-moz-osx-font-smoothing:unset}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.monaco-workbench.mac.monaco-font-aliasing-auto .monaco-workbench-part,.monaco-workbench.mac.monaco-font-aliasing-auto.monaco-workbench-part{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}.monaco-workbench-part .context-view{-webkit-app-region:no-drag}.monaco-workbench-part .codicon{color:var(--vscode-icon-foreground)}.monaco-workbench-part .codicon[class*=codicon-]{font-size:16px}.monaco-workbench-part .predefined-file-icon[class*=codicon-]:before{font-family:codicon;padding-left:3px;padding-right:3px;width:16px}.monaco-workbench:not(.file-icons-enabled) .predefined-file-icon[class*=codicon-]:before{content:unset!important}.monaco-workbench.modal-dialog-visible .monaco-progress-container.infinite .progress-bit{display:none}.monaco-workbench-part select{appearance:none;-webkit-appearance:none;-moz-appearance:none;border:1px solid;font-family:inherit}.monaco-workbench-part .select-container{position:relative}.monaco-workbench-part .select-container:after{bottom:0;content
|
|
3
|
+
var css = "@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.mac .monaco-workbench-part,.mac.monaco-workbench-part{font-family:-apple-system,BlinkMacSystemFont,sans-serif}.mac:lang(zh-Hans) .monaco-workbench-part,.mac:lang(zh-Hans).monaco-workbench-part{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,sans-serif}.mac:lang(zh-Hant) .monaco-workbench-part,.mac:lang(zh-Hant).monaco-workbench-part{font-family:-apple-system,BlinkMacSystemFont,PingFang TC,sans-serif}.mac:lang(ja) .monaco-workbench-part,.mac:lang(ja).monaco-workbench-part{font-family:-apple-system,BlinkMacSystemFont,Hiragino Kaku Gothic Pro,sans-serif}.mac:lang(ko) .monaco-workbench-part,.mac:lang(ko).monaco-workbench-part{font-family:-apple-system,BlinkMacSystemFont,Nanum Gothic,Apple SD Gothic Neo,AppleGothic,sans-serif}.windows .monaco-workbench-part,.windows.monaco-workbench-part{font-family:Segoe WPC,Segoe UI,sans-serif}.windows:lang(zh-Hans) .monaco-workbench-part,.windows:lang(zh-Hans).monaco-workbench-part{font-family:Segoe WPC,Segoe UI,Microsoft YaHei,sans-serif}.windows:lang(zh-Hant) .monaco-workbench-part,.windows:lang(zh-Hant).monaco-workbench-part{font-family:Segoe WPC,Segoe UI,Microsoft Jhenghei,sans-serif}.windows:lang(ja) .monaco-workbench-part,.windows:lang(ja).monaco-workbench-part{font-family:Segoe WPC,Segoe UI,Yu Gothic UI,Meiryo UI,sans-serif}.windows:lang(ko) .monaco-workbench-part,.windows:lang(ko).monaco-workbench-part{font-family:Segoe WPC,Segoe UI,Malgun Gothic,Dotom,sans-serif}.linux .monaco-workbench-part,.linux.monaco-workbench-part{font-family:system-ui,Ubuntu,Droid Sans,sans-serif}.linux:lang(zh-Hans) .monaco-workbench-part,.linux:lang(zh-Hans).monaco-workbench-part{font-family:system-ui,Ubuntu,Droid Sans,Source Han Sans SC,Source Han Sans CN,Source Han Sans,sans-serif}.linux:lang(zh-Hant) .monaco-workbench-part,.linux:lang(zh-Hant).monaco-workbench-part{font-family:system-ui,Ubuntu,Droid Sans,Source Han Sans TC,Source Han Sans TW,Source Han Sans,sans-serif}.linux:lang(ja) .monaco-workbench-part,.linux:lang(ja).monaco-workbench-part{font-family:system-ui,Ubuntu,Droid Sans,Source Han Sans J,Source Han Sans JP,Source Han Sans,sans-serif}.linux:lang(ko) .monaco-workbench-part,.linux:lang(ko).monaco-workbench-part{font-family:system-ui,Ubuntu,Droid Sans,Source Han Sans K,Source Han Sans JR,Source Han Sans,UnDotum,FBaekmuk Gulim,sans-serif}.mac .monaco-workbench-part,.mac.monaco-workbench-part{--monaco-monospace-font:\"SF Mono\",Monaco,Menlo,Courier,monospace}.windows .monaco-workbench-part,.windows.monaco-workbench-part{--monaco-monospace-font:Consolas,\"Courier New\",monospace}.linux .monaco-workbench-part,.linux.monaco-workbench-part{--monaco-monospace-font:\"Ubuntu Mono\",\"Liberation Mono\",\"DejaVu Sans Mono\",\"Courier New\",monospace}.monaco-workbench-part{color:var(--vscode-foreground);font-size:13px;line-height:1.4em}.monaco-workbench-part.web,.monaco-workbench.web .monaco-workbench-part{touch-action:none}.monaco-workbench.border:not(.fullscreen){border:1px solid var(--window-border-color);box-sizing:border-box}.monaco-workbench.border.mac{border-radius:5px}.monaco-workbench.border.mac.macos-bigsur-or-newer{border-radius:10px}.monaco-workbench-part img{border:0}.monaco-workbench-part label{cursor:pointer}.monaco-workbench-part a{text-decoration:none}.monaco-workbench.hc-black .monaco-workbench-part p>a,.monaco-workbench.hc-black.monaco-workbench-part p>a,.monaco-workbench.hc-light .monaco-workbench-part p>a,.monaco-workbench.hc-light.monaco-workbench-part p>a{text-decoration:underline!important}.monaco-workbench-part a:active{background-color:inherit;color:inherit}.monaco-workbench-part a.plain,.monaco-workbench-part a.plain.hover,.monaco-workbench-part a.plain:hover{color:inherit;text-decoration:none}.monaco-workbench-part input{color:inherit;font-family:inherit;font-size:100%}.monaco-workbench-part table{color:inherit;font-size:inherit}.monaco-workbench-part input::placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part input::-webkit-input-placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part input::-moz-placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part textarea::placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part textarea::-webkit-input-placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part textarea::-moz-placeholder{color:var(--vscode-input-placeholderForeground)}.monaco-workbench-part .pointer{cursor:pointer}.monaco-workbench.mac.monaco-font-aliasing-antialiased .monaco-workbench-part,.monaco-workbench.mac.monaco-font-aliasing-antialiased.monaco-workbench-part{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.monaco-workbench.mac.monaco-font-aliasing-none .monaco-workbench-part,.monaco-workbench.mac.monaco-font-aliasing-none.monaco-workbench-part{-webkit-font-smoothing:none;-moz-osx-font-smoothing:unset}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.monaco-workbench.mac.monaco-font-aliasing-auto .monaco-workbench-part,.monaco-workbench.mac.monaco-font-aliasing-auto.monaco-workbench-part{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}.monaco-workbench-part .context-view{-webkit-app-region:no-drag}.monaco-workbench-part .codicon{color:var(--vscode-icon-foreground)}.monaco-workbench-part .codicon[class*=codicon-]{font-size:16px}.monaco-workbench-part .predefined-file-icon[class*=codicon-]:before{font-family:codicon;padding-left:3px;padding-right:3px;width:16px}.monaco-workbench:not(.file-icons-enabled) .predefined-file-icon[class*=codicon-]:before{content:unset!important}.monaco-workbench.modal-dialog-visible .monaco-progress-container.infinite .progress-bit{display:none}.monaco-workbench-part select{appearance:none;-webkit-appearance:none;-moz-appearance:none;border:1px solid;font-family:inherit}.monaco-workbench-part .select-container{position:relative}.monaco-workbench-part .select-container:after{bottom:0;content:var(--vscode-icon-chevron-down-content);font-family:var(--vscode-icon-chevron-down-font-family);font-family:codicon;font-size:16px;height:16px;line-height:16px;margin:auto;pointer-events:none;position:absolute;right:6px;top:0;width:16px}.monaco-workbench-part .synthetic-focus,.monaco-workbench-part [tabindex=\"-1\"]:focus,.monaco-workbench-part [tabindex=\"0\"]:focus,.monaco-workbench-part button:focus,.monaco-workbench-part input[type=button]:focus,.monaco-workbench-part input[type=checkbox]:focus,.monaco-workbench-part input[type=search]:focus,.monaco-workbench-part input[type=text]:focus,.monaco-workbench-part select:focus,.monaco-workbench-part textarea:focus{opacity:1;outline-color:var(--vscode-focusBorder);outline-offset:-1px;outline-style:solid;outline-width:1px}.monaco-workbench.hc-black .synthetic-focus input,.monaco-workbench.hc-light .synthetic-focus input{background:transparent}.monaco-workbench-part input[type=checkbox]:focus{outline-offset:2px}.monaco-workbench-part [tabindex=\"-1\"]:active,.monaco-workbench-part [tabindex=\"0\"]:active,.monaco-workbench-part input[type=button]:active,.monaco-workbench-part input[type=checkbox]:active,.monaco-workbench-part select:active{outline:0!important}.monaco-workbench.mac .monaco-workbench-part select:focus,.monaco-workbench.mac.monaco-workbench-part select:focus{border-color:transparent}.monaco-workbench .monaco-list:not(.element-focused):focus:before{content:\"\";height:100%;left:0;outline:1px solid;outline-color:var(--vscode-focusBorder);outline-offset:-1px;outline-style:solid;outline-width:1px;pointer-events:none;position:absolute;top:0;width:100%;z-index:15}.monaco-workbench .monaco-list .monaco-list-row .monaco-highlighted-label .highlight{color:var(--vscode-list-highlightForeground)}.monaco-workbench .monaco-list .monaco-list-row.focused .monaco-highlighted-label .highlight{color:var(--vscode-list-focusHighlightForeground)}.monaco-workbench-part .monaco-inputbox.error input[type=text]:focus,.monaco-workbench-part .monaco-inputbox.error.synthetic-focus,.monaco-workbench-part .monaco-inputbox.info input[type=text]:focus,.monaco-workbench-part .monaco-inputbox.info.synthetic-focus,.monaco-workbench-part .monaco-inputbox.warning input[type=text]:focus,.monaco-workbench-part .monaco-inputbox.warning.synthetic-focus,.monaco-workbench-part .monaco-list:focus,.monaco-workbench-part .synthetic-focus :focus{outline:0!important}.monaco-workbench-part a.monaco-link:hover{text-decoration:underline}.monaco-workbench-part .monaco-action-bar:not(.vertical) .action-label:not(.disabled):hover,.monaco-workbench-part .monaco-action-bar:not(.vertical) .monaco-dropdown-with-primary:not(.disabled):hover{background-color:var(--vscode-toolbar-hoverBackground)}.monaco-workbench-part .monaco-action-bar:not(.vertical) .action-item.active .action-label:not(.disabled),.monaco-workbench-part .monaco-action-bar:not(.vertical) .monaco-dropdown.active .action-label:not(.disabled){background-color:var(--vscode-toolbar-activeBackground)}.monaco-workbench-part .monaco-action-bar:not(.vertical) .action-item .action-label:hover:not(.disabled){outline:1px dashed var(--vscode-toolbar-hoverOutline);outline-offset:-1px}";
|
|
4
4
|
n(css,{});
|
|
5
5
|
|
|
6
6
|
export { css, css as default };
|
|
@@ -39,6 +39,7 @@ import { $ } from 'vscode/vscode/vs/base/browser/dom';
|
|
|
39
39
|
import { WorkbenchToolBar } from 'vscode/vscode/vs/platform/actions/browser/toolbar';
|
|
40
40
|
import { ActionViewItem } from 'vscode/vscode/vs/base/browser/ui/actionbar/actionViewItems';
|
|
41
41
|
import { CompositeMenuActions } from 'vscode/vscode/vs/workbench/browser/actions';
|
|
42
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
42
43
|
|
|
43
44
|
var AuxiliaryBarPart_1;
|
|
44
45
|
const _moduleId = "vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart";
|
|
@@ -62,11 +63,11 @@ let AuxiliaryBarPart = class AuxiliaryBarPart extends AbstractPaneCompositePart
|
|
|
62
63
|
}
|
|
63
64
|
return Math.max(width, 300);
|
|
64
65
|
}
|
|
65
|
-
constructor(notificationService, storageService, contextMenuService, layoutService, keybindingService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, commandService, menuService, configurationService) {
|
|
66
|
+
constructor(notificationService, storageService, contextMenuService, layoutService, keybindingService, hoverService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, commandService, menuService, configurationService) {
|
|
66
67
|
super("workbench.parts.auxiliarybar" , {
|
|
67
68
|
hasTitle: true,
|
|
68
69
|
borderWidth: () => (this.getColor(SIDE_BAR_BORDER) || this.getColor(contrastBorder)) ? 1 : 0,
|
|
69
|
-
}, AuxiliaryBarPart_1.activePanelSettingsKey, ActiveAuxiliaryContext.bindTo(contextKeyService), AuxiliaryBarFocusContext.bindTo(contextKeyService), 'auxiliarybar', 'auxiliarybar', undefined, notificationService, storageService, contextMenuService, layoutService, keybindingService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, menuService);
|
|
70
|
+
}, AuxiliaryBarPart_1.activePanelSettingsKey, ActiveAuxiliaryContext.bindTo(contextKeyService), AuxiliaryBarFocusContext.bindTo(contextKeyService), 'auxiliarybar', 'auxiliarybar', undefined, notificationService, storageService, contextMenuService, layoutService, keybindingService, hoverService, instantiationService, themeService, viewDescriptorService, contextKeyService, extensionService, menuService);
|
|
70
71
|
this.commandService = commandService;
|
|
71
72
|
this.configurationService = configurationService;
|
|
72
73
|
this.minimumWidth = 170;
|
|
@@ -201,14 +202,15 @@ AuxiliaryBarPart = AuxiliaryBarPart_1 = ( (__decorate([
|
|
|
201
202
|
( (__param(2, IContextMenuService))),
|
|
202
203
|
( (__param(3, IWorkbenchLayoutService))),
|
|
203
204
|
( (__param(4, IKeybindingService))),
|
|
204
|
-
( (__param(5,
|
|
205
|
-
( (__param(6,
|
|
206
|
-
( (__param(7,
|
|
207
|
-
( (__param(8,
|
|
208
|
-
( (__param(9,
|
|
209
|
-
( (__param(10,
|
|
210
|
-
( (__param(11,
|
|
211
|
-
( (__param(12,
|
|
205
|
+
( (__param(5, IHoverService))),
|
|
206
|
+
( (__param(6, IInstantiationService))),
|
|
207
|
+
( (__param(7, IThemeService))),
|
|
208
|
+
( (__param(8, IViewDescriptorService))),
|
|
209
|
+
( (__param(9, IContextKeyService))),
|
|
210
|
+
( (__param(10, IExtensionService))),
|
|
211
|
+
( (__param(11, ICommandService))),
|
|
212
|
+
( (__param(12, IMenuService))),
|
|
213
|
+
( (__param(13, IConfigurationService)))
|
|
212
214
|
], AuxiliaryBarPart)));
|
|
213
215
|
|
|
214
216
|
export { AuxiliaryBarPart };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import n from 'vscode/external/rollup-plugin-styles/dist/runtime/inject-css.js';
|
|
2
2
|
|
|
3
|
-
var css = ".monaco-workbench.noauxiliarybar .part.auxiliarybar{display:none!important;visibility:hidden!important}.monaco-workbench .part.auxiliarybar>.content .monaco-editor,.monaco-workbench .part.auxiliarybar>.content .monaco-editor .margin,.monaco-workbench .part.auxiliarybar>.content .monaco-editor .monaco-editor-background{background-color:var(--vscode-sideBar-background)}.monaco-workbench .part.auxiliarybar .title-actions .actions-container{justify-content:flex-end}.monaco-workbench .part.auxiliarybar .title-actions .action-item{margin-right:4px}.monaco-workbench .part.auxiliarybar>.title>.title-label{flex:1}.monaco-workbench .part.auxiliarybar>.title>.title-label h2{text-transform:uppercase}.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container{flex:1}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:focus,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:focus{outline:0!important}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item .action-label,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item .action-label{border-radius:0;outline-offset:2px}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item .action-label:before,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item .action-label:before{left:6px;position:absolute}.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked.clicked:focus .active-item-indicator:before,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked:not(:focus) .active-item-indicator:before{border-top-color:var(--vscode-panelTitle-activeBorder)!important}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked.clicked:focus .active-item-indicator:before,.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked:not(:focus) .active-item-indicator:before{border-top-color:var(--vscode-activityBarTop-activeBorder)!important}.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:focus .action-label,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:hover .action-label{color:var(--vscode-sideBarTitle-foreground)!important}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:focus .action-label,.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:hover .action-label{color:var(--vscode-activityBarTop-foreground)!important}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked .action-label,.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:hover .action-label,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked .action-label,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:hover .action-label{outline:var(--vscode-contrastActiveBorder,unset) solid 1px!important}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:not(.checked):hover .action-label,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:not(.checked):hover .action-label{outline:var(--vscode-contrastActiveBorder,unset) dashed 1px!important}.monaco-workbench .auxiliarybar.part.pane-composite-part>.composite.title>.title-actions{flex:inherit}.monaco-workbench .auxiliarybar.pane-composite-part>.title.has-composite-bar>.title-actions .monaco-action-bar .action-item{max-width:150px}";
|
|
3
|
+
var css = ".monaco-workbench.noauxiliarybar .part.auxiliarybar{display:none!important;visibility:hidden!important}.monaco-workbench .part.auxiliarybar>.content .monaco-editor,.monaco-workbench .part.auxiliarybar>.content .monaco-editor .margin,.monaco-workbench .part.auxiliarybar>.content .monaco-editor .monaco-editor-background{background-color:var(--vscode-sideBar-background)}.monaco-workbench .part.auxiliarybar .title-actions .actions-container{justify-content:flex-end}.monaco-workbench .part.auxiliarybar .title-actions .action-item{margin-right:4px}.monaco-workbench .part.auxiliarybar>.title{background-color:var(--vscode-sideBarTitle-background)}.monaco-workbench .part.auxiliarybar>.title>.title-label{flex:1}.monaco-workbench .part.auxiliarybar>.title>.title-label h2{text-transform:uppercase}.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container{flex:1}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:focus,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:focus{outline:0!important}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item .action-label,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item .action-label{border-radius:0;outline-offset:2px}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item .action-label:before,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item .action-label:before{left:6px;position:absolute}.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked.clicked:focus .active-item-indicator:before,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked:not(:focus) .active-item-indicator:before{border-top-color:var(--vscode-panelTitle-activeBorder)!important}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked.clicked:focus .active-item-indicator:before,.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked:not(:focus) .active-item-indicator:before{border-top-color:var(--vscode-activityBarTop-activeBorder)!important}.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:focus .action-label,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:hover .action-label{color:var(--vscode-sideBarTitle-foreground)!important}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:focus .action-label,.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:hover .action-label{color:var(--vscode-activityBarTop-foreground)!important}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked .action-label,.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:hover .action-label,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item.checked .action-label,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:hover .action-label{outline:var(--vscode-contrastActiveBorder,unset) solid 1px!important}.monaco-workbench .part.auxiliarybar>.header-or-footer>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:not(.checked):hover .action-label,.monaco-workbench .part.auxiliarybar>.title>.composite-bar-container>.composite-bar>.monaco-action-bar .action-item:not(.checked):hover .action-label{outline:var(--vscode-contrastActiveBorder,unset) dashed 1px!important}.monaco-workbench .auxiliarybar.part.pane-composite-part>.composite.title>.title-actions{flex:inherit}.monaco-workbench .auxiliarybar.pane-composite-part>.title.has-composite-bar>.title-actions .monaco-action-bar .action-item{max-width:150px}";
|
|
4
4
|
n(css,{});
|
|
5
5
|
|
|
6
6
|
export { css, css as default };
|
|
@@ -16,16 +16,16 @@ import { ScopedProgressIndicator, AbstractProgressScope } from 'vscode/vscode/vs
|
|
|
16
16
|
import { WorkbenchToolBar } from 'vscode/vscode/vs/platform/actions/browser/toolbar';
|
|
17
17
|
import { defaultProgressBarStyles } from 'vscode/vscode/vs/platform/theme/browser/defaultStyles';
|
|
18
18
|
import { createInstantHoverDelegate, getDefaultHoverDelegate } from 'vscode/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
19
|
-
import { setupCustomHover } from 'vscode/vscode/vs/base/browser/ui/hover/updatableHoverWidget';
|
|
20
19
|
|
|
21
20
|
const _moduleId = "vs/workbench/browser/parts/compositePart";
|
|
22
21
|
class CompositePart extends Part {
|
|
23
|
-
constructor(notificationService, storageService, contextMenuService, layoutService, keybindingService, instantiationService, themeService, registry, activeCompositeSettingsKey, defaultCompositeId, nameForTelemetry, compositeCSSClass, titleForegroundColor, id, options) {
|
|
22
|
+
constructor(notificationService, storageService, contextMenuService, layoutService, keybindingService, hoverService, instantiationService, themeService, registry, activeCompositeSettingsKey, defaultCompositeId, nameForTelemetry, compositeCSSClass, titleForegroundColor, id, options) {
|
|
24
23
|
super(id, options, themeService, storageService, layoutService);
|
|
25
24
|
this.notificationService = notificationService;
|
|
26
25
|
this.storageService = storageService;
|
|
27
26
|
this.contextMenuService = contextMenuService;
|
|
28
27
|
this.keybindingService = keybindingService;
|
|
28
|
+
this.hoverService = hoverService;
|
|
29
29
|
this.instantiationService = instantiationService;
|
|
30
30
|
this.registry = registry;
|
|
31
31
|
this.activeCompositeSettingsKey = activeCompositeSettingsKey;
|
|
@@ -244,7 +244,7 @@ class CompositePart extends Part {
|
|
|
244
244
|
const titleContainer = append(parent, $('.title-label'));
|
|
245
245
|
const titleLabel = append(titleContainer, $('h2'));
|
|
246
246
|
this.titleLabelElement = titleLabel;
|
|
247
|
-
const hover = this._register(
|
|
247
|
+
const hover = this._register(this.hoverService.setupUpdatableHover(getDefaultHoverDelegate('mouse'), titleLabel, ''));
|
|
248
248
|
const $this = this;
|
|
249
249
|
return {
|
|
250
250
|
updateTitle: (id, title, keybinding) => {
|
|
@@ -207,17 +207,19 @@ let AuxiliaryEditorPartImpl = class AuxiliaryEditorPartImpl extends EditorPart {
|
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
close() {
|
|
210
|
-
this.doClose(true );
|
|
210
|
+
return this.doClose(true );
|
|
211
211
|
}
|
|
212
212
|
doClose(mergeGroupsToMainPart) {
|
|
213
|
+
let result = true;
|
|
213
214
|
if (mergeGroupsToMainPart) {
|
|
214
|
-
this.mergeGroupsToMainPart();
|
|
215
|
+
result = this.mergeGroupsToMainPart();
|
|
215
216
|
}
|
|
216
217
|
this._onWillClose.fire();
|
|
218
|
+
return result;
|
|
217
219
|
}
|
|
218
220
|
mergeGroupsToMainPart() {
|
|
219
221
|
if (!( this.groups.some(group => group.count > 0))) {
|
|
220
|
-
return;
|
|
222
|
+
return true;
|
|
221
223
|
}
|
|
222
224
|
let targetGroup = undefined;
|
|
223
225
|
for (const group of this.editorPartsView.mainPart.getGroups(1 )) {
|
|
@@ -229,8 +231,9 @@ let AuxiliaryEditorPartImpl = class AuxiliaryEditorPartImpl extends EditorPart {
|
|
|
229
231
|
if (!targetGroup) {
|
|
230
232
|
targetGroup = this.editorPartsView.mainPart.addGroup(this.editorPartsView.mainPart.activeGroup, this.partOptions.openSideBySideDirection === 'right' ? 3 : 1 );
|
|
231
233
|
}
|
|
232
|
-
this.mergeAllGroups(targetGroup);
|
|
234
|
+
const result = this.mergeAllGroups(targetGroup);
|
|
233
235
|
targetGroup.focus();
|
|
236
|
+
return result;
|
|
234
237
|
}
|
|
235
238
|
};
|
|
236
239
|
AuxiliaryEditorPartImpl = AuxiliaryEditorPartImpl_1 = ( __decorate([
|
|
@@ -34,7 +34,7 @@ import { UntitledTextEditorInputSerializer, UntitledTextEditorWorkingCopyEditorH
|
|
|
34
34
|
import { DynamicEditorConfigurations } from './editorConfiguration.js';
|
|
35
35
|
import { ShowMultipleEditorTabsAction, ShowSingleEditorTabAction, HideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingleEditorTabAction, ZenHideEditorTabsAction, EditorActionsDefaultAction, EditorActionsTitleBarAction, HideEditorActionsAction } from 'vscode/vscode/vs/workbench/browser/actions/layoutActions';
|
|
36
36
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
37
|
-
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.
|
|
37
|
+
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
38
38
|
|
|
39
39
|
const _moduleId = "vs/workbench/browser/parts/editor/editor.contribution";
|
|
40
40
|
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localizeWithPath(_moduleId, 0, "Text Editor"))), [
|