Skip to content

Conversation

filipdutescu
Copy link
Owner

Motivation

Prevent renaming when no LSP client is attached to the current buffer.
Overhaul tests to cover the renaming logic.

Closes: GH-96

Proposed changes

  • update renamer.rename() to only allow renaming when an LSP client is attached

Test plan

Existing tests are updated to cover the new functionality and new tests are added for the overhaul covering renamer._lsp_rename().

@filipdutescu filipdutescu added this to the 3.0.3 milestone Nov 29, 2021
@filipdutescu filipdutescu self-assigned this Nov 29, 2021
@filipdutescu filipdutescu force-pushed the fix/no_popup_without_lsp branch from e259d4a to 1b98bae Compare November 29, 2021 20:22
Prevent renaming when no LSP client is attached to the current buffer.
Overhaul tests to cover the renaming logic.

Closes: GH-96
Signed-off-by: Filip Dutescu <filip.dutescu@gmail.com>
@filipdutescu filipdutescu merged commit 1b98bae into develop Nov 29, 2021
@filipdutescu filipdutescu deleted the fix/no_popup_without_lsp branch November 29, 2021 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Rename prompt will be displayed even if no LSP is attached
1 participant