Skip to content

openRecent does not sort by recency after filtering #147023

@yo1dog

Description

@yo1dog

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.66.0
  • OS Version: Windows_NT x64 10.0.19043

Steps to Reproduce:

  1. Create 3 folders: test1, test2, test3
  2. Open workspace test1
  3. Open workspace test2
  4. Open workspace test3
  5. File -> Open Recent -> More...
  6. Observe the results are order by recency: test3, test2, test1
  7. Type "test"
  8. Notice the results are no longer ordered by recency: test1, test2 test3. I would expect the results to be ordered test3, test2, test1 even after filtering with "test".

The openRecent command results are sorted by recency until filtered. I am not sure how it sorts then but recency does not seem to be a factor in the score. This seems to me a bug given "recent" is in the command name but recency is not considered in the sorting.

Further, not including recency in the sort score makes it difficult to find results that are used often over those used infrequently but with a similar name. I frequently have to scroll through many results of files and folders I opened years ago to find the file I opened days ago because they happen to contain the same name.

A similar issue with quickOpen (#35610) was solved by adding the "search.quickOpen.history.filterSortOrder": "recency" setting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions