@codingame/monaco-vscode-view-status-bar-service-override 23.3.0 → 24.1.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": "23.3.0",
3
+ "version": "24.1.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,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "23.3.0",
19
- "@codingame/monaco-vscode-1f37b5fb-f500-54d2-b98a-d12d100cafca-common": "23.3.0",
20
- "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "23.3.0",
21
- "@codingame/monaco-vscode-api": "23.3.0"
18
+ "@codingame/monaco-vscode-api": "24.1.0"
22
19
  },
23
20
  "main": "index.js",
24
21
  "module": "index.js",
@@ -30,48 +30,48 @@ const statusBarItemSchema = {
30
30
  id: {
31
31
  type: 'string',
32
32
  markdownDescription: ( localize(
33
- 2531,
33
+ 2545,
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
- 2532,
40
+ 2546,
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
- 2533,
47
+ 2547,
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(2534, 'The tooltip text for the entry.'))
53
+ description: ( localize(2548, 'The tooltip text for the entry.'))
54
54
  },
55
55
  command: {
56
56
  type: 'string',
57
- description: ( localize(2535, 'The command to execute when the status bar entry is clicked.'))
57
+ description: ( localize(2549, '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(2536, 'The alignment of the status bar entry.'))
62
+ description: ( localize(2550, 'The alignment of the status bar entry.'))
63
63
  },
64
64
  priority: {
65
65
  type: 'number',
66
66
  description: ( localize(
67
- 2537,
67
+ 2551,
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
- 2538,
74
+ 2552,
75
75
  'Defines the role and aria label to be used when the status bar entry is focused.'
76
76
  )),
77
77
  required: ['label'],
@@ -79,14 +79,14 @@ const statusBarItemSchema = {
79
79
  role: {
80
80
  type: 'string',
81
81
  description: ( localize(
82
- 2539,
82
+ 2553,
83
83
  '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'
84
84
  ))
85
85
  },
86
86
  label: {
87
87
  type: 'string',
88
88
  description: ( localize(
89
- 2540,
89
+ 2554,
90
90
  'The aria label of the status bar entry. Defaults to the entry\'s text.'
91
91
  ))
92
92
  }
@@ -95,7 +95,7 @@ const statusBarItemSchema = {
95
95
  }
96
96
  };
97
97
  const statusBarItemsSchema = {
98
- description: ( localize(2541, "Contributes items to the status bar.")),
98
+ description: ( localize(2555, "Contributes items to the status bar.")),
99
99
  oneOf: [
100
100
  statusBarItemSchema,
101
101
  {
@@ -121,7 +121,7 @@ let StatusBarItemsExtensionPoint = class StatusBarItemsExtensionPoint {
121
121
  const { value, collector } = entry;
122
122
  for (const candidate of Iterable.wrap(value)) {
123
123
  if (!isUserFriendlyStatusItemEntry(candidate)) {
124
- collector.error(( localize(2542, "Invalid status bar item contribution.")));
124
+ collector.error(( localize(2556, "Invalid status bar item contribution.")));
125
125
  continue;
126
126
  }
127
127
  const fullItemId = asStatusBarItemIdentifier(entry.description.identifier, candidate.id);
@@ -19,18 +19,13 @@
19
19
 
20
20
  .monaco-workbench.mac:not(.fullscreen) .part.statusbar:focus {
21
21
  /* Rounded corners to make focus outline appear properly (unless fullscreen) */
22
- border-bottom-right-radius: 5px;
23
- border-bottom-left-radius: 5px;
24
- }
25
- .monaco-workbench.mac:not(.fullscreen).macos-bigsur-or-newer .part.statusbar:focus {
26
- /* macOS Big Sur increased rounded corners size */
27
22
  border-bottom-right-radius: 10px;
28
23
  border-bottom-left-radius: 10px;
29
24
  }
30
- .monaco-workbench.mac:not(.fullscreen).macos-tahoe-or-newer .part.statusbar:focus {
31
- /* macOS Tahoe increased rounded corners size even more */
32
- border-bottom-right-radius: 12px;
33
- border-bottom-left-radius: 12px;
25
+ .monaco-workbench.mac.macos-tahoe:not(.fullscreen) .part.statusbar:focus {
26
+ /* macOS Tahoe increased rounded corners size */
27
+ border-bottom-right-radius: 16px;
28
+ border-bottom-left-radius: 16px;
34
29
  }
35
30
 
36
31
  .monaco-workbench .part.statusbar:not(:focus).status-border-top::after {
@@ -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(3596, "Hide '{0}'", name)), undefined, true);
34
+ super(id, ( localize(3613, "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(3597, "Manage Extension")));
43
+ super('statusbar.manage.extension', ( localize(3614, "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(3598, 'Focus Status Bar')),
118
+ title: ( localize2(3615, '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-1f37b5fb-f500-54d2-b98a-d12d100cafca-common/vscode/vs/base/browser/ui/iconLabel/simpleIconLabel';
5
+ import { SimpleIconLabel } from '@codingame/monaco-vscode-api/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';
@@ -87,8 +87,7 @@ class StatusbarViewModel extends Disposable {
87
87
  }
88
88
  }
89
89
  show(id) {
90
- if (( this.hidden.has(id))) {
91
- this.hidden.delete(id);
90
+ if (this.hidden.delete(id)) {
92
91
  this.updateVisibility(id, true);
93
92
  this.saveState();
94
93
  }
@@ -1,5 +1,5 @@
1
1
  import { Disposable, DisposableStore, IDisposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
2
- import { MultiWindowParts, Part } from "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common/vscode/vs/workbench/browser/part";
2
+ import { MultiWindowParts, Part } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/part";
3
3
  import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
4
4
  import { StatusbarAlignment, IStatusbarEntry, IStatusbarEntryAccessor, IStatusbarStyleOverride, IStatusbarEntryLocation, IStatusbarEntryPriority } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar";
5
5
  import { IStatusbarService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar.service";
@@ -10,7 +10,7 @@ import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform
10
10
  import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service";
11
11
  import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
12
12
  import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event";
13
- import { IView } from "@codingame/monaco-vscode-6980eeab-47bb-5a48-8e15-32caf0785565-common/vscode/vs/base/browser/ui/grid/grid";
13
+ import { IView } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/grid/grid";
14
14
  export interface IStatusbarEntryContainer extends IDisposable {
15
15
  /**
16
16
  * An event that is triggered when an entry's visibility is changed.
@@ -4,7 +4,7 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
4
4
  import * as statusbarpart from './media/statusbarpart.css';
5
5
  import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
6
6
  import { MutableDisposable, toDisposable, DisposableStore, disposeIfDisposable, Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
7
- import { Part, MultiWindowParts } from '@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common/vscode/vs/workbench/browser/part';
7
+ import { Part, MultiWindowParts } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/part';
8
8
  import { Gesture, EventType as EventType$1 } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/touch';
9
9
  import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
10
10
  import { isStatusbarEntryPriority, StatusbarAlignment, isStatusbarEntryLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/statusbar/browser/statusbar';
@@ -34,7 +34,7 @@ import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/
34
34
  import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
35
35
  import { equals } from '@codingame/monaco-vscode-api/vscode/vs/base/common/arrays';
36
36
  import { StandardMouseEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/mouseEvent';
37
- import { ToggleStatusbarVisibilityAction } from '@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common/vscode/vs/workbench/browser/actions/layoutActions';
37
+ import { ToggleStatusbarVisibilityAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/actions/layoutActions';
38
38
  import { assertReturnsDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
39
39
  import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
40
40
  import { isHighContrast } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/theme';
@@ -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(3599, "Hide Status Bar")), run: () => this.instantiationService.invokeFunction(accessor => ( new ToggleStatusbarVisibilityAction()).run(accessor)) }));
399
+ actions.push(toAction({ id: ToggleStatusbarVisibilityAction.ID, label: ( localize(3616, "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) {