@@ -71,16 +71,18 @@ export class ExtensionNotifications {
71
71
// to avoid having multiple notification of the same nature in the notifications list
72
72
// we first dispose the old one and then push the same again
73
73
public notifySetupPodman ( ) : void {
74
- // Alert for setting up
75
- this . _notificationDisposable ??= extensionApi . window . showNotification ( {
76
- title : 'Podman needs to be set up' ,
77
- body : 'The Podman extension is installed, yet requires configuration. Some features might not function optimally.' ,
78
- type : 'info' ,
79
- markdownActions : ':button[Set up]{href=/preferences/onboarding/podman-desktop.podman title="Set up Podman"}' ,
80
- highlight : true ,
81
- silent : true ,
82
- } ) ;
83
- this . shouldNotifySetup = false ;
74
+ if ( this . shouldNotifySetup ) {
75
+ // Alert for setting up
76
+ this . _notificationDisposable ??= extensionApi . window . showNotification ( {
77
+ title : 'Podman needs to be set up' ,
78
+ body : 'The Podman extension is installed, yet requires configuration. Some features might not function optimally.' ,
79
+ type : 'info' ,
80
+ markdownActions : ':button[Set up]{href=/preferences/onboarding/podman-desktop.podman title="Set up Podman"}' ,
81
+ highlight : true ,
82
+ silent : true ,
83
+ } ) ;
84
+ this . shouldNotifySetup = false ;
85
+ }
84
86
}
85
87
86
88
private notifyDisguisedPodmanSocket ( ) : void {
@@ -176,7 +178,7 @@ export class ExtensionNotifications {
176
178
public notifySetupPodmanNotLinux ( ) : void {
177
179
// Only show the notification on macOS and Windows
178
180
// as Podman is already installed on Linux and machine is OPTIONAL.
179
- if ( this . shouldNotifySetup && ! extensionApi . env . isLinux ) {
181
+ if ( ! extensionApi . env . isLinux ) {
180
182
// push setup notification
181
183
this . notifySetupPodman ( ) ;
182
184
}
0 commit comments