Skip to content

Fix find all references for F# exceptions #18565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 19, 2025
Merged

Conversation

majocha
Copy link
Contributor

@majocha majocha commented May 16, 2025

Description

FSharpEntity was erasing exception info. That's why an Item.ExnCase written to the ItemKeyStore couldn't be retrieved later.

Fixes #18563

Manually checked that rename and find all now works for exceptions. Test cases added, too.

Checklist

  • Test cases added
  • Release notes entry updated

Copy link
Contributor

github-actions bot commented May 16, 2025

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/10.0.100.md

@majocha majocha changed the title Do not erase ExnCase in FSharpEntity Fix find all references for F# exceptions May 17, 2025
@majocha majocha force-pushed the exn-rename branch 2 times, most recently from af438ac to 6eebdb0 Compare May 17, 2025 08:24
Copy link
Member

@T-Gro T-Gro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for identifying and fixing this @majocha !

@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling May 19, 2025
@T-Gro T-Gro enabled auto-merge (squash) May 19, 2025 10:44
@T-Gro T-Gro merged commit 102c517 into dotnet:main May 19, 2025
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

"Find references" and rename does not work for F# exceptions
2 participants