(workspaceId: number)
| 39 | nativeApiMinVersion, |
| 40 | ); |
| 41 | let workspace: IWorkspace; |
| 42 | if (this.cacheDir) { |
| 43 | workspace = createCachingWorkspace(this.cacheDir, uncachedWorkspace, this.logger, nativeApiMinVersion); |
| 44 | } else { |
| 45 | workspace = uncachedWorkspace; |
| 46 | } |
| 47 | |
| 48 | const workspaceId = ++this.sequence; |
| 49 | this.store.set(workspaceId, { uncachedWorkspace, activeWorkspace: workspace }); |
| 50 | |
| 51 | return { workspaceId, workspace }; |
| 52 | } |
no test coverage detected