You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix GDScript LSP variable rename
This commit is contained in:
@@ -293,16 +293,6 @@ struct WorkspaceEdit {
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ void add_change(const String &uri, const int &line, const int &start_character, const int &end_character, const String &new_text) {
|
||||
if (HashMap<String, Vector<TextEdit>>::Iterator E = changes.find(uri)) {
|
||||
Vector<TextEdit> edit_list = E->value;
|
||||
for (int i = 0; i < edit_list.size(); ++i) {
|
||||
TextEdit edit = edit_list[i];
|
||||
if (edit.range.start.character == start_character) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TextEdit new_edit;
|
||||
new_edit.newText = new_text;
|
||||
new_edit.range.start.line = line;
|
||||
|
||||
Reference in New Issue
Block a user