Skip to content

Keep implicit record references out of type rename edits - #20797

Open
T-Gro wants to merge 2 commits into
mainfrom
fix/issue-20791
Open

T-Gro wants to merge 2 commits into
mainfrom
fix/issue-20791

Conversation

@T-Gro

@T-Gro T-Gro commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Description

Fixes #20791.

Record-type rename filters semantic record-construction and copy/update references that do not contain an editable type-name token. Find All References keeps those references. The editor provider tests cover discovery, preview locations, applied source, and compilation, including signature and dependent-project paths.

Fresh dependency-enabled compiler/editor builds and all 115 focused editor/FCS tests pass with the locally built FSharp.Core, including a fresh run on the final published head. Source-built resource-generation tasks were hash-pinned in an isolated snapshot to avoid locking their own build outputs. Rendered Visual Studio UI and comparison against the reporter's installed binaries remain unverified; no compatible Visual Studio installation is available here.

Checklist

  • Test cases added
  • Performance benchmarks added in case of performance changes (not applicable)
  • Release notes entry updated with the actual PR link

Keep record and opaque type rename edits on identifier tokens without changing Find All References discovery. Cover copy/update expressions, signatures, dependent projects, lexical edge cases, and both compiler/search modes.

Resolve the CODE-QUALITY verification blocker with a complete Release compiler/editor dependency build. Document pinned-SDK host selection, desktop test utility targets, consistent bootstrap-redirection settings for build and test, and the SDK-hosted XAML source-embedding option. No architecture or reuse defect was identified in the reviewed production change.

Validation: Release FSharp.slnx and FSharp.Editor.Tests builds succeeded with zero errors and BuildProjectReferences=true, using the exact SDK-hosted recipe in DEVGUIDE.md. All 46 editor rename/FAR tests and all 69 FCS FindReferences tests passed, including all 43 added cases. dotnet fantomas . completed without changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Release notes checked


✅ Found changes and release notes in following paths:

Change path Release notes path Description
`vsintegration/src` docs/release-notes/.VisualStudio/18.vNext.md

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 20b10bf6-6a7c-483a-8d09-d521e7ddd73d

This branch has not been deployed

No deployments
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.

Visual Studio F# Rename corrupts record update expressions

1 participant