@codingame/monaco-vscode-view-status-bar-service-override 18.3.1 → 19.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-view-status-bar-service-override",
3
- "version": "18.3.1",
3
+ "version": "19.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-0094ae09-a688-53e7-bacc-93e26f7f49db-common": "18.3.1",
19
- "@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "18.3.1",
20
- "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "18.3.1",
21
- "@codingame/monaco-vscode-api": "18.3.1"
18
+ "@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common": "19.0.0",
19
+ "@codingame/monaco-vscode-85886bdb-61c5-52f1-8eb7-d1d32f6f8cbd-common": "19.0.0",
20
+ "@codingame/monaco-vscode-api": "19.0.0",
21
+ "@codingame/monaco-vscode-ca445022-b812-53ca-a041-e46c7e0b13de-common": "19.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
- 2466,
33
+ 2482,
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
- 2467,
40
+ 2483,
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
- 2468,
47
+ 2484,
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(2469, 'The tooltip text for the entry.'))
53
+ description: ( localize(2485, 'The tooltip text for the entry.'))
54
54
  },
55
55
  command: {
56
56
  type: 'string',
57
- description: ( localize(2470, 'The command to execute when the status bar entry is clicked.'))
57
+ description: ( localize(2486, '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(2471, 'The alignment of the status bar entry.'))
62
+ description: ( localize(2487, 'The alignment of the status bar entry.'))
63
63
  },
64
64
  priority: {
65
65
  type: 'number',
66
66
  description: ( localize(
67
- 2472,
67
+ 2488,
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
- 2473,
74
+ 2489,
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
- 2474,
81
+ 2490,
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
- 2475,
88
+ 2491,
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(2476, "Contributes items to the status bar.")),
97
+ description: ( localize(2492, "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(2477, "Invalid status bar item contribution.")));
123
+ collector.error(( localize(2493, "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(3482, "Hide '{0}'", name)), undefined, true);
34
+ super(id, ( localize(3502, "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(3483, "Manage Extension")));
43
+ super('statusbar.manage.extension', ( localize(3503, "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(3484, 'Focus Status Bar')),
118
+ title: ( localize2(3504, '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-0094ae09-a688-53e7-bacc-93e26f7f49db-common/vscode/vs/base/browser/ui/iconLabel/simpleIconLabel';
5
+ import { SimpleIconLabel } from '@codingame/monaco-vscode-ca445022-b812-53ca-a041-e46c7e0b13de-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';
@@ -10,7 +10,7 @@ import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/t
10
10
  import { isThemeColor } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorCommon';
11
11
  import { $, show, hide, addDisposableListener, EventType, EventHelper, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
12
12
  import { INotificationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service';
13
- import { assertIsDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
13
+ import { assertReturnsDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
14
14
  import { StandardKeyboardEvent } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/keyboardEvent';
15
15
  import { KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
16
16
  import { renderIcon, renderLabelWithIcons } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/iconLabel/iconLabels';
@@ -21,7 +21,7 @@ import { IHoverService } from '@codingame/monaco-vscode-api/vscode/vs/platform/h
21
21
 
22
22
  let StatusbarEntryItem = class StatusbarEntryItem extends Disposable {
23
23
  get name() {
24
- return assertIsDefined(this.entry).name;
24
+ return assertReturnsDefined(this.entry).name;
25
25
  }
26
26
  get hasCommand() {
27
27
  return typeof this.entry?.command !== 'undefined';
@@ -35,7 +35,7 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/ext
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
37
  import { ToggleStatusbarVisibilityAction } from '@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common/vscode/vs/workbench/browser/actions/layoutActions';
38
- import { assertIsDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
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';
41
41
  import { hash } from '@codingame/monaco-vscode-api/vscode/vs/base/common/hash';
@@ -285,8 +285,8 @@ let StatusbarPart = class StatusbarPart extends Part {
285
285
  }
286
286
  }
287
287
  appendStatusbarEntries() {
288
- const leftItemsContainer = assertIsDefined(this.leftItemsContainer);
289
- const rightItemsContainer = assertIsDefined(this.rightItemsContainer);
288
+ const leftItemsContainer = assertReturnsDefined(this.leftItemsContainer);
289
+ const rightItemsContainer = assertReturnsDefined(this.rightItemsContainer);
290
290
  clearNode(leftItemsContainer);
291
291
  clearNode(rightItemsContainer);
292
292
  for (const entry of [
@@ -303,7 +303,7 @@ let StatusbarPart = class StatusbarPart extends Part {
303
303
  if (entry.alignment === StatusbarAlignment.RIGHT) {
304
304
  entries.reverse();
305
305
  }
306
- const target = assertIsDefined(entry.alignment === StatusbarAlignment.LEFT ? this.leftItemsContainer : this.rightItemsContainer);
306
+ const target = assertReturnsDefined(entry.alignment === StatusbarAlignment.LEFT ? this.leftItemsContainer : this.rightItemsContainer);
307
307
  const index = entries.indexOf(entry);
308
308
  if (index + 1 === entries.length) {
309
309
  target.appendChild(entry.container);
@@ -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(3485, "Hide Status Bar")), run: () => this.instantiationService.invokeFunction(accessor => ( new ToggleStatusbarVisibilityAction()).run(accessor)) }));
399
+ actions.push(toAction({ id: ToggleStatusbarVisibilityAction.ID, label: ( localize(3505, "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) {
@@ -424,7 +424,7 @@ let StatusbarPart = class StatusbarPart extends Part {
424
424
  }
425
425
  updateStyles() {
426
426
  super.updateStyles();
427
- const container = assertIsDefined(this.getContainer());
427
+ const container = assertReturnsDefined(this.getContainer());
428
428
  const styleOverride = [...this.styleOverrides].sort((a, b) => a.priority - b.priority)[0];
429
429
  const backgroundColor = this.getColor(styleOverride?.background ?? (this.contextService.getWorkbenchState() !== WorkbenchState.EMPTY ? STATUS_BAR_BACKGROUND : STATUS_BAR_NO_FOLDER_BACKGROUND)) || '';
430
430
  container.style.backgroundColor = backgroundColor;