We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e770f0b commit b72640fCopy full SHA for b72640f
src/Scripting/QueryContext.ts
@@ -28,15 +28,10 @@ export interface QueryContext {
28
* @param path
29
*
30
* @see SearchInfo.queryContext
31
+ * @see makeQueryContextWithTasks
32
*/
33
export function makeQueryContext(path: string): QueryContext {
- const tasksFile = new TasksFile(path);
34
- return {
35
- query: {
36
- file: tasksFile,
37
- allTasks: [],
38
- },
39
- };
+ return makeQueryContextWithTasks(path, []);
40
}
41
42
export function makeQueryContextWithTasks(path: string, allTasks: Readonly<Task[]>): QueryContext {
0 commit comments