Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showIncludesExcludes doesn't hide query details #212050

Open
tkj-seasony opened this issue May 5, 2024 · 2 comments
Open

showIncludesExcludes doesn't hide query details #212050

tkj-seasony opened this issue May 5, 2024 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities

Comments

@tkj-seasony
Copy link

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.89.0
  • OS Version: Windows 10.0.19045

Steps to Reproduce:

Create a keybinding to workbench.action.findInFiles with the showIncludesExcludes argument set to false.

    {
        "key": "ctrl+shift+f",
        "command": "workbench.action.findInFiles",
        "args": {            
            "showIncludesExcludes": false,
            "useExcludeSettingsAndIgnoreFiles": false,            
        }
    },

The search sidepanel appears but if the includes and excludes fields were shown from a prior search they are still visible.
The same happens even though the includes and excludes are cleared:

    {
        "key": "ctrl+shift+f",
        "command": "workbench.action.findInFiles",
        "args": {            
            "showIncludesExcludes": false,
            "useExcludeSettingsAndIgnoreFiles": false,       
            "filesToInclude": "",     
            "filesToExclude": "",     
        }
    },
@andreamah
Copy link
Contributor

Hmm, that isn't currently an option in findInFiles. But it can be added. You can see the existing fields here:

export interface IFindInFilesArgs {
query?: string;
replace?: string;
preserveCase?: boolean;
triggerSearch?: boolean;
filesToInclude?: string;
filesToExclude?: string;
isRegex?: boolean;
isCaseSensitive?: boolean;
matchWholeWord?: boolean;
useExcludeSettingsAndIgnoreFiles?: boolean;
onlyOpenEditors?: boolean;
}

@andreamah andreamah added feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities labels May 6, 2024
@VSCodeTriageBot VSCodeTriageBot added this to the Backlog Candidates milestone May 6, 2024
@VSCodeTriageBot
Copy link
Collaborator

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities
Projects
None yet
Development

No branches or pull requests

3 participants