(cb: () => void)
| 45 | const WORKSPACE_LIST_CHANGED = 'df:workspace-list-changed'; |
| 46 | |
| 47 | export function onWorkspaceListChanged(cb: () => void): () => void { |
| 48 | window.addEventListener(WORKSPACE_LIST_CHANGED, cb); |
| 49 | return () => window.removeEventListener(WORKSPACE_LIST_CHANGED, cb); |
| 50 | } |
| 51 | |
| 52 | function _notifyListChanged(): void { |
| 53 | window.dispatchEvent(new Event(WORKSPACE_LIST_CHANGED)); |
no outgoing calls
no test coverage detected