Skip to content

File list order not correct in go to file #34210

Closed
@yogeshkhatri1989

Description

@yogeshkhatri1989
  • VSCode Version: Code - Insiders 1.17.0-insider (128a4e3, 2017-09-12T05:10:59.101Z)
  • OS Version: Darwin x64 16.7.0

Steps to Reproduce:

  1. Create folder structure something like this
    image
  • Command to quickly create the above files & folders
    mkdir -p node_modules1/bundle/lib/model/modules/ot1 && touch node_modules1/bundle/lib/model/modules/ot1/index.js
    mkdir -p node_modules1/bundle/lib/model/modules/un1 && touch node_modules1/bundle/lib/model/modules/un1/index.js
    mkdir -p node_modules1/bundle/lib/model/modules/modu1 && touch node_modules1/bundle/lib/model/modules/modu1/index.js
    mkdir -p node_modules1/bundle/lib/model/modules/oddl1 && touch node_modules1/bundle/lib/model/modules/oddl1/index.js
  1. Now go to Go to File... (⌘T)
  2. Type modu1/index.js - this is the result
    image
  • expected file is at 2nd
  1. Type un1/index.js - this is the result
    image
  • expected file is at last

Here result eventually shows up but i expected it as the first result because all the results have common prefix and last result is the best match. This is just the sample but its a big problem where you have large number of files with same name under long path (like me). Sometimes the result is at 30-40 which makes me unable to use vscode for my case.

This thing works absolutely fine in sublime text so you can see the expected result and compare.

Reproduces without extensions: Yes

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugquick-pickQuick-pick widget issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions