@codingame/monaco-vscode-view-status-bar-service-override 17.2.1 → 18.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 +12 -12
- 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.d.ts +2 -2
- package/vscode/src/vs/workbench/browser/parts/statusbar/statusbarPart.js +5 -5
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": "18.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-
|
|
19
|
-
"@codingame/monaco-vscode-
|
|
20
|
-
"@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "
|
|
21
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-0094ae09-a688-53e7-bacc-93e26f7f49db-common": "18.0.0",
|
|
19
|
+
"@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "18.0.0",
|
|
20
|
+
"@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "18.0.0",
|
|
21
|
+
"@codingame/monaco-vscode-api": "18.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
|
+
2466,
|
|
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
|
+
2467,
|
|
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
|
+
2468,
|
|
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(2469, 'The tooltip text for the entry.'))
|
|
54
54
|
},
|
|
55
55
|
command: {
|
|
56
56
|
type: 'string',
|
|
57
|
-
description: ( localize(
|
|
57
|
+
description: ( localize(2470, '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(2471, 'The alignment of the status bar entry.'))
|
|
63
63
|
},
|
|
64
64
|
priority: {
|
|
65
65
|
type: 'number',
|
|
66
66
|
description: ( localize(
|
|
67
|
-
|
|
67
|
+
2472,
|
|
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
|
+
2473,
|
|
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
|
+
2474,
|
|
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
|
+
2475,
|
|
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(2476, "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(2477, "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(3482, "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(3483, "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(3484, '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-0094ae09-a688-53e7-bacc-93e26f7f49db-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';
|
|
@@ -102,7 +102,7 @@ export declare class StatusbarService extends MultiWindowParts<StatusbarPart> im
|
|
|
102
102
|
private readonly _onDidCreateAuxiliaryStatusbarPart;
|
|
103
103
|
private readonly onDidCreateAuxiliaryStatusbarPart;
|
|
104
104
|
constructor(instantiationService: IInstantiationService, storageService: IStorageService, themeService: IThemeService);
|
|
105
|
-
createAuxiliaryStatusbarPart(container: HTMLElement): IAuxiliaryStatusbarPart;
|
|
105
|
+
createAuxiliaryStatusbarPart(container: HTMLElement, instantiationService: IInstantiationService): IAuxiliaryStatusbarPart;
|
|
106
106
|
createScoped(statusbarEntryContainer: IStatusbarEntryContainer, disposables: DisposableStore): IStatusbarService;
|
|
107
107
|
readonly onDidChangeEntryVisibility: Event<{
|
|
108
108
|
id: string;
|
|
@@ -124,7 +124,7 @@ export declare class ScopedStatusbarService extends Disposable implements IStatu
|
|
|
124
124
|
private readonly statusbarService;
|
|
125
125
|
readonly _serviceBrand: undefined;
|
|
126
126
|
constructor(statusbarEntryContainer: IStatusbarEntryContainer, statusbarService: IStatusbarService);
|
|
127
|
-
createAuxiliaryStatusbarPart(container: HTMLElement): IAuxiliaryStatusbarPart;
|
|
127
|
+
createAuxiliaryStatusbarPart(container: HTMLElement, instantiationService: IInstantiationService): IAuxiliaryStatusbarPart;
|
|
128
128
|
createScoped(statusbarEntryContainer: IStatusbarEntryContainer, disposables: DisposableStore): IStatusbarService;
|
|
129
129
|
getPart(): IStatusbarEntryContainer;
|
|
130
130
|
readonly onDidChangeEntryVisibility: Event<{
|
|
@@ -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(3485, "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) {
|
|
@@ -537,7 +537,7 @@ let StatusbarService = class StatusbarService extends MultiWindowParts {
|
|
|
537
537
|
this._register(this.registerPart(this.mainPart));
|
|
538
538
|
this.onDidChangeEntryVisibility = this.mainPart.onDidChangeEntryVisibility;
|
|
539
539
|
}
|
|
540
|
-
createAuxiliaryStatusbarPart(container) {
|
|
540
|
+
createAuxiliaryStatusbarPart(container, instantiationService) {
|
|
541
541
|
const statusbarPartContainer = $('footer.part.statusbar', {
|
|
542
542
|
'role': 'status',
|
|
543
543
|
'aria-live': 'off',
|
|
@@ -545,7 +545,7 @@ let StatusbarService = class StatusbarService extends MultiWindowParts {
|
|
|
545
545
|
});
|
|
546
546
|
statusbarPartContainer.style.position = 'relative';
|
|
547
547
|
container.appendChild(statusbarPartContainer);
|
|
548
|
-
const statusbarPart =
|
|
548
|
+
const statusbarPart = instantiationService.createInstance(AuxiliaryStatusbarPart, statusbarPartContainer);
|
|
549
549
|
const disposable = this.registerPart(statusbarPart);
|
|
550
550
|
statusbarPart.create(statusbarPartContainer);
|
|
551
551
|
Event.once(statusbarPart.onWillDispose)(() => disposable.dispose());
|
|
@@ -635,8 +635,8 @@ let ScopedStatusbarService = class ScopedStatusbarService extends Disposable {
|
|
|
635
635
|
this.statusbarService = statusbarService;
|
|
636
636
|
this.onDidChangeEntryVisibility = this.statusbarEntryContainer.onDidChangeEntryVisibility;
|
|
637
637
|
}
|
|
638
|
-
createAuxiliaryStatusbarPart(container) {
|
|
639
|
-
return this.statusbarService.createAuxiliaryStatusbarPart(container);
|
|
638
|
+
createAuxiliaryStatusbarPart(container, instantiationService) {
|
|
639
|
+
return this.statusbarService.createAuxiliaryStatusbarPart(container, instantiationService);
|
|
640
640
|
}
|
|
641
641
|
createScoped(statusbarEntryContainer, disposables) {
|
|
642
642
|
return this.statusbarService.createScoped(statusbarEntryContainer, disposables);
|