MCPcopy
hub / github.com/callumalpass/tasknotes / updateConfig

Method updateConfig

src/utils/TaskManager.ts:1109–1122  ·  view source on GitHub ↗
(settings: TaskNotesSettings)

Source from the content-addressed store, hash-verified

1107 }
1108
1109 updateConfig(settings: TaskNotesSettings): void {
1110 // Update settings
1111 this.settings = settings;
1112 this.taskTag = settings.taskTag;
1113 this.excludedFolders = parseExcludedFolders(settings.excludedFolders);
1114 this.disableNoteIndexing = settings.disableNoteIndexing;
1115 this.storeTitleInFilename = settings.storeTitleInFilename;
1116 this.clearFilterIndexes();
1117 this.filterIndexesBuilt = false;
1118 this.pruneExcludedPendingTaskInfo();
1119
1120 // Emit config changed event
1121 this.trigger("data-changed");
1122 }
1123
1124 private pruneExcludedPendingTaskInfo(): void {
1125 for (const path of this.pendingTaskInfoByPath.keys()) {

Calls 4

clearFilterIndexesMethod · 0.95
parseExcludedFoldersFunction · 0.90
triggerMethod · 0.65

Tested by

no test coverage detected