MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / handleFileChange

Function handleFileChange

src/utils/xcode-state-watcher.ts:97–108  ·  view source on GitHub ↗

* Handle file change event (debounced)

()

Source from the content-addressed store, hash-verified

95 * Handle file change event (debounced)
96 */
97function handleFileChange(): void {
98 if (state.debounceTimer) {
99 clearTimeout(state.debounceTimer);
100 }
101
102 state.debounceTimer = setTimeout(() => {
103 state.debounceTimer = null;
104 processFileChange().catch((e) => {
105 log('warn', `[xcode-watcher] Error processing file change: ${e}`);
106 });
107 }, DEBOUNCE_MS);
108}
109
110/**
111 * Process the file change and update session defaults

Callers 1

startXcodeStateWatcherFunction · 0.85

Calls 2

logFunction · 0.90
processFileChangeFunction · 0.85

Tested by

no test coverage detected