PowerShell / PowerShell/PowerShellEditorServices

PsesDocumentHighlightHandler debug log doesn't display list contents.

Open
#2,278 0 comments 1 reaction 2 assignees View on GitHub

@JustinGrote is already working on this.

Since Apr 13, 2026.

  • #2279 by @copilot-swe-agent — open
Issue-Bug Needs: Triage
Dominant language
C#
Stars
767
Forks
266
Avg merge
3d 16h
Merged PRs (30d)
1

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.