8

The "Find all references" search takes forever. enter image description here

When it finishes I see that VSCode searched for references in my virtual environments .venv and .venvlinux, even though I listed it under my "Files: Exclude" and "Files: Watcher Exclude" settings

enter image description here

enter image description here

My json.settings file looks like this

{
    "files.exclude": {
        "**/.git": true,
        "**/.svn": true,
        "**/.hg": true,
        "**/CVS": true,
        "**/.DS_Store": true,
        "**/Thumbs.db": true,
        "**/.venv": true,
        "**/.venvlinux": true
      },

      "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/*/**": true,
        "**/.hg/store/**": true,
        "**/.venv/**": true,
        "**/.venvlinux/**": true
      },
}

How do I stop VSCode from searching for references in my virtual environments?

zwithouta
  • 1,319
  • 1
  • 9
  • 22

2 Answers2

2

This problem seems to be linked to Github Issue #6436 of vscode-remote-release, which was already covered by Github Issue #137872 of VSCode.

Based on that discussion, it looks like this is an ongoing problem, and further help will probably come from commenting on that issue or opening your own and referencing it.

ibarrond
  • 6,617
  • 4
  • 26
  • 45
0

I had this same issue. I had to add the pattern to my Search.exclude settings, instead of the Files.exclude settings.

server_unknown
  • 407
  • 2
  • 17