Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

When registering a source, condition should recursively from current file dir to root #1625

@TroySigX

Description

@TroySigX

Issues

  • I have checked existing issues and there are no existing ones with the same request.

Feature description

I notice that when checking for conditions using utils.root_has_file, it only checks in the directory containing the .git folder. It would be better if it checks recursively from the current file's dir (or the pwd) up to the root folder (the same behavior as editorconfig)

Help

No

Implementation help

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions