Closed OriMarron closed 5 years ago
(related to #7 )
It could be convenient to show preferred files at the top of the search results.
Before:
After:
This PR create a new configuration field search-node-modules.orderPriority, which is a list of files to be shown first in the search results.
search-node-modules.orderPriority
The default value is ["index.js", "README.md", "package.json"], but each user may choose to customize it.
["index.js", "README.md", "package.json"]
The list is ordered by priority, e.g. index.js will be shown before readme.md.
index.js
readme.md
@orimwix Merge conflicts now, will take another look once they're sort. Looking good otherwise.
conflicts resolved
(related to #7 )
It could be convenient to show preferred files at the top of the search results.
Before:
After:
This PR create a new configuration field
search-node-modules.orderPriority
, which is a list of files to be shown first in the search results.The default value is
["index.js", "README.md", "package.json"]
, but each user may choose to customize it.The list is ordered by priority, e.g.
index.js
will be shown beforereadme.md
.