未验证 提交 ed426789 编写于 作者: R Rob Lourens 提交者: GitHub

Merge pull request #107910 from dhairyanadapara/control-preserve-case-and-exclude-setting

added preserve case and excluse setting in FindInFile interface
......@@ -155,12 +155,14 @@ export abstract class FindOrReplaceInFilesAction extends Action {
export interface IFindInFilesArgs {
query?: string;
replace?: string;
preserveCase?: boolean;
triggerSearch?: boolean;
filesToInclude?: string;
filesToExclude?: string;
isRegex?: boolean;
isCaseSensitive?: boolean;
matchWholeWord?: boolean;
excludeSettingAndIgnoreFiles?: boolean;
}
export const FindInFilesCommand: ICommandHandler = (accessor, args: IFindInFilesArgs = {}) => {
......
......@@ -1189,6 +1189,12 @@ export class SearchView extends ViewPane {
if (typeof args.triggerSearch === 'boolean' && args.triggerSearch) {
this.triggerQueryChange();
}
if (typeof args.preserveCase === 'boolean') {
this.searchWidget.replaceInput.setPreserveCase(args.preserveCase);
}
if (typeof args.excludeSettingAndIgnoreFiles === 'boolean') {
this.inputPatternExcludes.setUseExcludesAndIgnoreFiles(args.excludeSettingAndIgnoreFiles);
}
}
toggleQueryDetails(moveFocus = true, show?: boolean, skipLayout?: boolean, reverse?: boolean): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册