@codingame/monaco-vscode-view-status-bar-service-override 16.1.1 → 17.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css +34 -32
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +4 -4
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +6 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-status-bar-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor - view-status-bar service-override",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-
|
|
21
|
-
"@codingame/monaco-vscode-
|
|
22
|
-
"@codingame/monaco-vscode-
|
|
18
|
+
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "17.1.0",
|
|
19
|
+
"@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "17.1.0",
|
|
20
|
+
"@codingame/monaco-vscode-api": "17.1.0",
|
|
21
|
+
"@codingame/monaco-vscode-bed2b49f-41ae-5ed2-b61a-1105500a3f8a-common": "17.1.0",
|
|
22
|
+
"@codingame/monaco-vscode-c8227507-8e59-53d6-b50b-71c0ab384cf4-common": "17.1.0"
|
|
23
23
|
},
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"module": "index.js",
|
|
@@ -30,62 +30,62 @@ const statusBarItemSchema = {
|
|
|
30
30
|
id: {
|
|
31
31
|
type: 'string',
|
|
32
32
|
markdownDescription: ( localize(
|
|
33
|
-
|
|
33
|
+
2447,
|
|
34
34
|
'The identifier of the status bar entry. Must be unique within the extension. The same value must be used when calling the `vscode.window.createStatusBarItem(id, ...)`-API'
|
|
35
35
|
))
|
|
36
36
|
},
|
|
37
37
|
name: {
|
|
38
38
|
type: 'string',
|
|
39
39
|
description: ( localize(
|
|
40
|
-
|
|
40
|
+
2448,
|
|
41
41
|
'The name of the entry, like \'Python Language Indicator\', \'Git Status\' etc. Try to keep the length of the name short, yet descriptive enough that users can understand what the status bar item is about.'
|
|
42
42
|
))
|
|
43
43
|
},
|
|
44
44
|
text: {
|
|
45
45
|
type: 'string',
|
|
46
46
|
description: ( localize(
|
|
47
|
-
|
|
47
|
+
2449,
|
|
48
48
|
'The text to show for the entry. You can embed icons in the text by leveraging the `$(<name>)`-syntax, like \'Hello $(globe)!\''
|
|
49
49
|
))
|
|
50
50
|
},
|
|
51
51
|
tooltip: {
|
|
52
52
|
type: 'string',
|
|
53
|
-
description: ( localize(
|
|
53
|
+
description: ( localize(2450, 'The tooltip text for the entry.'))
|
|
54
54
|
},
|
|
55
55
|
command: {
|
|
56
56
|
type: 'string',
|
|
57
|
-
description: ( localize(
|
|
57
|
+
description: ( localize(2451, 'The command to execute when the status bar entry is clicked.'))
|
|
58
58
|
},
|
|
59
59
|
alignment: {
|
|
60
60
|
type: 'string',
|
|
61
61
|
enum: ['left', 'right'],
|
|
62
|
-
description: ( localize(
|
|
62
|
+
description: ( localize(2452, 'The alignment of the status bar entry.'))
|
|
63
63
|
},
|
|
64
64
|
priority: {
|
|
65
65
|
type: 'number',
|
|
66
66
|
description: ( localize(
|
|
67
|
-
|
|
67
|
+
2453,
|
|
68
68
|
'The priority of the status bar entry. Higher value means the item should be shown more to the left.'
|
|
69
69
|
))
|
|
70
70
|
},
|
|
71
71
|
accessibilityInformation: {
|
|
72
72
|
type: 'object',
|
|
73
73
|
description: ( localize(
|
|
74
|
-
|
|
74
|
+
2454,
|
|
75
75
|
'Defines the role and aria label to be used when the status bar entry is focused.'
|
|
76
76
|
)),
|
|
77
77
|
properties: {
|
|
78
78
|
role: {
|
|
79
79
|
type: 'string',
|
|
80
80
|
description: ( localize(
|
|
81
|
-
|
|
81
|
+
2455,
|
|
82
82
|
'The role of the status bar entry which defines how a screen reader interacts with it. More about aria roles can be found here https://w3c.github.io/aria/#widget_roles'
|
|
83
83
|
))
|
|
84
84
|
},
|
|
85
85
|
label: {
|
|
86
86
|
type: 'string',
|
|
87
87
|
description: ( localize(
|
|
88
|
-
|
|
88
|
+
2456,
|
|
89
89
|
'The aria label of the status bar entry. Defaults to the entry\'s text.'
|
|
90
90
|
))
|
|
91
91
|
}
|
|
@@ -94,7 +94,7 @@ const statusBarItemSchema = {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
const statusBarItemsSchema = {
|
|
97
|
-
description: ( localize(
|
|
97
|
+
description: ( localize(2457, "Contributes items to the status bar.")),
|
|
98
98
|
oneOf: [
|
|
99
99
|
statusBarItemSchema,
|
|
100
100
|
{
|
|
@@ -120,7 +120,7 @@ let StatusBarItemsExtensionPoint = class StatusBarItemsExtensionPoint {
|
|
|
120
120
|
const { value, collector } = entry;
|
|
121
121
|
for (const candidate of Iterable.wrap(value)) {
|
|
122
122
|
if (!isUserFriendlyStatusItemEntry(candidate)) {
|
|
123
|
-
collector.error(( localize(
|
|
123
|
+
collector.error(( localize(2458, "Invalid status bar item contribution.")));
|
|
124
124
|
continue;
|
|
125
125
|
}
|
|
126
126
|
const fullItemId = asStatusBarItemIdentifier(entry.description.identifier, candidate.id);
|
|
@@ -10,7 +10,15 @@
|
|
|
10
10
|
.monaco-workbench:not(.reduce-motion) .part.statusbar {
|
|
11
11
|
transition: background-color 0.15s ease-out;
|
|
12
12
|
}
|
|
13
|
-
.monaco-workbench .part.statusbar
|
|
13
|
+
.monaco-workbench.mac:not(.fullscreen) .part.statusbar:focus {
|
|
14
|
+
border-bottom-right-radius: 5px;
|
|
15
|
+
border-bottom-left-radius: 5px;
|
|
16
|
+
}
|
|
17
|
+
.monaco-workbench.mac:not(.fullscreen).macos-bigsur-or-newer .part.statusbar:focus {
|
|
18
|
+
border-bottom-right-radius: 10px;
|
|
19
|
+
border-bottom-left-radius: 10px;
|
|
20
|
+
}
|
|
21
|
+
.monaco-workbench .part.statusbar:not(:focus).status-border-top::after {
|
|
14
22
|
content: '';
|
|
15
23
|
position: absolute;
|
|
16
24
|
top: 0;
|
|
@@ -58,51 +66,23 @@
|
|
|
58
66
|
border-left: 5px solid transparent;
|
|
59
67
|
border-right: 5px solid transparent;
|
|
60
68
|
}
|
|
61
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item > .statusbar-item-label {
|
|
62
|
-
margin-right: 3px;
|
|
63
|
-
margin-left: 3px;
|
|
64
|
-
}
|
|
65
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-left > .statusbar-item-label {
|
|
66
|
-
margin-right: 3px;
|
|
67
|
-
margin-left: 0;
|
|
68
|
-
}
|
|
69
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-right > .statusbar-item-label {
|
|
70
|
-
margin-right: 0;
|
|
71
|
-
margin-left: 3px;
|
|
72
|
-
}
|
|
73
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-left.compact-right > .statusbar-item-label {
|
|
74
|
-
margin-right:0;
|
|
75
|
-
margin-left: 0;
|
|
76
|
-
}
|
|
77
69
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.left.first-visible-item {
|
|
78
70
|
padding-left: 7px;
|
|
79
71
|
}
|
|
80
72
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.right.last-visible-item {
|
|
81
|
-
|
|
73
|
+
margin-right: 7px;
|
|
82
74
|
}
|
|
83
75
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color.left.first-visible-item,
|
|
84
76
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color.right.last-visible-item {
|
|
85
77
|
padding-right: 0;
|
|
86
78
|
padding-left: 0;
|
|
87
79
|
}
|
|
88
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color > .statusbar-item-label {
|
|
89
|
-
margin-right: 0;
|
|
90
|
-
margin-left: 0;
|
|
91
|
-
padding-left: 10px;
|
|
92
|
-
padding-right: 10px;
|
|
93
|
-
}
|
|
94
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-left.has-background-color > .statusbar-item-label {
|
|
95
|
-
padding-left: 3px;
|
|
96
|
-
padding-right: 10px;
|
|
97
|
-
}
|
|
98
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-right.has-background-color > .statusbar-item-label {
|
|
99
|
-
padding-left: 10px;
|
|
100
|
-
padding-right: 3px;
|
|
101
|
-
}
|
|
102
80
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item > .statusbar-item-label {
|
|
103
81
|
cursor: pointer;
|
|
104
82
|
display: flex;
|
|
105
83
|
height: 100%;
|
|
84
|
+
margin-right: 3px;
|
|
85
|
+
margin-left: 3px;
|
|
106
86
|
padding: 0 5px 0 5px;
|
|
107
87
|
white-space: pre;
|
|
108
88
|
align-items: center;
|
|
@@ -111,11 +91,33 @@
|
|
|
111
91
|
outline-width: 0px;
|
|
112
92
|
}
|
|
113
93
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-left > .statusbar-item-label {
|
|
94
|
+
margin-left: 0;
|
|
95
|
+
margin-right: 5px;
|
|
114
96
|
padding: 0 3px;
|
|
115
97
|
}
|
|
116
98
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-right > .statusbar-item-label {
|
|
99
|
+
margin-left: 5px;
|
|
100
|
+
margin-right: 0;
|
|
117
101
|
padding: 0 3px;
|
|
118
102
|
}
|
|
103
|
+
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-left.compact-right > .statusbar-item-label {
|
|
104
|
+
margin-left: 0;
|
|
105
|
+
margin-right:0;
|
|
106
|
+
}
|
|
107
|
+
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color > .statusbar-item-label {
|
|
108
|
+
margin-left: 0;
|
|
109
|
+
margin-right: 0;
|
|
110
|
+
padding-left: 10px;
|
|
111
|
+
padding-right: 10px;
|
|
112
|
+
}
|
|
113
|
+
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-left.has-background-color > .statusbar-item-label {
|
|
114
|
+
padding-left: 3px;
|
|
115
|
+
padding-right: 10px;
|
|
116
|
+
}
|
|
117
|
+
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-right.has-background-color > .statusbar-item-label {
|
|
118
|
+
padding-left: 10px;
|
|
119
|
+
padding-right: 3px;
|
|
120
|
+
}
|
|
119
121
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item > a:hover:not(.disabled) {
|
|
120
122
|
text-decoration: none;
|
|
121
123
|
color: var(--vscode-statusBarItem-hoverForeground);
|
|
@@ -3,7 +3,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { IStatusbarService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
|
|
5
5
|
import { Action } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
6
|
-
import { Parts } from '@codingame/monaco-vscode-
|
|
6
|
+
import { Parts } from '@codingame/monaco-vscode-c8227507-8e59-53d6-b50b-71c0ab384cf4-common/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
7
7
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
8
8
|
import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
9
9
|
import { KeybindingsRegistry, KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
@@ -31,7 +31,7 @@ class ToggleStatusbarEntryVisibilityAction extends Action {
|
|
|
31
31
|
}
|
|
32
32
|
class HideStatusbarEntryAction extends Action {
|
|
33
33
|
constructor(id, name, model) {
|
|
34
|
-
super(id, ( localize(
|
|
34
|
+
super(id, ( localize(3457, "Hide '{0}'", name)), undefined, true);
|
|
35
35
|
this.model = model;
|
|
36
36
|
}
|
|
37
37
|
async run() {
|
|
@@ -40,7 +40,7 @@ class HideStatusbarEntryAction extends Action {
|
|
|
40
40
|
}
|
|
41
41
|
let ManageExtensionAction = class ManageExtensionAction extends Action {
|
|
42
42
|
constructor(extensionId, commandService) {
|
|
43
|
-
super('statusbar.manage.extension', ( localize(
|
|
43
|
+
super('statusbar.manage.extension', ( localize(3458, "Manage Extension")));
|
|
44
44
|
this.extensionId = extensionId;
|
|
45
45
|
this.commandService = commandService;
|
|
46
46
|
}
|
|
@@ -115,7 +115,7 @@ class FocusStatusBarAction extends Action2 {
|
|
|
115
115
|
constructor() {
|
|
116
116
|
super({
|
|
117
117
|
id: 'workbench.action.focusStatusBar',
|
|
118
|
-
title: ( localize2(
|
|
118
|
+
title: ( localize2(3459, 'Focus Status Bar')),
|
|
119
119
|
category: Categories.View,
|
|
120
120
|
f1: true
|
|
121
121
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { toErrorMessage } from '@codingame/monaco-vscode-api/vscode/vs/base/common/errorMessage';
|
|
4
4
|
import { Disposable, MutableDisposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
5
|
-
import { SimpleIconLabel } from '@codingame/monaco-vscode-
|
|
5
|
+
import { SimpleIconLabel } from '@codingame/monaco-vscode-bed2b49f-41ae-5ed2-b61a-1105500a3f8a-common/vscode/vs/base/browser/ui/iconLabel/simpleIconLabel';
|
|
6
6
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
7
7
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
8
8
|
import { isTooltipWithCommands, ShowTooltipCommand, StatusbarEntryKinds } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
@@ -29,7 +29,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/sear
|
|
|
29
29
|
import { isHTMLElement, $, addDisposableListener, EventType, clearNode, EventHelper, getWindow } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
30
30
|
import { createStyleSheet } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/domStylesheets';
|
|
31
31
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
32
|
-
import { Parts } from '@codingame/monaco-vscode-
|
|
32
|
+
import { Parts } from '@codingame/monaco-vscode-c8227507-8e59-53d6-b50b-71c0ab384cf4-common/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
33
33
|
import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service';
|
|
34
34
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
35
35
|
import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
|
|
@@ -86,6 +86,9 @@ let StatusbarPart = class StatusbarPart extends Part {
|
|
|
86
86
|
persistence: {
|
|
87
87
|
hideOnKeyDown: true,
|
|
88
88
|
sticky: focus
|
|
89
|
+
},
|
|
90
|
+
appearance: {
|
|
91
|
+
maxHeightRatio: 0.9
|
|
89
92
|
}
|
|
90
93
|
})));
|
|
91
94
|
this.registerListeners();
|
|
@@ -393,7 +396,7 @@ let StatusbarPart = class StatusbarPart extends Part {
|
|
|
393
396
|
}
|
|
394
397
|
getContextMenuActions(event) {
|
|
395
398
|
const actions = [];
|
|
396
|
-
actions.push(toAction({ id: ToggleStatusbarVisibilityAction.ID, label: ( localize(
|
|
399
|
+
actions.push(toAction({ id: ToggleStatusbarVisibilityAction.ID, label: ( localize(3460, "Hide Status Bar")), run: () => this.instantiationService.invokeFunction(accessor => ( new ToggleStatusbarVisibilityAction()).run(accessor)) }));
|
|
397
400
|
actions.push(( new Separator()));
|
|
398
401
|
const handledEntries = ( new Set());
|
|
399
402
|
for (const entry of this.viewModel.entries) {
|
|
@@ -456,7 +459,7 @@ let StatusbarPart = class StatusbarPart extends Part {
|
|
|
456
459
|
|
|
457
460
|
/* Notification Beak */
|
|
458
461
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-beak > .status-bar-item-beak-container:before {
|
|
459
|
-
border-bottom-color: ${backgroundColor};
|
|
462
|
+
border-bottom-color: ${borderColor ?? backgroundColor};
|
|
460
463
|
}
|
|
461
464
|
`;
|
|
462
465
|
}
|