(id)
| 384 | }, |
| 385 | |
| 386 | remove(id) { |
| 387 | forgetToken(id); |
| 388 | state.connections = state.connections.filter( |
| 389 | (connection) => connection.id !== id, |
| 390 | ); |
| 391 | if (state.activeConnectionId === id) { |
| 392 | state.activeConnectionId = state.connections[0]?.id ?? null; |
| 393 | } |
| 394 | persist(); |
| 395 | return this.getActive(); |
| 396 | }, |
| 397 | |
| 398 | /** Test seam: drop cached state and re-read from disk. */ |
| 399 | reload() { |
nothing calls this directly
no test coverage detected