()
| 37 | } |
| 38 | |
| 39 | export function getRuntimeInstanceIfConfigured(): RuntimeInstance | null { |
| 40 | if (runtimeInstance) { |
| 41 | return runtimeInstance; |
| 42 | } |
| 43 | if (!configuredWorkspaceKey) { |
| 44 | return null; |
| 45 | } |
| 46 | return getRuntimeInstance(); |
| 47 | } |
| 48 | |
| 49 | export function setRuntimeInstanceForTests( |
| 50 | instance: |
no test coverage detected