Skip to content

Commit c3575f2

Browse files
committed
refactor: - rename field to includes (QueryContext)
1 parent 958105c commit c3575f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Scripting/QueryContext.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface QueryContext {
2525
allTasks: Readonly<Task[]>;
2626
searchCache: Record<string, any>; // Added caching capability
2727
};
28-
include: Record<string, string>;
28+
includes: Record<string, string>;
2929
}
3030

3131
/**
@@ -59,6 +59,6 @@ export function makeQueryContextWithTasks(tasksFile: TasksFile, allTasks: Readon
5959
allTasks: allTasks,
6060
searchCache: {}, // Added for caching
6161
},
62-
include: { ...getSettings().include },
62+
includes: { ...getSettings().include },
6363
};
6464
}

tests/Scripting/Includes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('include tests', () => {
1010
it('should accept whole-line include placeholder', () => {
1111
updateSettings({ include: { not_done: 'not done' } });
1212

13-
const source = '{{include.not_done}}';
13+
const source = '{{includes.not_done}}';
1414
const query = new Query(source, new TasksFile('stuff.md'));
1515

1616
expect(query.error).toBeUndefined();

0 commit comments

Comments
 (0)