( rootPath: string, debounceMs: number, options: InitProjectOptions )
| 1598 | } |
| 1599 | |
| 1600 | async function initProject( |
| 1601 | rootPath: string, |
| 1602 | debounceMs: number, |
| 1603 | options: InitProjectOptions |
| 1604 | ): Promise<void> { |
| 1605 | rememberProjectPath(rootPath); |
| 1606 | const project = getOrCreateProject(rootPath); |
| 1607 | await ensureProjectInitialized(project); |
| 1608 | touchProject(project.rootPath); |
| 1609 | |
| 1610 | if (options.enableWatcher) { |
| 1611 | ensureProjectWatcher(project, debounceMs); |
| 1612 | } |
| 1613 | } |
| 1614 | |
| 1615 | function normalizeRuntimeExtensions(extensions?: string[]): string[] | undefined { |
| 1616 | if (!extensions?.length) { |
no test coverage detected