When executing search from extension api 2 checkboxes are not exposed:
vscode.commands.executeCommand('workbench.action.findInFiles', {
query: regexStr,
isRegex: true,
triggerSearch: true,
});

Hey @usernamehw , Can you please explain a little more about the issue?
@dhairyanadapara It's possible to trigger a search from extension by using this api:
vscode.commands.executeCommand('workbench.action.findInFiles', {
query: 'example',
});
And it has a good amount of options:
export interface IFindInFilesArgs {
query?: string;
replace?: string;
triggerSearch?: boolean;
filesToInclude?: string;
filesToExclude?: string;
isRegex?: boolean;
isCaseSensitive?: boolean;
matchWholeWord?: boolean;
}
But 2 of them are missing:
Preserve CaseUse Exclude Settings and Ignore FilesThank @usernamehw, got the idea. I will raise a PR to fix the issue ASAP :)
@usernamehw @roblourens I have raised the PR. If you get time please review :)
@roblourens genuinely didn't notice the existing PR, apologies @dhairyanadapara
Thanks @roblourens :). No problem @rotem-bar.
It great now that it's possible to control it 馃憤 but why does it called excludeSettingAndIgnoreFiles? Would it possible to have the same name as in label:
- excludeSettingAndIgnoreFiles
+ useExcludeSettingsAndIgnoreFiles
Updated to useExcludeSettingsAndIgnoreFiles as per @usernamehw's suggestion and for consistency with search editor post #108750. Also added these to the keybindings intellisense registry.
Most helpful comment
@roblourens genuinely didn't notice the existing PR, apologies @dhairyanadapara