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

Implement lsp_rename() #15

Merged
merged 6 commits into from
Mar 20, 2024
Merged

Implement lsp_rename() #15

merged 6 commits into from
Mar 20, 2024

Conversation

lieryan
Copy link
Member

@lieryan lieryan commented Oct 5, 2022

Fixes #14

pylsp_rope/plugin.py Outdated Show resolved Hide resolved
new_name,
) -> typing.WorkspaceEdit:
# rope_config = config.settings(document_path=document.path).get("rope", {})
# project = workspace._rope_project_builder(rope_config)
Copy link
Member Author

Choose a reason for hiding this comment

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

Remove commented out code

@lieryan lieryan mentioned this pull request Oct 14, 2022
4 tasks
@lieryan lieryan force-pushed the lieryan-implement-rename branch 4 times, most recently from 34f901a to 4da44a2 Compare March 11, 2024 05:03
lieryan and others added 6 commits March 19, 2024 23:10
Rename using pylsp-rope can be enabled with workspace config key
`pylsp.plugins.pylsp_rope.rename`.

Note that this differs from the config key
`pylsp.plugins.rope_rename.enabled` that is used for the builtin
python-lsp-server rope implementation. To avoid confusion, avoid
enabling more than one python-lsp-server rename plugin.
It seems like there's strange desynchronisation issues between client
buffer state and rope's if we reused the project. We'll eventually want
to fix this, but for now, this works the least awful.
Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.58%. Comparing base (985271e) to head (8736268).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   98.48%   98.58%   +0.09%     
==========================================
  Files          21       22       +1     
  Lines         923      988      +65     
==========================================
+ Hits          909      974      +65     
  Misses         14       14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lieryan lieryan merged commit 028816b into main Mar 20, 2024
7 checks passed
@lieryan lieryan deleted the lieryan-implement-rename branch March 20, 2024 02:04
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.

Feature: rename
1 participant