Notifications always appear when I close a powershell terminal
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- powershell, typescript, vscode
- Ambito
- backend, developer-experience
Direzione di ricerca
Start by tracing the extension terminal shutdown handling from the logs: closing the terminal is reported as a stopped PowerShell process, followed by restart prompts and a closed language service connection. Check the code that handles terminal closure and its related tests. Done means intentionally closing the terminal no longer triggers the restart notifications.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisites
- I have written a descriptive issue title.
- I have searched all open and closed issues to ensure it has not already been reported.
- I have read the troubleshooting guide.
- I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
- I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
- If this is a security issue, I have read the security issue reporting guidance.
Summary
This annoying notifications keep reappearing when I close a powershell terminal from vscode even though I already turn off the notification.
PowerShell Version
Name Value
---- -----
PSVersion 5.1.26100.9711
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.9711
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Name : ConsoleHost
Version : 5.1.26100.9711
InstanceId : 282c8351-1aad-44a1-8f83-3591e7accf19
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : en-US
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
Visual Studio Code Version
1.142.0
6d62b1d5dace93a33b3a6d3eca1317bd5e15bcb1
x64
Extension Version
[email protected]
Steps to Reproduce
- Open a new vscode window
- Open a .ps1 script, this will open automatically a powershell terminal (this is also annoying because it opens terminal window if it was hidden)
- Click "kill terminal"
- The 2 notifications in screenshot will appear
Visuals
Logs
2026-10-21 14:06:17.044 [info] Visual Studio Code: v1.142.0 64-bit on Windows 64-bit
2026-10-21 14:06:17.044 [info] PowerShell Extension: v2025.4.0
2026-10-21 14:06:17.151 [info] Starting 'Windows PowerShell (x64)' at: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
2026-10-21 14:06:17.488 [info] PowerShell process started with PID: 17188
2026-10-21 14:06:23.669 [info] Started PowerShell v5.1.26100.
2026-10-21 15:29:07.520 [info] Visual Studio Code: v1.142.0 64-bit on Windows 64-bit
2026-10-21 15:29:07.520 [info] PowerShell Extension: v2025.4.0
2026-10-21 15:29:17.402 [info] Starting 'Windows PowerShell (x64)' at: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
2026-10-21 15:29:18.098 [info] PowerShell process started with PID: 38196
2026-10-21 15:29:24.948 [info] Started PowerShell v5.1.26100.
2026-10-21 15:36:09.722 [warning] PowerShell process terminated or Extension Terminal was closed, PID: 38196
2026-10-21 15:36:09.722 [error] The PowerShell Extension Terminal has stopped, would you like to restart it? IntelliSense and other features will not work without it!
2026-10-21 15:36:10.012 [info] Language service connection closed.
2026-10-21 15:36:10.015 [info] [PSES] [Error - 3:36:10 PM] Connection to PowerShell Editor Services (the Extension Terminal) was closed. See below prompt to restart!
2026-10-21 15:40:42.106 [info] Visual Studio Code: v1.142.0 64-bit on Windows 64-bit
2026-10-21 15:40:42.106 [info] PowerShell Extension: v2025.4.0
2026-10-21 15:40:42.132 [info] Starting 'Windows PowerShell (x64)' at: C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
2026-10-21 15:40:42.665 [info] PowerShell process started with PID: 14248
2026-10-21 15:40:48.634 [info] Started PowerShell v5.1.26100.
2026-10-21 15:41:55.539 [warning] PowerShell process terminated or Extension Terminal was closed, PID: 14248
2026-10-21 15:41:55.539 [error] The PowerShell Extension Terminal has stopped, would you like to restart it? IntelliSense and other features will not work without it!
2026-10-21 15:41:55.818 [info] Language service connection closed.
2026-10-21 15:41:55.820 [info] [PSES] [Error - 3:41:55 PM] Connection to PowerShell Editor Services (the Extension Terminal) was closed. See below prompt to restart!
- Lingua principale
- TypeScript
- Stelle
- 1.9k
- Fork
- 552
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PowerShell/vscode-powershell
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
PowerShell/vscode-powershell#5656 ·
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
PowerShell/vscode-powershell#5615 · 1 commento ·
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
PowerShell/vscode-powershell#5607 ·
-
agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
PowerShell/vscode-powershell#5599 · 3 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
PowerShell/vscode-powershell#5592 · 2 commenti · 1 reazione ·
Tutte le issue di PowerShell/vscode-powershell
Issue simili
-
[good first issue, hacktoberfest] 🏯 Hacktoberfest Task - Add new Japan Fact 898 (good-first-issue)Apertacommunity first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
lingdojo/kana-dojo#33145 · 1 commento · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
code-yeongyu/senpi#4278 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Activity | The activity list ignores taskIds and returns the activities of every taskForse già presa @NdekoCode l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ever-co/ever-gauzy#11469 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
griffinwork40/agent-afk#4408 ·
I maintainer di solito rispondono entro 1 giorno