microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
158.92k stars 27.79k forks source link

showIncludesExcludes doesn't hide query details #212050

Open tkj-seasony opened 1 week ago

tkj-seasony commented 1 week ago

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

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 commented 1 week ago

Hmm, that isn't currently an option in findInFiles. But it can be added. You can see the existing fields here: https://github.com/microsoft/vscode/blob/220eb8e2a5b62834c963484eefcca0c0a9d80141/src/vs/workbench/contrib/search/browser/searchActionsFind.ts#L39-L51

VSCodeTriageBot commented 1 week ago

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!