* Initialize the status bar service
()
| 35 | * Initialize the status bar service |
| 36 | */ |
| 37 | initialize(): void { |
| 38 | this.ensureTrackedStatusBarElement(); |
| 39 | this.ensurePomodoroStatusBarElement(); |
| 40 | this.registerPomodoroEvents(); |
| 41 | |
| 42 | // Initial update |
| 43 | void this.updateStatusBar(); |
| 44 | this.updatePomodoroStatusBar(); |
| 45 | } |
| 46 | |
| 47 | private ensureTrackedStatusBarElement(): void { |
| 48 | if (this.statusBarElement || !this.plugin.settings.showTrackedTasksInStatusBar) { |
nothing calls this directly
no test coverage detected