@codingame/monaco-vscode-view-status-bar-service-override 7.1.0 → 7.1.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": "7.1.0",
3
+ "version": "7.1.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@7.1.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@7.1.1"
30
30
  }
31
31
  }
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import { Iterable } from 'vscode/vscode/vs/base/common/iterator';
3
3
  import { DisposableStore, toDisposable } from 'vscode/vscode/vs/base/common/lifecycle';
4
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
4
+ import { localize } from 'vscode/vscode/vs/nls';
5
5
  import { isAccessibilityInformation } from 'vscode/vscode/vs/platform/accessibility/common/accessibility';
6
6
  import { ExtensionIdentifier } from 'vscode/vscode/vs/platform/extensions/common/extensions';
7
7
  import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
@@ -11,7 +11,6 @@ import { isProposedApiEnabled } from 'vscode/vscode/vs/workbench/services/extens
11
11
  import { ExtensionsRegistry } from 'vscode/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
12
12
  import { StatusBarUpdateKind, IExtensionStatusBarItemService } from 'vscode/vscode/vs/workbench/api/browser/statusBarService';
13
13
 
14
- const _moduleId = "vs/workbench/api/browser/statusBarExtensionPoint";
15
14
  function isUserFriendlyStatusItemEntry(candidate) {
16
15
  const obj = candidate;
17
16
  return (typeof obj.id === 'string' && obj.id.length > 0)
@@ -29,74 +28,63 @@ const statusBarItemSchema = {
29
28
  properties: {
30
29
  id: {
31
30
  type: 'string',
32
- markdownDescription: ( localizeWithPath(
33
- _moduleId,
34
- 0,
31
+ markdownDescription: ( localize(
32
+ 3034,
35
33
  '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'
36
34
  ))
37
35
  },
38
36
  name: {
39
37
  type: 'string',
40
- description: ( localizeWithPath(
41
- _moduleId,
42
- 1,
38
+ description: ( localize(
39
+ 3035,
43
40
  '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.'
44
41
  ))
45
42
  },
46
43
  text: {
47
44
  type: 'string',
48
- description: ( localizeWithPath(
49
- _moduleId,
50
- 2,
45
+ description: ( localize(
46
+ 3036,
51
47
  'The text to show for the entry. You can embed icons in the text by leveraging the `$(<name>)`-syntax, like \'Hello $(globe)!\''
52
48
  ))
53
49
  },
54
50
  tooltip: {
55
51
  type: 'string',
56
- description: ( localizeWithPath(_moduleId, 3, 'The tooltip text for the entry.'))
52
+ description: ( localize(3037, 'The tooltip text for the entry.'))
57
53
  },
58
54
  command: {
59
55
  type: 'string',
60
- description: ( localizeWithPath(
61
- _moduleId,
62
- 4,
63
- 'The command to execute when the status bar entry is clicked.'
64
- ))
56
+ description: ( localize(3038, 'The command to execute when the status bar entry is clicked.'))
65
57
  },
66
58
  alignment: {
67
59
  type: 'string',
68
60
  enum: ['left', 'right'],
69
- description: ( localizeWithPath(_moduleId, 5, 'The alignment of the status bar entry.'))
61
+ description: ( localize(3039, 'The alignment of the status bar entry.'))
70
62
  },
71
63
  priority: {
72
64
  type: 'number',
73
- description: ( localizeWithPath(
74
- _moduleId,
75
- 6,
65
+ description: ( localize(
66
+ 3040,
76
67
  'The priority of the status bar entry. Higher value means the item should be shown more to the left.'
77
68
  ))
78
69
  },
79
70
  accessibilityInformation: {
80
71
  type: 'object',
81
- description: ( localizeWithPath(
82
- _moduleId,
83
- 7,
72
+ description: ( localize(
73
+ 3041,
84
74
  'Defines the role and aria label to be used when the status bar entry is focused.'
85
75
  )),
86
76
  properties: {
87
77
  role: {
88
78
  type: 'string',
89
- description: ( localizeWithPath(
90
- _moduleId,
91
- 8,
79
+ description: ( localize(
80
+ 3042,
92
81
  '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'
93
82
  ))
94
83
  },
95
84
  label: {
96
85
  type: 'string',
97
- description: ( localizeWithPath(
98
- _moduleId,
99
- 9,
86
+ description: ( localize(
87
+ 3043,
100
88
  'The aria label of the status bar entry. Defaults to the entry\'s text.'
101
89
  ))
102
90
  }
@@ -105,7 +93,7 @@ const statusBarItemSchema = {
105
93
  }
106
94
  };
107
95
  const statusBarItemsSchema = {
108
- description: ( localizeWithPath(_moduleId, 10, "Contributes items to the status bar.")),
96
+ description: ( localize(3044, "Contributes items to the status bar.")),
109
97
  oneOf: [
110
98
  statusBarItemSchema,
111
99
  {
@@ -131,7 +119,7 @@ let StatusBarItemsExtensionPoint = class StatusBarItemsExtensionPoint {
131
119
  const { value, collector } = entry;
132
120
  for (const candidate of Iterable.wrap(value)) {
133
121
  if (!isUserFriendlyStatusItemEntry(candidate)) {
134
- collector.error(( localizeWithPath(_moduleId, 11, "Invalid status bar item contribution.")));
122
+ collector.error(( localize(3045, "Invalid status bar item contribution.")));
135
123
  continue;
136
124
  }
137
125
  const fullItemId = asStatusBarItemIdentifier(entry.description.identifier, candidate.id);
@@ -1,4 +1,4 @@
1
- import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
1
+ import { localize, localize2 } from 'vscode/vscode/vs/nls';
2
2
  import { IStatusbarService } from 'vscode/vscode/vs/workbench/services/statusbar/browser/statusbar.service';
3
3
  import { Action } from 'vscode/vscode/vs/base/common/actions';
4
4
  import { Parts } from 'vscode/vscode/vs/workbench/services/layout/browser/layoutService';
@@ -11,7 +11,6 @@ import { IEditorService } from 'vscode/vscode/vs/workbench/services/editor/commo
11
11
  import { StatusBarFocused } from 'vscode/vscode/vs/workbench/common/contextkeys';
12
12
  import { getActiveWindow } from 'vscode/vscode/vs/base/browser/dom';
13
13
 
14
- const _moduleId = "vs/workbench/browser/parts/statusbar/statusbarActions";
15
14
  class ToggleStatusbarEntryVisibilityAction extends Action {
16
15
  constructor(id, label, model) {
17
16
  super(id, label, undefined, true);
@@ -29,7 +28,7 @@ class ToggleStatusbarEntryVisibilityAction extends Action {
29
28
  }
30
29
  class HideStatusbarEntryAction extends Action {
31
30
  constructor(id, name, model) {
32
- super(id, ( localizeWithPath(_moduleId, 0, "Hide '{0}'", name)), undefined, true);
31
+ super(id, ( localize(6828, "Hide '{0}'", name)), undefined, true);
33
32
  this.model = model;
34
33
  }
35
34
  async run() {
@@ -100,7 +99,7 @@ class FocusStatusBarAction extends Action2 {
100
99
  constructor() {
101
100
  super({
102
101
  id: 'workbench.action.focusStatusBar',
103
- title: ( localize2WithPath(_moduleId, 1, 'Focus Status Bar')),
102
+ title: ( localize2(6829, 'Focus Status Bar')),
104
103
  category: Categories.View,
105
104
  f1: true
106
105
  });
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __param } from 'vscode/external/tslib/tslib.es6.js';
2
2
  import './media/statusbarpart.css.js';
3
- import { localizeWithPath } from 'vscode/vscode/vs/nls';
3
+ import { localize } from 'vscode/vscode/vs/nls';
4
4
  import { MutableDisposable, dispose, DisposableStore, disposeIfDisposable, toDisposable, Disposable } from 'vscode/vscode/vs/base/common/lifecycle';
5
5
  import { Part, MultiWindowParts } from 'vscode/vscode/vs/workbench/browser/part';
6
6
  import { Gesture, EventType as EventType$1 } from 'vscode/vscode/vs/base/browser/touch';
@@ -44,7 +44,6 @@ import { StatusBarFocused } from 'vscode/vscode/vs/workbench/common/contextkeys'
44
44
  import { Emitter, Event } from 'vscode/vscode/vs/base/common/event';
45
45
 
46
46
  var StatusbarPart_1, AuxiliaryStatusbarPart_1;
47
- const _moduleId = "vs/workbench/browser/parts/statusbar/statusbarPart";
48
47
  let StatusbarPart = class StatusbarPart extends Part {
49
48
  static { StatusbarPart_1 = this; }
50
49
  static { this.HEIGHT = 22; }
@@ -352,7 +351,7 @@ let StatusbarPart = class StatusbarPart extends Part {
352
351
  }
353
352
  getContextMenuActions(event) {
354
353
  const actions = [];
355
- actions.push(toAction({ id: ToggleStatusbarVisibilityAction.ID, label: ( localizeWithPath(_moduleId, 0, "Hide Status Bar")), run: () => this.instantiationService.invokeFunction(accessor => ( (new ToggleStatusbarVisibilityAction())).run(accessor)) }));
354
+ actions.push(toAction({ id: ToggleStatusbarVisibilityAction.ID, label: ( localize(3033, "Hide Status Bar")), run: () => this.instantiationService.invokeFunction(accessor => ( (new ToggleStatusbarVisibilityAction())).run(accessor)) }));
356
355
  actions.push(( (new Separator())));
357
356
  const handledEntries = ( (new Set()));
358
357
  for (const entry of this.viewModel.entries) {