File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/vs/workbench/contrib/extensions/browser Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -599,7 +599,6 @@ export class ExtensionEditor extends EditorPane {
599
599
600
600
private setRecommendationText ( extension : IExtension , template : IExtensionEditorTemplate ) : void {
601
601
const updateRecommendationText = ( layout : boolean ) => {
602
- reset ( template . recommendation ) ;
603
602
const extRecommendations = this . extensionRecommendationsService . getAllRecommendationsWithReason ( ) ;
604
603
if ( extRecommendations [ extension . identifier . id . toLowerCase ( ) ] ) {
605
604
const reasonText = extRecommendations [ extension . identifier . id . toLowerCase ( ) ] . reasonText ;
@@ -614,6 +613,10 @@ export class ExtensionEditor extends EditorPane {
614
613
this . layout ( this . dimension ) ;
615
614
}
616
615
} ;
616
+ reset ( template . recommendation ) ;
617
+ if ( extension . state === ExtensionState . Installed ) {
618
+ return ;
619
+ }
617
620
updateRecommendationText ( false ) ;
618
621
this . transientDisposables . add ( this . extensionRecommendationsService . onDidChangeRecommendations ( ( ) => updateRecommendationText ( true ) ) ) ;
619
622
}
You can’t perform that action at this time.
0 commit comments