Is there a way to auto-ignore some files pattern?
Great you bring it up. We need a way to ignore glob patterns outside of those defined in .gitignore.
Yeah, but ignore in a way that => not select , but the file still show in the tree though
One of the final solutions as it seems for me would be project-related settings via something custom in ./vscode/ folder, because its very common to want not only some always ignored files, but also custom prompts: in project with rust I want one prompt, in python project other and so on. Also — autoignored on sending to models 😄
By the way, ignoring files is a really needed function. I'd use it with uv.lock or Gemfile.lock files or something encrypted, yet in git, like credentials files in Rails ecosystem.
Thanks in advance!! 👍🏻
Hi @Mayurifag.
In .vscode/settings.json add key codeWebChat.ignorePatterns, and in the array of strings, list all the globs you want to ignore. I'll add a shortcut for it in Settings :)
Hi! Thanks for suggestion! Yea, looks much better. :)
If one wants that just for workspace, not global excludes, here is the copy-paste solution:
Create/modify .vscode/settings.json in your project:
{
"codeWebChat.ignorePatterns": [
"/uv.lock"
],
}
@Mayurifag I'll add a shortcut in settings that creates this on user behalf.