()
| 249 | * Stop the xcuserstate watcher |
| 250 | */ |
| 251 | export async function stopXcodeStateWatcher(): Promise<void> { |
| 252 | if (state.debounceTimer) { |
| 253 | clearTimeout(state.debounceTimer); |
| 254 | state.debounceTimer = null; |
| 255 | } |
| 256 | |
| 257 | if (state.watcher) { |
| 258 | await state.watcher.close(); |
| 259 | state.watcher = null; |
| 260 | state.watchedPath = null; |
| 261 | state.executor = null; |
| 262 | state.cwd = null; |
| 263 | state.projectPath = null; |
| 264 | state.workspacePath = null; |
| 265 | log('info', '[xcode-watcher] Watcher stopped'); |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | /** |
| 270 | * Check if the watcher is currently running |
no test coverage detected