generated from obsidianmd/obsidian-sample-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add hidden user setting to control whether PerformanceTracker i…
…s enabled
- Loading branch information
1 parent
7d54ccb
commit 4f11d21
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
export class DebugSettings { | ||
constructor(ignoreSortInstructions = false, showTaskHiddenData = false) { | ||
constructor(ignoreSortInstructions = false, showTaskHiddenData = false, recordTimings = false) { | ||
this.ignoreSortInstructions = ignoreSortInstructions; | ||
this.showTaskHiddenData = showTaskHiddenData; | ||
this.recordTimings = recordTimings; // Enables or disables PerformanceTracker | ||
} | ||
|
||
// Optionally disable all sorting of search results, so that tasks are | ||
// displayed in the order they appear in the file. | ||
readonly ignoreSortInstructions: boolean; | ||
readonly showTaskHiddenData: boolean; | ||
readonly recordTimings: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters