@codingame/monaco-vscode-view-status-bar-service-override 4.5.2 → 5.0.1
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": "5.0.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"vscode": "npm:@codingame/monaco-vscode-api@
|
|
29
|
+
"vscode": "npm:@codingame/monaco-vscode-api@5.0.1"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -13,9 +13,9 @@ import { assertIsDefined } from 'vscode/vscode/vs/base/common/types';
|
|
|
13
13
|
import { StandardKeyboardEvent } from 'vscode/vscode/vs/base/browser/keyboardEvent';
|
|
14
14
|
import { renderIcon, renderLabelWithIcons } from 'vscode/vscode/vs/base/browser/ui/iconLabel/iconLabels';
|
|
15
15
|
import { syncing, spinningLoading } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
16
|
-
import { setupCustomHover } from 'vscode/vscode/vs/base/browser/ui/hover/updatableHoverWidget';
|
|
17
16
|
import { isMarkdownString, markdownStringEqual } from 'vscode/vscode/vs/base/common/htmlContent';
|
|
18
17
|
import { Gesture, EventType as EventType$1 } from 'vscode/vscode/vs/base/browser/touch';
|
|
18
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover.service';
|
|
19
19
|
|
|
20
20
|
let StatusbarEntryItem = class StatusbarEntryItem extends Disposable {
|
|
21
21
|
get name() {
|
|
@@ -24,11 +24,12 @@ let StatusbarEntryItem = class StatusbarEntryItem extends Disposable {
|
|
|
24
24
|
get hasCommand() {
|
|
25
25
|
return typeof this.entry?.command !== 'undefined';
|
|
26
26
|
}
|
|
27
|
-
constructor(container, entry, hoverDelegate, commandService, notificationService, telemetryService, themeService) {
|
|
27
|
+
constructor(container, entry, hoverDelegate, commandService, hoverService, notificationService, telemetryService, themeService) {
|
|
28
28
|
super();
|
|
29
29
|
this.container = container;
|
|
30
30
|
this.hoverDelegate = hoverDelegate;
|
|
31
31
|
this.commandService = commandService;
|
|
32
|
+
this.hoverService = hoverService;
|
|
32
33
|
this.notificationService = notificationService;
|
|
33
34
|
this.telemetryService = telemetryService;
|
|
34
35
|
this.themeService = themeService;
|
|
@@ -77,7 +78,7 @@ let StatusbarEntryItem = class StatusbarEntryItem extends Disposable {
|
|
|
77
78
|
this.hover.update(hoverContents);
|
|
78
79
|
}
|
|
79
80
|
else {
|
|
80
|
-
this.hover = this._register(
|
|
81
|
+
this.hover = this._register(this.hoverService.setupUpdatableHover(this.hoverDelegate, this.container, hoverContents));
|
|
81
82
|
}
|
|
82
83
|
if (entry.command !== ShowTooltipCommand ) {
|
|
83
84
|
this.focusListener.value = addDisposableListener(this.labelContainer, EventType.FOCUS, e => {
|
|
@@ -208,9 +209,10 @@ let StatusbarEntryItem = class StatusbarEntryItem extends Disposable {
|
|
|
208
209
|
};
|
|
209
210
|
StatusbarEntryItem = ( __decorate([
|
|
210
211
|
( __param(3, ICommandService)),
|
|
211
|
-
( __param(4,
|
|
212
|
-
( __param(5,
|
|
213
|
-
( __param(6,
|
|
212
|
+
( __param(4, IHoverService)),
|
|
213
|
+
( __param(5, INotificationService)),
|
|
214
|
+
( __param(6, ITelemetryService)),
|
|
215
|
+
( __param(7, IThemeService))
|
|
214
216
|
], StatusbarEntryItem));
|
|
215
217
|
class StatusBarCodiconLabel extends SimpleIconLabel {
|
|
216
218
|
constructor(container) {
|
|
@@ -23,8 +23,7 @@ class StatusbarViewModel extends Disposable {
|
|
|
23
23
|
const hiddenRaw = this.storageService.get(StatusbarViewModel.HIDDEN_ENTRIES_KEY, 0 );
|
|
24
24
|
if (hiddenRaw) {
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
this.hidden = ( new Set(hiddenArray.filter(entry => !entry.startsWith('status.workspaceTrust.'))));
|
|
26
|
+
this.hidden = ( new Set(JSON.parse(hiddenRaw)));
|
|
28
27
|
}
|
|
29
28
|
catch (error) {
|
|
30
29
|
}
|