@codingame/monaco-vscode-view-status-bar-service-override 32.0.2 → 34.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,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-view-status-bar-service-override",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "34.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": [],
|
|
7
|
+
"license": "MIT",
|
|
7
8
|
"author": {
|
|
8
9
|
"name": "CodinGame",
|
|
9
10
|
"url": "http://www.codingame.com"
|
|
10
11
|
},
|
|
11
|
-
"license": "MIT",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "git+ssh://git@github.com/CodinGame/monaco-vscode-api.git"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-api": "
|
|
18
|
+
"@codingame/monaco-vscode-api": "34.0.0"
|
|
19
19
|
},
|
|
20
20
|
"main": "index.js",
|
|
21
21
|
"module": "index.js",
|
|
@@ -30,7 +30,7 @@ class ToggleStatusbarEntryVisibilityAction extends Action {
|
|
|
30
30
|
}
|
|
31
31
|
class HideStatusbarEntryAction extends Action {
|
|
32
32
|
constructor(id, name, model) {
|
|
33
|
-
super(id, ( localize(
|
|
33
|
+
super(id, ( localize(3845, "Hide '{0}'", name)), undefined, true);
|
|
34
34
|
this.model = model;
|
|
35
35
|
}
|
|
36
36
|
async run() {
|
|
@@ -39,7 +39,7 @@ class HideStatusbarEntryAction extends Action {
|
|
|
39
39
|
}
|
|
40
40
|
let ManageExtensionAction = class ManageExtensionAction extends Action {
|
|
41
41
|
constructor(extensionId, commandService) {
|
|
42
|
-
super("statusbar.manage.extension", ( localize(
|
|
42
|
+
super("statusbar.manage.extension", ( localize(3846, "Manage Extension")));
|
|
43
43
|
this.extensionId = extensionId;
|
|
44
44
|
this.commandService = commandService;
|
|
45
45
|
}
|
|
@@ -111,7 +111,7 @@ class FocusStatusBarAction extends Action2 {
|
|
|
111
111
|
constructor() {
|
|
112
112
|
super({
|
|
113
113
|
id: "workbench.action.focusStatusBar",
|
|
114
|
-
title: ( localize2(
|
|
114
|
+
title: ( localize2(3847, "Focus Status Bar")),
|
|
115
115
|
category: Categories.View,
|
|
116
116
|
f1: true
|
|
117
117
|
});
|
|
@@ -235,19 +235,20 @@ class StatusBarCodiconLabel extends SimpleIconLabel {
|
|
|
235
235
|
constructor(container) {
|
|
236
236
|
super(container);
|
|
237
237
|
this.container = container;
|
|
238
|
-
this.progressCodicon = renderIcon(syncing);
|
|
239
238
|
this.currentText = "";
|
|
240
239
|
this.currentShowProgress = false;
|
|
241
240
|
}
|
|
242
241
|
set showProgress(showProgress) {
|
|
243
242
|
if (this.currentShowProgress !== showProgress) {
|
|
244
243
|
this.currentShowProgress = showProgress;
|
|
245
|
-
|
|
244
|
+
if (showProgress) {
|
|
245
|
+
this.progressCodicon = renderIcon(showProgress === "syncing" ? syncing : spinningLoading);
|
|
246
|
+
}
|
|
246
247
|
this.text = this.currentText;
|
|
247
248
|
}
|
|
248
249
|
}
|
|
249
250
|
set text(text) {
|
|
250
|
-
if (this.currentShowProgress) {
|
|
251
|
+
if (this.currentShowProgress && this.progressCodicon) {
|
|
251
252
|
if (this.container.firstChild !== this.progressCodicon) {
|
|
252
253
|
this.container.appendChild(this.progressCodicon);
|
|
253
254
|
}
|
|
@@ -437,7 +437,7 @@ let StatusbarPart = class StatusbarPart extends Part {
|
|
|
437
437
|
const actions = [];
|
|
438
438
|
actions.push(toAction({
|
|
439
439
|
id: ToggleStatusbarVisibilityAction.ID,
|
|
440
|
-
label: ( localize(
|
|
440
|
+
label: ( localize(3848, "Hide Status Bar")),
|
|
441
441
|
run: () => this.instantiationService.invokeFunction(accessor => ( new ToggleStatusbarVisibilityAction()).run(accessor))
|
|
442
442
|
}));
|
|
443
443
|
actions.push(( new Separator()));
|