mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 09:53:25 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
parent
710b34b702
commit
0be6d925dc
1552 changed files with 1 additions and 33876 deletions
|
@ -145,7 +145,6 @@ String GDScriptLanguageProtocol::process_message(const String &p_text) {
|
|||
}
|
||||
|
||||
String GDScriptLanguageProtocol::format_output(const String &p_text) {
|
||||
|
||||
String header = "Content-Length: ";
|
||||
CharString charstr = p_text.utf8();
|
||||
size_t len = charstr.length();
|
||||
|
@ -168,7 +167,6 @@ void GDScriptLanguageProtocol::_bind_methods() {
|
|||
}
|
||||
|
||||
Dictionary GDScriptLanguageProtocol::initialize(const Dictionary &p_params) {
|
||||
|
||||
lsp::InitializeResult ret;
|
||||
|
||||
String root_uri = p_params["rootUri"];
|
||||
|
@ -183,7 +181,6 @@ Dictionary GDScriptLanguageProtocol::initialize(const Dictionary &p_params) {
|
|||
if (root_uri.length() && is_same_workspace) {
|
||||
workspace->root_uri = root_uri;
|
||||
} else {
|
||||
|
||||
workspace->root_uri = "file://" + workspace->root;
|
||||
|
||||
Dictionary params;
|
||||
|
@ -208,12 +205,10 @@ Dictionary GDScriptLanguageProtocol::initialize(const Dictionary &p_params) {
|
|||
}
|
||||
|
||||
void GDScriptLanguageProtocol::initialized(const Variant &p_params) {
|
||||
|
||||
lsp::GodotCapabilities capabilities;
|
||||
|
||||
DocData *doc = EditorHelp::get_doc_data();
|
||||
for (Map<String, DocData::ClassDoc>::Element *E = doc->class_list.front(); E; E = E->next()) {
|
||||
|
||||
lsp::GodotNativeClassInfo gdclass;
|
||||
gdclass.name = E->get().name;
|
||||
gdclass.class_doc = &(E->get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue