File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 10371037 "default" : false ,
10381038 "markdownDescription" : " Do not show the startup banner in the PowerShell Extension Terminal."
10391039 },
1040+ "powershell.showTerminalStoppedNotification" : {
1041+ "type" : " boolean" ,
1042+ "default" : true ,
1043+ "markdownDescription" : " Show a notification when the PowerShell Extension terminal has stopped."
1044+ },
10401045 "powershell.integratedConsole.showOnStartup" : {
10411046 "type" : " boolean" ,
10421047 "default" : true ,
Original file line number Diff line number Diff line change @@ -1133,6 +1133,15 @@ Type 'help' to get help.
11331133 }
11341134
11351135 private async promptForRestart ( ) : Promise < void > {
1136+ // Check user configuration before showing notification
1137+ const showNotifications = vscode . workspace
1138+ . getConfiguration ( "powershell" )
1139+ . get < boolean > ( "showTerminalStoppedNotification" , true ) ;
1140+
1141+ if ( ! showNotifications ) {
1142+ // User opted out — silently skip the notification
1143+ return ;
1144+ }
11361145 await this . logger . writeAndShowErrorWithActions (
11371146 "The PowerShell Extension Terminal has stopped, would you like to restart it? IntelliSense and other features will not work without it!" ,
11381147 [
You can’t perform that action at this time.
0 commit comments