()
| 156 | |
| 157 | private pendingRefresh?: Promise<void>; |
| 158 | private refresh() { |
| 159 | if (this.isShowing() && (!this.pendingRefresh)) { |
| 160 | this.pendingRefresh = Promise.resolve().then(() => { |
| 161 | if (this.isShowing()) { |
| 162 | this.show(); |
| 163 | } |
| 164 | delete this.pendingRefresh; |
| 165 | }); |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | show(): void { |
| 170 | switch (this._state) { |
no test coverage detected