Skip to content

PsesDocumentHighlightHandler debug log doesn't display list contents. #2278

@JustinGrote

Description

@JustinGrote

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 PowerShell Editor Services itself and does not reproduce in a standalone PowerShell instance, and is not an issue with my editor.
  • I have verified that I am using the latest version of PowerShell Editor Services.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

2026-04-13 21:27:13.967 [debug] [PSES] Microsoft.PowerShell.EditorServices.Handlers.PsesDocumentHighlightHandler: Highlights: System.Collections.Generic.List`1[OmniSharp.Extensions.LanguageServer.Protocol.Models.DocumentHighlight] | 

Should show the contents or at least the count of the number of highlights and leave the details at the trace level.

Copilot: To fix this issue, get the length of the generic list, and then output a formatted summary of each DocumentHighlight

PowerShell Version

7.6

Editor Version

N/A

PowerShell Editor Services Version

Dev

Steps to Reproduce

See Above

Visuals

No response

Logs

No response

Metadata

Metadata

Labels

Issue-BugA bug to squash.Needs: TriageMaintainer attention needed!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions