1
0
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:
Adam Scott
2023-04-15 12:29:11 -04:00
parent 24cb43a874
commit 10fe6f14bb
3 changed files with 45 additions and 19 deletions

View File

@@ -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;