@@ -15,6 +15,7 @@ export interface IJsonList {
1515 uuid : string ;
1616 description : string ;
1717 website : string ;
18+ instructions : string ;
1819}
1920
2021export interface IDepInstalled { name : string ; currentVersion : string ; versionInfo : { version : string , buttonText : string } [ ] ; }
@@ -226,6 +227,9 @@ export class DependencyViewProvider implements vscode.WebviewViewProvider {
226227 const success = await this . vendorLibraries . installDependency ( dep , this . vendorLibraries . getWpVendorFolder ( this . wp ) , true ) ;
227228
228229 if ( success ) {
230+ if ( avail . instructions ) {
231+ await vscode . commands . executeCommand ( 'extension.showWebsite' , avail . instructions , dep . name ) ;
232+ }
229233 this . changed = Date . now ( ) ;
230234
231235 if ( dep . requires ) {
@@ -236,6 +240,7 @@ export class DependencyViewProvider implements vscode.WebviewViewProvider {
236240 const newDep = await this . listToDependency ( reqDep ) ;
237241 if ( reqDep && newDep ) {
238242 await this . vendorLibraries . installDependency ( newDep , this . vendorLibraries . getWpVendorFolder ( this . wp ) , true ) ;
243+ // Do not show install instructions for required deps only selected.
239244 }
240245 }
241246 }
@@ -406,7 +411,8 @@ export class DependencyViewProvider implements vscode.WebviewViewProvider {
406411 version : i18n ( 'ui' , homedep . version ) ,
407412 uuid : i18n ( 'ui' , homedep . uuid ) ,
408413 description : i18n ( 'ui' , 'Loaded from Local Copy' ) ,
409- website : i18n ( 'ui' , 'Loaded from Local Copy' )
414+ website : i18n ( 'ui' , 'Loaded from Local Copy' ) ,
415+ instructions : i18n ( 'ui' , 'Loaded from Local Copy' )
410416 } ;
411417 const found = this . onlineDeps . find ( onlinedep => onlinedep . uuid === depList . uuid && onlinedep . version === depList . version ) ;
412418 if ( ! found ) {
0 commit comments