Skip to content

Duplicated tree entries when Scan Mode is All #173

Description

@GGsource

Problem Description

When Scan Mode is set to Workspace and Open Files, some duplicate versions of files show up in the TODO Tree structure.

Image

Note that it is not simply a doubling of all open files. In this example utils.ts and rankup.ts are duplicated, but Rows.ts is not, despite being one of the open files.

This also causes the badge counter of TODOs to erroneously be increased:

Image

Why not just set Scan mode to Workspace Only as a workaround?

The issue is that switching to a more stringent Scan mode disables the tree's auto-updating behavior. Under the scan mode of worksppace and open files, TODOs are instantly updated in the tree in real time, whereas being in one of the other modes requires a manual reloading of the tree.

Suggested Solution

If this isn't already the case, the list of files gathered should be turned into a strictly unique set. If this is already intended, then it must be the case that this behavior is bugged. Additionally, alt modes should also have the auto-updating behavior if enabled by the user.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions