Skip to content

Extension scans node_modules in nested repos causing significant lag #722

@smol-ninja

Description

@smol-ninja

Problem

The extension ignores node_modules at the root level but scans Solidity files in node_modules of nested/child repos.

root/
├── node_modules/          ← ignored ✓
└── src/
    └── node_modules/      ← scanned ✗ (causes lag)

As a result of this, vscode/cursor becomes unresponsive when working in a monorepo with nested node_modules. If you disable the extension or delete nested node_modules, the lag disappears.

Suggested Fix

Ignore **/node_modules/** recursively rather than just root-level node_modules.

Example Repo

https://github.com/sablier-labs/lockup/tree/staging (foundry monorepo with multiple nested foundry.toml)

Screenshots

See #722 (comment) below.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions