Notifications always appear when I close a powershell terminal
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 58/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- powershell, typescript, vscode
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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!
- 主要言語
- TypeScript
- スター
- 1.9k
- フォーク
- 552
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/vscode-powershell のほかの issue
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
PowerShell/vscode-powershell#5656 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
PowerShell/vscode-powershell#5615 · コメント 1 件 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
PowerShell/vscode-powershell#5607 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
PowerShell/vscode-powershell#5599 · コメント 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PowerShell/vscode-powershell#5592 · コメント 2 件 · リアクション 1 件 ·
PowerShell/vscode-powershell の issue をすべて見る
似ている issue
-
[good first issue, hacktoberfest] 🏯 Hacktoberfest Task - Add new Japan Fact 898 (good-first-issue)オープンcommunity first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
lingdojo/kana-dojo#33145 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
code-yeongyu/senpi#4278 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Activity | The activity list ignores taskIds and returns the activities of every task対応中かも @NdekoCode が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ever-co/ever-gauzy#11469 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
griffinwork40/agent-afk#4408 ·
メンテナーはふだん 1 日以内に返信