Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Format on save hangs with PowerShell v7.5.0, runs fine with v7.4.7

オープン
#5,134 コメント 14 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 の本文から書いたものです。

説明

Issue-Bug
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
Image
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 はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PowerShell/vscode-powershell のほかの issue

PowerShell/vscode-powershell の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。