Skip to content

Allow disabling the "The PowerShell Extension terminal has stopped" notifications #5336

Closed

Description

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.

Summary

While the "The PowerShell Extension terminal has stopped" notifications make sense to inform users about IntelliSense not working, they clutter up my notifications all the time. Especially since the PowerShell Extension terminal pops up way more often by now because it spawns when Copilot mentions some PowerShell code.

Image

I'd really like to be able to turn this off so my notifications can stay clean as I know what I'm doing by closing it.

Proposed Design

There should be a setting to turn off these notifications

Activity

  1. added
    Issue-Enhancement
    Needs: Triage
    on Nov 26, 2025
  2. jimmy-zhening-luo commented on Nov 26, 2025

    @jimmy-zhening-luo

    This also feels like a regression that started appearing a few months ago: I have the same setup for 3+ years, I aggressively restart all terminals, and I relaunch PowerShell. I use the PowerShell session solely for IDE support, while doing main dev in the Windows Terminal pwsh integrated console. This worked fine for years, but a few months ago, I started getting that error flyout whenever I restarted my terminals. From the log, it makes perfect sense: the flyout triggers upon process termination and should not care that a new session launched right after. So, in that sense, it's a helpful new feature, not a regression, but it's also quite annoying:

    2025-11-25 23:44:37.773 [warning] PowerShell process terminated or Extension Terminal was closed, PID: 29744
    2025-11-25 23:44:37.773 [error] The PowerShell Extension Terminal has stopped, would you like to restart it? IntelliSense and other features will not work without it!
    2025-11-25 23:44:37.821 [info] Restarting session...
    2025-11-25 23:44:37.839 [info] Starting 'PowerShell (x64)' at: C:\Program Files\PowerShell\7\pwsh.exe
    2025-11-25 23:44:38.833 [info] PowerShell process started with PID: 13172
    2025-11-25 23:44:39.988 [info] Started PowerShell v7.5.4.

    My console relaunching command (which I need because reasons):

      {
        "key": "alt+[Backquote]",
        "command": "runCommands",
        "args": {
          "commands": [
            "workbench.action.terminal.killAll",
            "workbench.action.terminal.new",
            "PowerShell.RestartSession",
          ],
        },
        "when": "!terminalEditorFocus && activeEditor != terminalEditor && viewContainer.workbench.view.extension.PowerShell.enabled",
      },

    That said, I think my usecase is quite in the weeds and as I bothered to write a keyboard shortcut for it, I was able to remedy simply by adding notifications.clearAll:

      {
        "key": "alt+[Backquote]",
        "command": "runCommands",
        "args": {
          "commands": [
            "workbench.action.terminal.killAll",
            "workbench.action.terminal.new",
            "PowerShell.RestartSession",
            "notifications.clearAll",
          ],
        },
        "when": "!terminalEditorFocus && activeEditor != terminalEditor && viewContainer.workbench.view.extension.PowerShell.enabled",
      },

    Jacob Pfundstein (@CanePlayz) I was going to suggest you do the same but then I saw that you actually don't want a PowerShell editor services session at all? If that's the case why don't you just disable the extension? I might be wrong but I am not sure the extension is actually doing anything for you if you purposely keep it off, and it will certainly resolve this issue for you.

  3. CanePlayz commented on Nov 26, 2025

    @CanePlayz
    Author

    Well I do want the syntax highlighting and such in the editor, just want to be able to disable the notifications upon closing the services

  4. Klaster1 commented on Mar 27, 2026

    @Klaster1

    This is such an annoying anti-feature that I resorted to disabling the extension, ignoring the notification from it just doesn't work. Any updates on PR merge?

  5. rchott commented on Jun 3, 2026

    @rchott

    This is making me crazy. I get so many of those, and have tried everything to turn them off. I like the powershell debugger, and i make a code change and need a fresh terminal so i can import my psm1 fresh (again) So i kill the existing terminal and let the run debug, and let that start the new one.. 3 more errors pop up, no way to avoid this, no way to turm them off and they NEVER expire and turn off.

    Reminds me of browsing porn sites in the mid 90s

  6. JustinGrote commented on Jun 4, 2026

    @JustinGrote
    Collaborator

    We can look into it but as a workaround I'd recommend choosing the option to background the extension terminal. intellisense and everything will still work but you won't be able to accidentally close it and get the error.

    The error is necessary because the extension features stop working if the powershell is closed, so if you hide it, you wont have to worry about it. You can always run a command to bring it to the foreground if you have a particular task that has to happen in the extension terminal.

    Happy to take further feedback on this. I personally typically run with the terminal backgrounded and I rarely see the restart prompt unless I'm intentionally crashing it.

  7. andyleejordan commented on Jun 4, 2026

    @andyleejordan
    Member

    rchott is it somewhat better in the preview? We finally got the updated API so we only make one notification now, not three.

  8. CanePlayz commented on Jun 4, 2026

    @CanePlayz
    Author

    Does this "powershell.integratedConsole.suppressTerminalStoppedNotification": true, help? Just encountered it for the first time.

    Update: It does indeed seem to suppress the notification.

  9. andyleejordan commented on Jun 5, 2026

    @andyleejordan
    Member

    Yup! And in the preview at least it should enable itself when you choose that button on the notification.

  10. CanePlayz commented on Jun 5, 2026

    @CanePlayz
    Author

    Yup, thanks!

  11. rchott commented on Jun 10, 2026

    @rchott

    Jacob Pfundstein (@CanePlayz) , Andy Jordan (@andyleejordan) - will try the previiew out shortly; and the new config settting. I really felt like i had hit dead end of frustration. Thanks for the speedy reply, I'll let you know what I discover, once I have time to get back to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions