Sfoglia il codice sorgente

LSP: don't send empty completion command

Александр Черник 2 anni fa
parent
commit
5715d3eb59
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      modules/gdscript/language_server/godot_lsp.h

+ 3 - 1
modules/gdscript/language_server/godot_lsp.h

@@ -1005,7 +1005,9 @@ struct CompletionItem {
 			if (commitCharacters.size()) {
 				dict["commitCharacters"] = commitCharacters;
 			}
-			dict["command"] = command.to_json();
+			if (!command.command.is_empty()) {
+				dict["command"] = command.to_json();
+			}
 		}
 		return dict;
 	}