(ref?: LocationRef)
| 52 | } |
| 53 | |
| 54 | function locationQuery(ref?: LocationRef) { |
| 55 | return ref ? { directory: ref.directory, workspace: ref.workspaceID } : undefined |
| 56 | } |
| 57 | |
| 58 | export const { use: useData, provider: DataProvider } = createSimpleContext({ |
| 59 | name: "Data", |