CodeWebChat icon indicating copy to clipboard operation
CodeWebChat copied to clipboard

Is there a way to auto-ignore some files pattern?

Open dat-lequoc opened this issue 7 months ago • 2 comments

Image

dat-lequoc avatar May 22 '25 10:05 dat-lequoc

Great you bring it up. We need a way to ignore glob patterns outside of those defined in .gitignore.

robertpiosik avatar May 22 '25 11:05 robertpiosik

Yeah, but ignore in a way that => not select , but the file still show in the tree though

dat-lequoc avatar May 23 '25 08:05 dat-lequoc

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!! 👍🏻

Mayurifag avatar Dec 15 '25 00:12 Mayurifag

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 :)

robertpiosik avatar Dec 15 '25 12:12 robertpiosik

Hi! Thanks for suggestion! Yea, looks much better. :)

Image

Mayurifag avatar Dec 16 '25 08:12 Mayurifag

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 avatar Dec 16 '25 08:12 Mayurifag

@Mayurifag I'll add a shortcut in settings that creates this on user behalf.

robertpiosik avatar Dec 16 '25 10:12 robertpiosik