jasonnutter / vscode-search-node-modules

Simple plugin for VS Code that allows you to quickly navigate the file inside your project's node_modules directory.
https://marketplace.visualstudio.com/items?itemName=jasonnutter.search-node-modules
MIT License
60 stars 17 forks source link

Feature: show specific files first according to configuration #12

Closed OriMarron closed 5 years ago

OriMarron commented 5 years ago

(related to #7 )

It could be convenient to show preferred files at the top of the search results.

Before: image

After: image

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 before readme.md.

jasonnutter commented 5 years ago

@orimwix Merge conflicts now, will take another look once they're sort. Looking good otherwise.

OriMarron commented 5 years ago

conflicts resolved