@adecore/terminal 0.54.2 → 0.54.4

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.
@@ -67,7 +67,7 @@ class WebglBudget {
67
67
  });
68
68
  }
69
69
  apply(change) {
70
- // Free first, the browser has to be back under its own limit before the next context exists.
70
+ // Free first, because the browser has to be back under its own limit before the next context exists.
71
71
  for (const id of change.revoked) {
72
72
  this.unload(id);
73
73
  }
@@ -114,7 +114,7 @@ class WebglBudget {
114
114
  }
115
115
  handleLoss(id) {
116
116
  this.unload(id);
117
- // Not gone for good, the terminal waits in line and takes a context again when it is focused.
117
+ // The loss is not final. The terminal waits in line and takes a context again when it is focused.
118
118
  this.apply(this.slots.lost(id));
119
119
  }
120
120
  drop(entry) {
@@ -103,7 +103,7 @@ export class WebglSlots {
103
103
  }
104
104
  return change;
105
105
  }
106
- /* The browser reported a context loss, free the slot and wait for a focus before asking again. */
106
+ /* The browser reported a context loss. The slot frees up, and the terminal waits for a focus before it asks again. */
107
107
  lost(id) {
108
108
  const member = this.members.get(id);
109
109
  if (!member) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/terminal",
3
- "version": "0.54.2",
3
+ "version": "0.54.4",
4
4
  "description": "A themed terminal pane on xterm.js that fits its container and is fed by the app.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "Bas Milius",
@@ -89,7 +89,7 @@ class WebglBudget {
89
89
  }
90
90
 
91
91
  private apply(change: SlotChange): void {
92
- // Free first, the browser has to be back under its own limit before the next context exists.
92
+ // Free first, because the browser has to be back under its own limit before the next context exists.
93
93
  for (const id of change.revoked) {
94
94
  this.unload(id);
95
95
  }
@@ -150,7 +150,7 @@ class WebglBudget {
150
150
 
151
151
  private handleLoss(id: string): void {
152
152
  this.unload(id);
153
- // Not gone for good, the terminal waits in line and takes a context again when it is focused.
153
+ // The loss is not final. The terminal waits in line and takes a context again when it is focused.
154
154
  this.apply(this.slots.lost(id));
155
155
  }
156
156
 
@@ -143,7 +143,7 @@ export class WebglSlots {
143
143
  return change;
144
144
  }
145
145
 
146
- /* The browser reported a context loss, free the slot and wait for a focus before asking again. */
146
+ /* The browser reported a context loss. The slot frees up, and the terminal waits for a focus before it asks again. */
147
147
  lost(id: string): SlotChange {
148
148
  const member = this.members.get(id);
149
149