Fix #127898
This commit is contained in:
parent
92f692d4a3
commit
08e5cccb11
|
@ -705,6 +705,7 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|||
isCaseSensitive: { 'type': 'boolean' },
|
||||
matchWholeWord: { 'type': 'boolean' },
|
||||
useExcludeSettingsAndIgnoreFiles: { 'type': 'boolean' },
|
||||
onlyOpenEditors: { 'type': 'boolean' },
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -172,6 +172,7 @@ export interface IFindInFilesArgs {
|
|||
isCaseSensitive?: boolean;
|
||||
matchWholeWord?: boolean;
|
||||
useExcludeSettingsAndIgnoreFiles?: boolean;
|
||||
onlyOpenEditors?: boolean;
|
||||
}
|
||||
export const FindInFilesCommand: ICommandHandler = (accessor, args: IFindInFilesArgs = {}) => {
|
||||
const searchConfig = accessor.get(IConfigurationService).getValue<ISearchConfiguration>().search;
|
||||
|
@ -201,6 +202,7 @@ export const FindInFilesCommand: ICommandHandler = (accessor, args: IFindInFiles
|
|||
isCaseSensitive: args.isCaseSensitive,
|
||||
isRegexp: args.isRegex,
|
||||
useExcludeSettingsAndIgnoreFiles: args.useExcludeSettingsAndIgnoreFiles,
|
||||
onlyOpenEditors: args.onlyOpenEditors,
|
||||
showIncludesExcludes: !!(args.filesToExclude || args.filesToExclude || !args.useExcludeSettingsAndIgnoreFiles),
|
||||
});
|
||||
accessor.get(ICommandService).executeCommand(OpenEditorCommandId, convertArgs(args));
|
||||
|
|
|
@ -1240,6 +1240,9 @@ export class SearchView extends ViewPane {
|
|||
if (typeof args.useExcludeSettingsAndIgnoreFiles === 'boolean') {
|
||||
this.inputPatternExcludes.setUseExcludesAndIgnoreFiles(args.useExcludeSettingsAndIgnoreFiles);
|
||||
}
|
||||
if (typeof args.onlyOpenEditors === 'boolean') {
|
||||
this.searchIncludePattern.setOnlySearchInOpenEditors(args.onlyOpenEditors);
|
||||
}
|
||||
}
|
||||
|
||||
toggleQueryDetails(moveFocus = true, show?: boolean, skipLayout?: boolean, reverse?: boolean): void {
|
||||
|
|
|
@ -217,6 +217,7 @@ const openArgDescription = {
|
|||
showIncludesExcludes: { type: 'boolean' },
|
||||
triggerSearch: { type: 'boolean' },
|
||||
focusResults: { type: 'boolean' },
|
||||
onlyOpenEditors: { type: 'boolean' },
|
||||
}
|
||||
}
|
||||
}]
|
||||
|
|
Loading…
Reference in a new issue