Skip to content

Powershell extension consumes full core of CPU when formatting #595

Closed
@latkin

Description

@latkin

System Details

  • Operating system name and version: Windows 10
  • VS Code version: 1.10.2
  • PowerShell extension version: 0.10.1
  • Output from $PSVersionTable:
Name                           Value
----                           -----
WSManStackVersion              3.0
CLRVersion
SerializationVersion           1.1.0.1
PSEdition                      Core
BuildVersion                   3.0.0.0
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
PSVersion                      6.0.0-alpha
GitCommitId                    v6.0.0-alpha.15

Issue Description

If I open a powershell script and make a few edits, I get a message "Formatting PowerShell document..." spinning forever in the footer of VS Code

image

Meanwhile, the powershell process which is powering the editor features consumes a cull core of CPU:

image

Attached Logs

EditorServices.log is over 300MB at this point, so hopefully something relevant in there. Do you have a suggested way to share? Or maybe I can just let it run for a few seconds to generate 5-10MB of logs.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions