MCPcopy Index your code
hub / github.com/microsoft/data-formulator / onWorkspaceListChanged

Function onWorkspaceListChanged

src/app/workspaceService.ts:47–50  ·  view source on GitHub ↗
(cb: () => void)

Source from the content-addressed store, hash-verified

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

Callers 3

DataSourceSidebarPanelFunction · 0.90
DataFormulatorFCFunction · 0.90
WorkspacePickerDialogFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected