(options: WorkspaceFilesystemLifecycleOptions)
| 114 | } |
| 115 | |
| 116 | function resolveWorkspaceKey(options: WorkspaceFilesystemLifecycleOptions): string { |
| 117 | if (options.workspaceKey) { |
| 118 | return options.workspaceKey; |
| 119 | } |
| 120 | const runtimeInstance = getRuntimeInstanceIfConfigured(); |
| 121 | if (runtimeInstance) { |
| 122 | return runtimeInstance.workspaceKey; |
| 123 | } |
| 124 | if (options.logDir) { |
| 125 | return 'custom-log-dir'; |
| 126 | } |
| 127 | return getRuntimeInstance().workspaceKey; |
| 128 | } |
| 129 | |
| 130 | function resolveOptions( |
| 131 | options: WorkspaceFilesystemLifecycleOptions, |
no test coverage detected