feat: publish HoloLake model-native living system source
This commit is contained in:
parent
6ad10edde1
commit
c395dd3a99
2467 changed files with 615073 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
|||
interface ViewCreationVaultPathOptions {
|
||||
editingRootPath?: string
|
||||
fallbackVaultPath: string
|
||||
graphDefaultWorkspacePath: string
|
||||
multiWorkspaceEnabled: boolean
|
||||
}
|
||||
|
||||
function usablePath(path: string | null | undefined): string | null {
|
||||
const trimmed = path?.trim()
|
||||
return trimmed ? trimmed : null
|
||||
}
|
||||
|
||||
export function viewCreationVaultPath({
|
||||
editingRootPath,
|
||||
fallbackVaultPath,
|
||||
graphDefaultWorkspacePath,
|
||||
multiWorkspaceEnabled,
|
||||
}: ViewCreationVaultPathOptions): string {
|
||||
return usablePath(editingRootPath)
|
||||
?? (multiWorkspaceEnabled ? usablePath(graphDefaultWorkspacePath) : null)
|
||||
?? fallbackVaultPath
|
||||
}
|
||||
Loading…
Reference in a new issue