feat(core): Enable ripgrep by default. (#7427)

This commit is contained in:
joshualitt
2025-09-11 16:46:07 -07:00
committed by GitHub
parent 557dba4a32
commit 68035591da
5 changed files with 29 additions and 27 deletions

View File

@@ -1645,29 +1645,29 @@ describe('loadCliConfig useRipgrep', () => {
vi.restoreAllMocks();
});
it('should be false by default when useRipgrep is not set in settings', async () => {
it('should be true by default when useRipgrep is not set in settings', async () => {
process.argv = ['node', 'script.js'];
const argv = await parseArguments({} as Settings);
const settings: Settings = {};
const config = await loadCliConfig(settings, [], 'test-session', argv);
expect(config.getUseRipgrep()).toBe(false);
});
it('should be true when useRipgrep is set to true in settings', async () => {
process.argv = ['node', 'script.js'];
const argv = await parseArguments({} as Settings);
const settings: Settings = { tools: { useRipgrep: true } };
const config = await loadCliConfig(settings, [], 'test-session', argv);
expect(config.getUseRipgrep()).toBe(true);
});
it('should be false when useRipgrep is explicitly set to false in settings', async () => {
it('should be false when useRipgrep is set to false in settings', async () => {
process.argv = ['node', 'script.js'];
const argv = await parseArguments({} as Settings);
const settings: Settings = { tools: { useRipgrep: false } };
const config = await loadCliConfig(settings, [], 'test-session', argv);
expect(config.getUseRipgrep()).toBe(false);
});
it('should be true when useRipgrep is explicitly set to true in settings', async () => {
process.argv = ['node', 'script.js'];
const argv = await parseArguments({} as Settings);
const settings: Settings = { tools: { useRipgrep: true } };
const config = await loadCliConfig(settings, [], 'test-session', argv);
expect(config.getUseRipgrep()).toBe(true);
});
});
describe('loadCliConfig tool exclusions', () => {

View File

@@ -741,7 +741,7 @@ const SETTINGS_SCHEMA = {
label: 'Use Ripgrep',
category: 'Tools',
requiresRestart: false,
default: false,
default: true,
description:
'Use ripgrep for file content search instead of the fallback implementation. Provides faster search performance.',
showInDialog: true,