Skip to content

Commit 08bf3d2

Browse files
authored
fix: update health notifications default setting to false (#69)
1 parent 16bd11c commit 08bf3d2

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "simple-coding-time-tracker",
33
"displayName": "Simple Coding Time Tracker",
44
"description": "Track and visualize your coding time across projects",
5-
"version": "0.6.1",
5+
"version": "0.6.2",
66
"publisher": "noorashuvo",
77
"license": "MIT",
88
"icon": "icon-sctt.png",
@@ -36,7 +36,7 @@
3636
},
3737
"simpleCodingTimeTracker.health.enableNotifications": {
3838
"type": "boolean",
39-
"default": true,
39+
"default": false,
4040
"description": "Enable health notifications during coding sessions"
4141
},
4242
"simpleCodingTimeTracker.health.modalNotifications": {

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function activate(context: vscode.ExtensionContext) {
8484
// Register health notifications toggle command (legacy command with confirmation)
8585
let toggleHealthCommand = vscode.commands.registerCommand('simpleCodingTimeTracker.toggleHealthNotifications', async () => {
8686
const config = vscode.workspace.getConfiguration('simpleCodingTimeTracker');
87-
const currentEnabled = config.get('health.enableNotifications', true);
87+
const currentEnabled = config.get('health.enableNotifications', false);
8888

8989
// Show current state and ask for confirmation
9090
const action = currentEnabled ? 'disable' : 'enable';

src/healthNotifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class HealthNotificationManager {
2929
eyeRestInterval: config.get('health.eyeRestInterval', 20),
3030
stretchInterval: config.get('health.stretchInterval', 30),
3131
breakThreshold: config.get('health.breakThreshold', 90),
32-
enableNotifications: config.get('health.enableNotifications', true),
32+
enableNotifications: config.get('health.enableNotifications', false),
3333
modalNotifications: config.get('health.modalNotifications', true)
3434
};
3535
}

src/notificationStatusBar.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class NotificationStatusBar implements vscode.Disposable {
2020

2121
private updateStatusBar(): void {
2222
const config = vscode.workspace.getConfiguration('simpleCodingTimeTracker');
23-
const isEnabled = config.get('health.enableNotifications', true);
23+
const isEnabled = config.get('health.enableNotifications', false);
2424

2525
// Use minimal text with no extra spaces
2626
this.statusBarItem.text = isEnabled ? '🔔' : '🔕';
@@ -33,7 +33,7 @@ export class NotificationStatusBar implements vscode.Disposable {
3333

3434
public async toggle(): Promise<void> {
3535
const config = vscode.workspace.getConfiguration('simpleCodingTimeTracker');
36-
const currentEnabled = config.get('health.enableNotifications', true);
36+
const currentEnabled = config.get('health.enableNotifications', false);
3737

3838
// Toggle the setting
3939
await config.update('health.enableNotifications', !currentEnabled, vscode.ConfigurationTarget.Global);

src/statusBar.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class StatusBar implements vscode.Disposable {
6363

6464
// Update notification status bar
6565
const config = vscode.workspace.getConfiguration('simpleCodingTimeTracker');
66-
const notificationsEnabled = config.get('health.enableNotifications', true);
66+
const notificationsEnabled = config.get('health.enableNotifications', false);
6767
const notificationIcon = notificationsEnabled ? '🔔' : '🔕';
6868
this.notificationItem.text = notificationIcon;
6969
this.notificationItem.tooltip = `Health Notifications: ${notificationsEnabled ? 'ON' : 'OFF'} (Click to toggle)`;
@@ -84,7 +84,7 @@ export class StatusBar implements vscode.Disposable {
8484
const currentProject = this.timeTracker.getCurrentProject();
8585

8686
const config = vscode.workspace.getConfiguration('simpleCodingTimeTracker');
87-
const notificationsEnabled = config.get('health.enableNotifications', true);
87+
const notificationsEnabled = config.get('health.enableNotifications', false);
8888
const notificationStatus = notificationsEnabled ? 'ON' : 'OFF';
8989

9090
return `${isActive ? 'Active' : 'Paused'} - Coding Time
@@ -102,7 +102,7 @@ Click to save session and show summary`;
102102
// Toggle notifications method
103103
private async toggleNotifications(): Promise<void> {
104104
const config = vscode.workspace.getConfiguration('simpleCodingTimeTracker');
105-
const currentEnabled = config.get('health.enableNotifications', true);
105+
const currentEnabled = config.get('health.enableNotifications', false);
106106

107107
// Toggle the setting
108108
await config.update('health.enableNotifications', !currentEnabled, vscode.ConfigurationTarget.Global);

0 commit comments

Comments
 (0)