Skip to content
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

Introduce project-wide renaming #1431

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Conversation

voodoos
Copy link
Collaborator

@voodoos voodoos commented Dec 23, 2024

This introduces a first functional version of project-wide renaming in ocaml-lsp based on preview work on Merlin.

It re-employs the existing mechanism to handle function labelled arguments correctly. There is no guarantees related to possible shadowing. Here is an example of the feature in action, renaming a value of a functor included from its parameter. The name is changes in all the files, both in signatures and implementations, and the project rebuilds immediately:

project-wide-renaming.mov

This PR is based on #1386 and only the last 2 commits are relevant.

@voodoos voodoos marked this pull request as ready for review January 10, 2025 16:32
@voodoos voodoos force-pushed the merlin-503-renaming branch 2 times, most recently from d9adfbd to 84a8269 Compare January 10, 2025 16:56
voodoos added a commit to voodoos/ocaml-lsp that referenced this pull request Jan 10, 2025
@voodoos voodoos force-pushed the merlin-503-renaming branch from b03c8ee to a56fee0 Compare January 10, 2025 17:08
@coveralls
Copy link

coveralls commented Jan 10, 2025

Pull Request Test Coverage Report for Build 4698

Details

  • 0 of 27 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.006%) to 22.164%

Changes Missing Coverage Covered Lines Changed/Added Lines %
ocaml-lsp-server/src/rename.ml 0 27 0.0%
Totals Coverage Status
Change from base Build 4695: -0.006%
Covered Lines: 5653
Relevant Lines: 25505

💛 - Coveralls

@voodoos voodoos merged commit 68f4fcb into ocaml:master Jan 10, 2025
6 checks passed
voodoos added a commit to voodoos/opam-repository that referenced this pull request Jan 10, 2025
CHANGES:

## Features

- Enable experimental project-wide renaming of identifiers (ocaml/ocaml-lsp#1431)
voodoos added a commit to voodoos/opam-repository that referenced this pull request Jan 10, 2025
CHANGES:

## Features

- Enable experimental project-wide renaming of identifiers (ocaml/ocaml-lsp#1431)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants