feat(websearch): call removeHookConfig on uninstall

- uninstallWebSearchHook() now calls removeHookConfig()

- ensures settings.json cleanup when hook file is removed
This commit is contained in:
kaitranntt
2026-01-25 20:04:04 -05:00
parent 9159aa52cb
commit fc4d987d20
+3 -2
View File
@@ -11,7 +11,7 @@ import * as path from 'path';
import * as os from 'os';
import { info, warn } from '../ui';
import { getWebSearchConfig } from '../../config/unified-config-loader';
import { getHookPath, ensureHookConfig } from './hook-config';
import { getHookPath, ensureHookConfig, removeHookConfig } from './hook-config';
// Re-export from hook-config for backward compatibility
export { getHookPath, getWebSearchHookConfig } from './hook-config';
@@ -115,7 +115,8 @@ export function uninstallWebSearchHook(): boolean {
}
}
// TODO: Optionally remove from settings.json
// Remove from settings.json
removeHookConfig();
return true;
} catch (error) {