@codingame/monaco-vscode-view-status-bar-service-override 20.5.0 → 21.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-status-bar-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.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-622c0cca-d5fa-59b6-b730-0715afcf93ee-common": "
|
|
20
|
-
"@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "
|
|
21
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "21.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-622c0cca-d5fa-59b6-b730-0715afcf93ee-common": "21.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "21.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-api": "21.0.0"
|
|
22
22
|
},
|
|
23
23
|
"main": "index.js",
|
|
24
24
|
"module": "index.js",
|
|
@@ -30,62 +30,62 @@ const statusBarItemSchema = {
|
|
|
30
30
|
id: {
|
|
31
31
|
type: 'string',
|
|
32
32
|
markdownDescription: ( localize(
|
|
33
|
-
|
|
33
|
+
2513,
|
|
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
|
+
2514,
|
|
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
|
+
2515,
|
|
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(2516, 'The tooltip text for the entry.'))
|
|
54
54
|
},
|
|
55
55
|
command: {
|
|
56
56
|
type: 'string',
|
|
57
|
-
description: ( localize(
|
|
57
|
+
description: ( localize(2517, '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(2518, 'The alignment of the status bar entry.'))
|
|
63
63
|
},
|
|
64
64
|
priority: {
|
|
65
65
|
type: 'number',
|
|
66
66
|
description: ( localize(
|
|
67
|
-
|
|
67
|
+
2519,
|
|
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
|
+
2520,
|
|
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
|
+
2521,
|
|
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
|
+
2522,
|
|
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(2523, "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(2524, "Invalid status bar item contribution.")));
|
|
124
124
|
continue;
|
|
125
125
|
}
|
|
126
126
|
const fullItemId = asStatusBarItemIdentifier(entry.description.identifier, candidate.id);
|
|
@@ -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(3550, "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(3551, "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(3552, 'Focus Status Bar')),
|
|
119
119
|
category: Categories.View,
|
|
120
120
|
f1: true
|
|
121
121
|
});
|
|
@@ -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(3553, "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) {
|