@@ -103,11 +103,9 @@ export function createSearchQuickPickHandler(preferredManager: string, workspace
103103 `$(eye) ${ numberFormatter . format ( selectedEntry . github . stats . subscribers ) } ` ,
104104 ] . join ( ' ' ) ,
105105 } ,
106- ! selectedEntry . template && {
106+ selectedEntry . npm ?. downloads && {
107107 label : ENTRY_OPTION . VISIT_NPM ,
108- description : selectedEntry . npm ?. downloads
109- ? `$(arrow-circle-down) ${ numberFormatter . format ( selectedEntry . npm . downloads ) } `
110- : '' ,
108+ description : `$(arrow-circle-down) ${ numberFormatter . format ( selectedEntry . npm . downloads ) } ` ,
111109 } ,
112110 { label : ENTRY_OPTION . VISIT_DIRECTORY } ,
113111 selectedEntry . github . urls . homepage && {
@@ -122,7 +120,8 @@ export function createSearchQuickPickHandler(preferredManager: string, workspace
122120 label : ENTRY_OPTION . VIEW_DEPENDENCIES ,
123121 description : `$(package) ${ numberFormatter . format ( selectedEntry . github . stats . dependencies ) } ${ pluralize ( 'dependency' , selectedEntry . github . stats . dependencies ) } ` ,
124122 } ,
125- ! selectedEntry . template && { label : ENTRY_OPTION . VIEW_BUNDLEPHOBIA } ,
123+ { label : ENTRY_OPTION . VIEW_MODULES_INSPECTOR } ,
124+ { label : ENTRY_OPTION . VIEW_BUNDLEPHOBIA } ,
126125 selectedEntry . nightlyProgram && { label : ENTRY_OPTION . VIEW_NIGHTLY_RESULTS } ,
127126 { label : 'details' , kind : QuickPickItemKind . Separator } ,
128127 {
@@ -143,10 +142,10 @@ export function createSearchQuickPickHandler(preferredManager: string, workspace
143142 } ,
144143 ...examplesActions ,
145144 { label : 'copy data' , kind : QuickPickItemKind . Separator } ,
146- ! selectedEntry . template && { label : ENTRY_OPTION . COPY_NAME } ,
145+ { label : ENTRY_OPTION . COPY_NAME } ,
147146 { label : ENTRY_OPTION . COPY_REPO_URL } ,
148- ! selectedEntry . template && { label : ENTRY_OPTION . COPY_NPM_URL } ,
149- ! selectedEntry . template && { label : ENTRY_OPTION . COPY_DIRECTORY_URL } ,
147+ { label : ENTRY_OPTION . COPY_NPM_URL } ,
148+ { label : ENTRY_OPTION . COPY_DIRECTORY_URL } ,
150149 { label : '' , kind : QuickPickItemKind . Separator } ,
151150 { label : ENTRY_OPTION . GO_BACK } ,
152151 ] . filter ( option => ! ! option && typeof option === 'object' ) ;
@@ -279,6 +278,10 @@ export function createSearchQuickPickHandler(preferredManager: string, workspace
279278 env . openExternal ( Uri . parse ( selectedEntry . github . license . url ) ) ;
280279 break ;
281280 }
281+ case ENTRY_OPTION . VIEW_MODULES_INSPECTOR : {
282+ env . openExternal ( Uri . parse ( `https://node-modules.dev/grid/depth#install=${ selectedEntry . npmPkg } ` ) ) ;
283+ break ;
284+ }
282285 case ENTRY_OPTION . VIEW_BUNDLEPHOBIA : {
283286 env . openExternal ( Uri . parse ( `https://bundlephobia.com/package/${ selectedEntry . npmPkg } ` ) ) ;
284287 break ;
0 commit comments