99 fetchData ,
1010 getCommandToRun ,
1111 getCompatibilityList ,
12+ getEntryTypeLabel ,
1213 getPlatformsList ,
1314 KEYWORD_REGEX ,
1415 numberFormatter ,
@@ -98,7 +99,7 @@ export async function activate(context: ExtensionContext) {
9899 `$(eye) ${ numberFormatter . format ( selectedEntry . github . stats . subscribers ) } `
99100 ] . join ( ' ' )
100101 } ,
101- {
102+ ! selectedEntry . template && {
102103 label : ENTRY_OPTION . VISIT_NPM ,
103104 description : selectedEntry . npm ?. downloads
104105 ? `$(arrow-circle-down) ${ numberFormatter . format ( selectedEntry . npm . downloads ) } `
@@ -116,7 +117,7 @@ export async function activate(context: ExtensionContext) {
116117 label : ENTRY_OPTION . VIEW_DEPENDENCIES ,
117118 description : `$(package) ${ numberFormatter . format ( selectedEntry . github . stats . dependencies ) } ${ selectedEntry . github . stats . dependencies === 1 ? 'dependency' : 'dependencies' } `
118119 } ,
119- { label : ENTRY_OPTION . VIEW_BUNDLEPHOBIA } ,
120+ ! selectedEntry . template && { label : ENTRY_OPTION . VIEW_BUNDLEPHOBIA } ,
120121 { label : 'details' , kind : QuickPickItemKind . Separator } ,
121122 {
122123 label : ENTRY_OPTION . PLATFORMS ,
@@ -132,15 +133,15 @@ export async function activate(context: ExtensionContext) {
132133 } ,
133134 ...examplesActions ,
134135 { label : 'copy data' , kind : QuickPickItemKind . Separator } ,
135- { label : ENTRY_OPTION . COPY_NAME } ,
136+ ! selectedEntry . template && { label : ENTRY_OPTION . COPY_NAME } ,
136137 { label : ENTRY_OPTION . COPY_REPO_URL } ,
137- { label : ENTRY_OPTION . COPY_NPM_URL } ,
138+ ! selectedEntry . template && { label : ENTRY_OPTION . COPY_NPM_URL } ,
138139 { label : '' , kind : QuickPickItemKind . Separator } ,
139140 { label : ENTRY_OPTION . GO_BACK }
140141 ] . filter ( ( option ) => ! ! option && typeof option === 'object' ) ;
141142
142143 const optionPick = window . createQuickPick ( ) ;
143- optionPick . title = `Actions for "${ selectedEntry . label } "` ;
144+ optionPick . title = `Actions for "${ selectedEntry . label } " ${ getEntryTypeLabel ( selectedEntry ) } ` ;
144145 optionPick . placeholder = 'Select an action' ;
145146 optionPick . items = possibleActions ;
146147 optionPick . show ( ) ;
0 commit comments