From 82951fe7027632fb778a32a79473550d5beba275 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 12 Mar 2026 12:45:11 +0500 Subject: [PATCH] Pylance - ignore `_deps` folder In my case it was adding 3115 Python files and VS Code kept indexing them. --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index eaa3b59e36..fbafaf4c96 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,12 @@ extend-exclude = ''' reportInvalidTypeForm = false disableBytesTypePromotions = true reportUnnecessaryTypeIgnoreComment = true +# Pylance doesn't respect gitignore, so we have to exclude files manually here +# to avoid VS Code slowing down. +# https://github.com/microsoft/pylance-release/issues/5169 +exclude = [ + "_deps", +] # Define here general ruff settings, # then they will be inherited by projects' .toml files.