Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
This repository was archived by the owner on Oct 31, 2025. It is now read-only.

getFileResults and getSearchResults functions only account for the ignore file at the root level of the workspace #143

@Jazzcort

Description

@Jazzcort

If we have a directory with this structure:

.
├── .continueignore
├── my_python_file.py
└── nested_directory/
    ├── .continueignore
    ├── should_ignore.py
    └── should_find.py

The .continueignore at root directory:

my_python_file.py

The .continueignore at nested_directory/

should_ignore.py

The result of getFileResults looks like this:

nested_directory/should_find.py
nested_directory/should_ignore.py

instead of this as what we expect:

nested_directory/should_find.py

It's because we only pass the ignore file at the root level of the workspace in this function.

Image

This problem also happens for .gitignore.

Potential Solution

The potential solution would be finding all the ignore files at all the child directories and pass them to ripgrep with --ignore-file flag.

Here is the result of passing all the ignore files with ripgrep as a CLI:

Image

which is what we expect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamBugs in continue upstream🐞 bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions