Skip to content

Weird formatting issues #3928

Closed
PowerShell/PowerShellEditorServices
#1764
@PrzemyslawKlys

Description

@PrzemyslawKlys

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all 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

From time to time I have these weird formatting issues with new previews where even tho there are no errors and everything is great when I do formatting - this:
image

changes to:

image

Restarting the session fixes the issue, but I have not been able to track why this even happens. It's like the engine randomly thinks something different is being tracked.

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.22000.588
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.22000.588
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visual Studio Code Version

1.66.2
dfd34e8260c270da74b5c2d86d61aee4b6d56977
x64

Extension Version

Steps to Reproduce

Unfortunately no idea.

Visuals

No response

Logs

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions