Format on save hangs with PowerShell v7.5.0, runs fine with v7.4.7
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- powershell, typescript, vscode
調査の方向性
まず PowerShell v7.5.0 で保存時のフォーマットを再現し、記載されている VS Code と拡張機能のバージョンを使って v7.4.7 と比較します。PS1 ファイルの保存中に拡張機能の trace および editor-services のログを確認します。完了の条件は、VS Code がハングしたままになるのではなくフォーマットが完了し、回帰が適切なテストでカバーされていることです。
索引モデルが 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
Format on save hangs with PowerShell v7.5.0, it never completes. Works fine with PowerShell v7.4.7.
I've tried with v7.5.0 managed by mise (ref: https://github.com/PowerShell/vscode-powershell/issues/5123#issuecomment-2612568256), and downloaded and unzipped v7.5.0 ZIP myself.
- Windows 11 x64 24H2
- VSCode v1.96.4
- vscode-powershell v2025.0.0
- Also tried with preview version v2025.1.0
PowerShell Version
v7.5.0 x64 Windows
Name : Visual Studio Code Host
Version : 2025.1.0
InstanceId : dd17a949-7d42-4f49-b509-b842f6923341
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : nb-NO
CurrentUICulture : en-US
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
Visual Studio Code Version
1.96.4
cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba
x64
Extension Version
ms-vscode.powershell@2025.0.0
Steps to Reproduce
- Use PowerShell v7.5.0
- Configure format on save for PowerShell in VSCode
- Open PS1 file, do changes, CTRL + S to save
- VSCode hangs, formatting never happens
Visuals
Logs
I've added following config:
{
"powershell editor services.trace.server": "Verbose",
"powershell.developer.editorServicesLogLevel": "Trace"
}
I see no relevant log events.
- Is
"powershell editor services.trace.server"relevant anymore?
- 主要言語
- TypeScript
- スター
- 1.9k
- フォーク
- 548
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PowerShell/vscode-powershell のほかの issue
-
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 件 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
PowerShell/vscode-powershell#5583 · コメント 1 件 ·
-
powershell.scriptAnalysis.settingsPath (Description): Warning Message Should Provide A Workaround オープンArea-Code Formatting Issue-Enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
PowerShell/vscode-powershell#4653 · コメント 3 件 · リアクション 4 件 ·
-
agentic-workflows
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
PowerShell/vscode-powershell#5606 ·
PowerShell/vscode-powershell の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
TanStack/tanstack.com#1293 ·