@codingame/monaco-vscode-view-status-bar-service-override 2.0.3 → 2.1.0-update-vscode-1.86.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": "2.0.
|
|
3
|
+
"version": "2.1.0-update-vscode-1.86.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@2.0.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.1.0-update-vscode-1.86.1"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { localizeWithPath } from 'vscode/vscode/vs/nls';
|
|
1
|
+
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
2
2
|
import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar';
|
|
3
3
|
import { Action } from 'vscode/vscode/vs/base/common/actions';
|
|
4
4
|
import { IWorkbenchLayoutService } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
|
|
@@ -102,11 +102,11 @@ class FocusStatusBarAction extends Action2 {
|
|
|
102
102
|
constructor() {
|
|
103
103
|
super({
|
|
104
104
|
id: 'workbench.action.focusStatusBar',
|
|
105
|
-
title:
|
|
105
|
+
title: ( localize2WithPath(
|
|
106
106
|
'vs/workbench/browser/parts/statusbar/statusbarActions',
|
|
107
107
|
'focusStatusBar',
|
|
108
|
-
|
|
109
|
-
)),
|
|
108
|
+
'Focus Status Bar'
|
|
109
|
+
)),
|
|
110
110
|
category: Categories.View,
|
|
111
111
|
f1: true
|
|
112
112
|
});
|
|
@@ -79,14 +79,16 @@ let StatusbarEntryItem = class StatusbarEntryItem extends Disposable {
|
|
|
79
79
|
else {
|
|
80
80
|
this.hover = this._register(setupCustomHover(this.hoverDelegate, this.container, hoverContents));
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
if (entry.command !== ShowTooltipCommand ) {
|
|
83
|
+
this.focusListener.value = addDisposableListener(this.labelContainer, EventType.FOCUS, e => {
|
|
84
|
+
EventHelper.stop(e);
|
|
85
|
+
this.hover?.show(false);
|
|
86
|
+
});
|
|
87
|
+
this.focusOutListener.value = addDisposableListener(this.labelContainer, EventType.FOCUS_OUT, e => {
|
|
88
|
+
EventHelper.stop(e);
|
|
89
|
+
this.hover?.hide();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
90
92
|
}
|
|
91
93
|
if (!this.entry || entry.command !== this.entry.command) {
|
|
92
94
|
this.commandMouseListener.clear();
|
|
@@ -22,7 +22,7 @@ import { assertIsDefined } from 'vscode/vscode/vs/base/common/types';
|
|
|
22
22
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
23
23
|
import { isHighContrast } from 'vscode/vscode/vs/platform/theme/common/theme';
|
|
24
24
|
import { hash } from 'vscode/vscode/vs/base/common/hash';
|
|
25
|
-
import { IHoverService } from 'vscode/vscode/vs/
|
|
25
|
+
import { IHoverService } from 'vscode/vscode/vs/platform/hover/browser/hover';
|
|
26
26
|
import { IConfigurationService } from 'vscode/vscode/vs/platform/configuration/common/configuration';
|
|
27
27
|
import { ToggleStatusbarEntryVisibilityAction, HideStatusbarEntryAction } from './statusbarActions.js';
|
|
28
28
|
import { StatusbarViewModel } from './statusbarModel.js';
|
|
@@ -69,7 +69,8 @@ let StatusbarPart = class StatusbarPart extends Part {
|
|
|
69
69
|
return this.hoverService.showHover({
|
|
70
70
|
...options,
|
|
71
71
|
persistence: {
|
|
72
|
-
hideOnKeyDown: true
|
|
72
|
+
hideOnKeyDown: true,
|
|
73
|
+
sticky: focus
|
|
73
74
|
}
|
|
74
75
|
}, focus);
|
|
75
76
|
}
|
|
@@ -491,8 +492,8 @@ AuxiliaryStatusbarPart = AuxiliaryStatusbarPart_1 = ( __decorate([
|
|
|
491
492
|
( __param(9, IConfigurationService))
|
|
492
493
|
], AuxiliaryStatusbarPart));
|
|
493
494
|
let StatusbarService = class StatusbarService extends MultiWindowParts {
|
|
494
|
-
constructor(instantiationService) {
|
|
495
|
-
super();
|
|
495
|
+
constructor(instantiationService, storageService, themeService) {
|
|
496
|
+
super('workbench.statusBarService', themeService, storageService);
|
|
496
497
|
this.instantiationService = instantiationService;
|
|
497
498
|
this.mainPart = this._register(this.instantiationService.createInstance(MainStatusbarPart));
|
|
498
499
|
this.onDidChangeEntryVisibility = this.mainPart.onDidChangeEntryVisibility;
|
|
@@ -547,7 +548,9 @@ let StatusbarService = class StatusbarService extends MultiWindowParts {
|
|
|
547
548
|
}
|
|
548
549
|
};
|
|
549
550
|
StatusbarService = ( __decorate([
|
|
550
|
-
( __param(0, IInstantiationService))
|
|
551
|
+
( __param(0, IInstantiationService)),
|
|
552
|
+
( __param(1, IStorageService)),
|
|
553
|
+
( __param(2, IThemeService))
|
|
551
554
|
], StatusbarService));
|
|
552
555
|
let ScopedStatusbarService = class ScopedStatusbarService extends Disposable {
|
|
553
556
|
constructor(statusbarEntryContainer, statusbarService) {
|