Skip to content

filename_test.go appears before filename.go in the explorer #107936

Description

@kylrth

Issue Type: Bug

For items in lexicographic order, an item that prefixes another item should be ranked before that longer item.

In VS Code, alpha_test.go gets displayed before alpha.go:

Screenshot from 2020-10-01 17-25-46

Since we ignore the .go extension when sorting these file names, I think this ordering should be reversed.

VS Code version: Code 1.49.2 (e5e9e69, 2020-09-24T16:26:09.944Z)
OS version: Linux x64 5.4.3-050403-generic snap
Remote OS version: Linux x64 5.4.0-47-generic

Activity

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

Metadata

Metadata

Labels

*duplicateIssue identified as a duplicate of another issue(s)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions