@@ -57,6 +57,7 @@ export class SettingsViewProvider {
5757 const settings = {
5858 inactivityTimeout : config . get ( 'inactivityTimeout' , 2.5 ) ,
5959 focusTimeout : config . get ( 'focusTimeout' , 3 ) ,
60+ statusBarShowSeconds : config . get ( 'statusBar.showSeconds' , true ) ,
6061 healthEnableNotifications : config . get ( 'health.enableNotifications' , true ) ,
6162 healthModalNotifications : config . get ( 'health.modalNotifications' , true ) ,
6263 healthEyeRestInterval : config . get ( 'health.eyeRestInterval' , 20 ) ,
@@ -78,6 +79,7 @@ export class SettingsViewProvider {
7879 // Most settings should be saved to Workspace scope (default behavior in package.json)
7980 await config . update ( 'inactivityTimeout' , settings . inactivityTimeout , vscode . ConfigurationTarget . Workspace ) ;
8081 await config . update ( 'focusTimeout' , settings . focusTimeout , vscode . ConfigurationTarget . Workspace ) ;
82+ await config . update ( 'statusBar.showSeconds' , settings . statusBarShowSeconds , vscode . ConfigurationTarget . Workspace ) ;
8183 await config . update ( 'health.enableNotifications' , settings . healthEnableNotifications , vscode . ConfigurationTarget . Workspace ) ;
8284 await config . update ( 'health.modalNotifications' , settings . healthModalNotifications , vscode . ConfigurationTarget . Workspace ) ;
8385 await config . update ( 'health.eyeRestInterval' , settings . healthEyeRestInterval , vscode . ConfigurationTarget . Workspace ) ;
@@ -110,6 +112,7 @@ export class SettingsViewProvider {
110112 // Reset workspace-scoped settings
111113 await config . update ( 'inactivityTimeout' , undefined , vscode . ConfigurationTarget . Workspace ) ;
112114 await config . update ( 'focusTimeout' , undefined , vscode . ConfigurationTarget . Workspace ) ;
115+ await config . update ( 'statusBar.showSeconds' , undefined , vscode . ConfigurationTarget . Workspace ) ;
113116 await config . update ( 'health.enableNotifications' , undefined , vscode . ConfigurationTarget . Workspace ) ;
114117 await config . update ( 'health.modalNotifications' , undefined , vscode . ConfigurationTarget . Workspace ) ;
115118 await config . update ( 'health.eyeRestInterval' , undefined , vscode . ConfigurationTarget . Workspace ) ;
@@ -287,6 +290,18 @@ export class SettingsViewProvider {
287290 </div>
288291 </div>
289292
293+ <div class="setting-group">
294+ <h2>📊 Status Bar Display Settings</h2>
295+
296+ <div class="setting-item">
297+ <div class="checkbox-container">
298+ <input type="checkbox" id="statusBarShowSeconds" />
299+ <label for="statusBarShowSeconds" style="margin: 0;">Show Seconds</label>
300+ </div>
301+ <div class="description">Display seconds in the status bar time (HH:MM:SS). Disable to reduce distractions and show only hours and minutes.</div>
302+ </div>
303+ </div>
304+
290305 <div class="setting-group">
291306 <h2>🔔 Health Notification Settings</h2>
292307
@@ -368,6 +383,7 @@ export class SettingsViewProvider {
368383 function loadSettings(settings) {
369384 document.getElementById('inactivityTimeout').value = settings.inactivityTimeout;
370385 document.getElementById('focusTimeout').value = settings.focusTimeout;
386+ document.getElementById('statusBarShowSeconds').checked = settings.statusBarShowSeconds;
371387 document.getElementById('healthEnableNotifications').checked = settings.healthEnableNotifications;
372388 document.getElementById('healthModalNotifications').checked = settings.healthModalNotifications;
373389 document.getElementById('healthEyeRestInterval').value = settings.healthEyeRestInterval;
@@ -380,6 +396,7 @@ export class SettingsViewProvider {
380396 return {
381397 inactivityTimeout: parseFloat(document.getElementById('inactivityTimeout').value),
382398 focusTimeout: parseFloat(document.getElementById('focusTimeout').value),
399+ statusBarShowSeconds: document.getElementById('statusBarShowSeconds').checked,
383400 healthEnableNotifications: document.getElementById('healthEnableNotifications').checked,
384401 healthModalNotifications: document.getElementById('healthModalNotifications').checked,
385402 healthEyeRestInterval: parseInt(document.getElementById('healthEyeRestInterval').value),
0 commit comments