mirror of
https://github.com/tiennm99/ccs.git
synced 2026-08-14 02:22:04 +00:00
feat(websearch): call removeHookConfig on uninstall
- uninstallWebSearchHook() now calls removeHookConfig() - ensures settings.json cleanup when hook file is removed
This commit is contained in:
@@ -11,7 +11,7 @@ import * as path from 'path';
|
|||||||
import * as os from 'os';
|
import * as os from 'os';
|
||||||
import { info, warn } from '../ui';
|
import { info, warn } from '../ui';
|
||||||
import { getWebSearchConfig } from '../../config/unified-config-loader';
|
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
|
// Re-export from hook-config for backward compatibility
|
||||||
export { getHookPath, getWebSearchHookConfig } from './hook-config';
|
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;
|
return true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user