()
| 411 | } |
| 412 | |
| 413 | function getActiveProjectDescriptor(): ProjectDescriptor | undefined { |
| 414 | if (!activeProjectKey) return undefined; |
| 415 | const trackedRootPath = getTrackedRootPathByKey(activeProjectKey); |
| 416 | |
| 417 | if (!trackedRootPath) { |
| 418 | activeProjectKey = undefined; |
| 419 | return undefined; |
| 420 | } |
| 421 | |
| 422 | return buildProjectDescriptor(trackedRootPath); |
| 423 | } |
| 424 | |
| 425 | function setActiveProject(rootPath: string): void { |
| 426 | const resolvedRootPath = path.resolve(rootPath); |
no test coverage detected