Avoid double text edits when renaming mod declaration

This commit is contained in:
Lukas Wirth
2021-03-10 15:49:01 +01:00
parent a9b1e5cde1
commit 3af69b5359
4 changed files with 15 additions and 2 deletions

View File

@@ -395,6 +395,9 @@ impl Config {
pub fn work_done_progress(&self) -> bool {
try_or!(self.caps.window.as_ref()?.work_done_progress?, false)
}
pub fn will_rename(&self) -> bool {
try_or!(self.caps.workspace.as_ref()?.file_operations.as_ref()?.will_rename?, false)
}
pub fn code_action_resolve(&self) -> bool {
try_or!(
self.caps