@codingame/monaco-vscode-view-status-bar-service-override 22.1.8 → 23.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +13 -12
- package/vscode/src/vs/workbench/browser/parts/statusbar/media/statusbarpart.css +16 -19
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarActions.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarItem.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +1 -1
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": "23.0.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,10 +15,10 @@
|
|
|
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-api": "
|
|
18
|
+
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "23.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "23.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-a6a3e03d-2b1a-5e17-b904-ed5d40c14550-common": "23.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-api": "23.0.0"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.js",
|
|
24
24
|
"module": "index.js",
|
|
@@ -30,62 +30,63 @@ const statusBarItemSchema = {
|
|
|
30
30
|
id: {
|
|
31
31
|
type: 'string',
|
|
32
32
|
markdownDescription: ( localize(
|
|
33
|
-
|
|
33
|
+
2531,
|
|
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
|
+
2532,
|
|
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
|
+
2533,
|
|
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(2534, 'The tooltip text for the entry.'))
|
|
54
54
|
},
|
|
55
55
|
command: {
|
|
56
56
|
type: 'string',
|
|
57
|
-
description: ( localize(
|
|
57
|
+
description: ( localize(2535, '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(2536, 'The alignment of the status bar entry.'))
|
|
63
63
|
},
|
|
64
64
|
priority: {
|
|
65
65
|
type: 'number',
|
|
66
66
|
description: ( localize(
|
|
67
|
-
|
|
67
|
+
2537,
|
|
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
|
+
2538,
|
|
75
75
|
'Defines the role and aria label to be used when the status bar entry is focused.'
|
|
76
76
|
)),
|
|
77
|
+
required: ['label'],
|
|
77
78
|
properties: {
|
|
78
79
|
role: {
|
|
79
80
|
type: 'string',
|
|
80
81
|
description: ( localize(
|
|
81
|
-
|
|
82
|
+
2539,
|
|
82
83
|
'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
84
|
))
|
|
84
85
|
},
|
|
85
86
|
label: {
|
|
86
87
|
type: 'string',
|
|
87
88
|
description: ( localize(
|
|
88
|
-
|
|
89
|
+
2540,
|
|
89
90
|
'The aria label of the status bar entry. Defaults to the entry\'s text.'
|
|
90
91
|
))
|
|
91
92
|
}
|
|
@@ -94,7 +95,7 @@ const statusBarItemSchema = {
|
|
|
94
95
|
}
|
|
95
96
|
};
|
|
96
97
|
const statusBarItemsSchema = {
|
|
97
|
-
description: ( localize(
|
|
98
|
+
description: ( localize(2541, "Contributes items to the status bar.")),
|
|
98
99
|
oneOf: [
|
|
99
100
|
statusBarItemSchema,
|
|
100
101
|
{
|
|
@@ -120,7 +121,7 @@ let StatusBarItemsExtensionPoint = class StatusBarItemsExtensionPoint {
|
|
|
120
121
|
const { value, collector } = entry;
|
|
121
122
|
for (const candidate of Iterable.wrap(value)) {
|
|
122
123
|
if (!isUserFriendlyStatusItemEntry(candidate)) {
|
|
123
|
-
collector.error(( localize(
|
|
124
|
+
collector.error(( localize(2542, "Invalid status bar item contribution.")));
|
|
124
125
|
continue;
|
|
125
126
|
}
|
|
126
127
|
const fullItemId = asStatusBarItemIdentifier(entry.description.identifier, candidate.id);
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
overflow: hidden;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.monaco-workbench
|
|
16
|
+
.monaco-workbench.monaco-enable-motion .part.statusbar {
|
|
17
17
|
transition: background-color 0.15s ease-out;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
border-bottom-right-radius: 10px;
|
|
28
28
|
border-bottom-left-radius: 10px;
|
|
29
29
|
}
|
|
30
|
+
.monaco-workbench.mac:not(.fullscreen).macos-tahoe-or-newer .part.statusbar:focus {
|
|
31
|
+
/* macOS Tahoe increased rounded corners size even more */
|
|
32
|
+
border-bottom-right-radius: 12px;
|
|
33
|
+
border-bottom-left-radius: 12px;
|
|
34
|
+
}
|
|
30
35
|
|
|
31
36
|
.monaco-workbench .part.statusbar:not(:focus).status-border-top::after {
|
|
32
37
|
/* Top border only visible unless focused to make room for focus outline */
|
|
@@ -55,7 +60,7 @@
|
|
|
55
60
|
flex-grow: 1; /* left items push right items to the far right end */
|
|
56
61
|
}
|
|
57
62
|
|
|
58
|
-
.monaco-workbench
|
|
63
|
+
.monaco-workbench .part.statusbar > .items-container > .statusbar-item {
|
|
59
64
|
display: inline-block;
|
|
60
65
|
line-height: 22px;
|
|
61
66
|
height: 100%;
|
|
@@ -85,17 +90,8 @@
|
|
|
85
90
|
border-right: 5px solid transparent;
|
|
86
91
|
}
|
|
87
92
|
|
|
88
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.left.first-visible-item
|
|
89
|
-
padding-left: 7px; /* Add padding to the most left status bar item */
|
|
90
|
-
}
|
|
91
|
-
|
|
93
|
+
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.left.first-visible-item,
|
|
92
94
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.right.last-visible-item {
|
|
93
|
-
margin-right: 7px; /* Add margin to the most right status bar item. Margin is used to position beak properly. */
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/* Tweak appearance for items with background to improve hover feedback */
|
|
97
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color.left.first-visible-item,
|
|
98
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color.right.last-visible-item {
|
|
99
95
|
padding-right: 0;
|
|
100
96
|
padding-left: 0;
|
|
101
97
|
}
|
|
@@ -106,7 +102,7 @@
|
|
|
106
102
|
height: 100%;
|
|
107
103
|
margin-right: 3px;
|
|
108
104
|
margin-left: 3px;
|
|
109
|
-
padding: 0 5px
|
|
105
|
+
padding: 0 5px;
|
|
110
106
|
white-space: pre; /* gives some degree of styling */
|
|
111
107
|
align-items: center;
|
|
112
108
|
text-overflow: ellipsis;
|
|
@@ -128,14 +124,16 @@
|
|
|
128
124
|
|
|
129
125
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-left.compact-right > .statusbar-item-label {
|
|
130
126
|
margin-left: 0;
|
|
131
|
-
margin-right:0;
|
|
127
|
+
margin-right: 0;
|
|
132
128
|
}
|
|
133
129
|
|
|
130
|
+
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.left.first-visible-item > .statusbar-item-label,
|
|
131
|
+
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.right.last-visible-item > .statusbar-item-label,
|
|
134
132
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.has-background-color > .statusbar-item-label {
|
|
135
|
-
margin-left: 0;
|
|
133
|
+
margin-left: 0; /* Reduce margin to let element attach to the corners */
|
|
136
134
|
margin-right: 0;
|
|
137
|
-
padding-left:
|
|
138
|
-
padding-right:
|
|
135
|
+
padding-left: 8px; /* But increase padding to preserve our usual spacing */
|
|
136
|
+
padding-right: 8px;
|
|
139
137
|
}
|
|
140
138
|
|
|
141
139
|
.monaco-workbench .part.statusbar > .items-container > .statusbar-item.compact-left.has-background-color > .statusbar-item-label {
|
|
@@ -157,9 +155,8 @@
|
|
|
157
155
|
cursor: default;
|
|
158
156
|
}
|
|
159
157
|
|
|
160
|
-
.monaco-workbench .part.statusbar > .items-container > .statusbar-item
|
|
158
|
+
.monaco-workbench .part.statusbar > .items-container > .statusbar-item span.codicon {
|
|
161
159
|
text-align: center;
|
|
162
|
-
font-size: 14px;
|
|
163
160
|
color: inherit;
|
|
164
161
|
}
|
|
165
162
|
|
|
@@ -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(3577, "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(3578, "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(3579, '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-a6a3e03d-2b1a-5e17-b904-ed5d40c14550-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';
|
|
@@ -396,7 +396,7 @@ let StatusbarPart = class StatusbarPart extends Part {
|
|
|
396
396
|
}
|
|
397
397
|
getContextMenuActions(event) {
|
|
398
398
|
const actions = [];
|
|
399
|
-
actions.push(toAction({ id: ToggleStatusbarVisibilityAction.ID, label: ( localize(
|
|
399
|
+
actions.push(toAction({ id: ToggleStatusbarVisibilityAction.ID, label: ( localize(3580, "Hide Status Bar")), run: () => this.instantiationService.invokeFunction(accessor => ( new ToggleStatusbarVisibilityAction()).run(accessor)) }));
|
|
400
400
|
actions.push(( new Separator()));
|
|
401
401
|
const handledEntries = ( new Set());
|
|
402
402
|
for (const entry of this.viewModel.entries) {
|