Skip to content

Fix delegate Invoke classification in declaration (#16982)#19813

Draft
T-Gro wants to merge 3 commits into
mainfrom
fix/issue-16982
Draft

Fix delegate Invoke classification in declaration (#16982)#19813
T-Gro wants to merge 3 commits into
mainfrom
fix/issue-16982

Conversation

@T-Gro
Copy link
Copy Markdown
Member

@T-Gro T-Gro commented May 26, 2026

Fixes #16982

In SemanticClassification.fs, skip classification of synthesized delegate members (Invoke, BeginInvoke, EndInvoke) when their range is contained within the declaring type's range. This prevents incorrect coloring of types in delegate declarations.

Regression test added in SemanticClassificationRegressions.fs.

Copilot and others added 2 commits May 26, 2026 13:23
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@T-Gro T-Gro requested a review from a team as a code owner May 26, 2026 12:03
@T-Gro T-Gro marked this pull request as draft May 26, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

Using delegate keyword breaks semantic highlighting

1 participant