@codingame/monaco-vscode-view-status-bar-service-override 38.0.2 → 38.0.3

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": "38.0.2",
3
+ "version": "38.0.3",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - view-status-bar service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "38.0.2"
18
+ "@codingame/monaco-vscode-api": "38.0.3"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -69,7 +69,7 @@ class StatusbarViewModel extends Disposable {
69
69
  this.markFirstLastVisibleEntry();
70
70
  }
71
71
  remove(entry) {
72
- const index = this._entries.indexOf(entry);
72
+ const index = ( this._entries.indexOf(entry));
73
73
  if (index >= 0) {
74
74
  this._entries.splice(index, 1);
75
75
  if (( this._entries.some(
@@ -126,7 +126,7 @@ class StatusbarViewModel extends Disposable {
126
126
  };
127
127
  const focused = this.getFocusedEntry();
128
128
  if (focused) {
129
- const entry = getVisibleEntry(this._entries.indexOf(focused) + delta);
129
+ const entry = getVisibleEntry(( this._entries.indexOf(focused)) + delta);
130
130
  if (entry) {
131
131
  this._lastFocusedEntry = entry;
132
132
  entry.labelContainer.focus();
@@ -305,9 +305,9 @@ let StatusbarPart = class StatusbarPart extends Part {
305
305
  }
306
306
  const entriesAfter = this.viewModel.entries;
307
307
  if (add) {
308
- entriesBefore.splice(entriesAfter.indexOf(entry), 0, entry);
308
+ entriesBefore.splice(( entriesAfter.indexOf(entry)), 0, entry);
309
309
  } else {
310
- entriesBefore.splice(entriesBefore.indexOf(entry), 1);
310
+ entriesBefore.splice(( entriesBefore.indexOf(entry)), 1);
311
311
  }
312
312
  const needsFullRefresh = !equals(entriesBefore, entriesAfter);
313
313
  return {
@@ -390,7 +390,7 @@ let StatusbarPart = class StatusbarPart extends Part {
390
390
  const target = assertReturnsDefined(
391
391
  entry.alignment === StatusbarAlignment.LEFT ? this.leftItemsContainer : this.rightItemsContainer
392
392
  );
393
- const index = entries.indexOf(entry);
393
+ const index = ( entries.indexOf(entry));
394
394
  if (index + 1 === entries.length) {
395
395
  target.appendChild(entry.container);
396
396
  } else {