Skip to content

Add oldName and newName to the meta data of a rename detailed reason.#277448

Merged
dbaeumer merged 3 commits intomainfrom
dbaeumer/worthwhile-bee-orange
Nov 17, 2025
Merged

Add oldName and newName to the meta data of a rename detailed reason.#277448
dbaeumer merged 3 commits intomainfrom
dbaeumer/worthwhile-bee-orange

Conversation

@dbaeumer
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings November 14, 2025 15:37
@dbaeumer dbaeumer self-assigned this Nov 14, 2025
@dbaeumer dbaeumer requested review from hediet and removed request for Copilot November 14, 2025 15:37
Copilot AI review requested due to automatic review settings November 17, 2025 11:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds oldName and newName metadata to the rename edit source for better tracking and telemetry of rename operations.

  • Enhances the EditSources.rename() function to accept and store old and new symbol names
  • Uses the $$$ prefix (highest privacy level) for these metadata fields to protect potentially sensitive symbol names
  • Updates the call site to pass the old name (loc?.text) and new name (inputFieldResult.newName) when creating rename edit sources

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/vs/editor/common/textModelEditSource.ts Modified EditSources.rename() to accept oldName and newName parameters and store them as $$$oldName and $$$newName metadata with highest privacy protection
src/vs/editor/contrib/rename/browser/rename.ts Updated the rename operation to pass the old symbol name and new symbol name to EditSources.rename() when applying bulk edits

@dbaeumer dbaeumer marked this pull request as ready for review November 17, 2025 15:59
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 17, 2025
@dbaeumer dbaeumer merged commit 4e5ba79 into main Nov 17, 2025
28 checks passed
@dbaeumer dbaeumer deleted the dbaeumer/worthwhile-bee-orange branch November 17, 2025 16:31
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Jan 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants