Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ const CONFIG_FILE = 'config.yaml';
const CONFIG_DEFAULTS_FILE = 'config.defaults.yaml';
const INIT_SEMAPHORE_FILE = 'initialized';

// Track if autoExport deprecation warning has been shown to avoid spamming TUI
let autoExportWarningShown = false;


/**
* Get the path to the config directory
Expand Down Expand Up @@ -188,15 +187,6 @@ export function loadConfig(): WorklogConfig | null {
console.error(statusStageError);
return null;
}

// Warn about deprecated autoExport option (but don't fail)
// Only show warning once to avoid spamming TUI output
const rawConfig = config as any;
if (rawConfig?.autoExport !== undefined && !autoExportWarningShown) {
autoExportWarningShown = true;
// Write to stderr to avoid interfering with TUI stdout
process.stderr.write('Warning: autoExport config option is deprecated and will be ignored. Export functionality has been removed.\n');
}

return config;
}
Expand Down
Loading