mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-21 18:42:53 +00:00
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
This commit is contained in:
parent
7b0a1a98d9
commit
27bc48e06c
Notes:
sideshowbarker
2024-07-18 22:58:53 +09:00
Author: https://github.com/asynts
Commit: 27bc48e06c
Pull-request: https://github.com/SerenityOS/serenity/pull/5012
Reviewed-by: https://github.com/alimpfard
11 changed files with 116 additions and 109 deletions
|
@ -26,13 +26,11 @@
|
|||
|
||||
#include "ClientConnection.h"
|
||||
#include "AutoComplete.h"
|
||||
#include <AK/Debug.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <LibCore/File.h>
|
||||
#include <LibGUI/TextDocument.h>
|
||||
|
||||
// #define DEBUG_SH_LANGUAGE_SERVER
|
||||
// #define DEBUG_FILE_CONTENT
|
||||
|
||||
namespace LanguageServers::Shell {
|
||||
|
||||
static HashMap<int, RefPtr<ClientConnection>> s_connections;
|
||||
|
@ -89,9 +87,7 @@ void ClientConnection::handle(const Messages::LanguageServer::FileOpened& messag
|
|||
auto document = GUI::TextDocument::create(&s_default_document_client);
|
||||
document->set_text(content_view);
|
||||
m_open_files.set(message.file_name(), document);
|
||||
#ifdef DEBUG_FILE_CONTENT
|
||||
dbg() << document->text();
|
||||
#endif
|
||||
dbgln<debug_file_content>("{}", document->text());
|
||||
}
|
||||
|
||||
void ClientConnection::handle(const Messages::LanguageServer::FileEditInsertText& message)
|
||||
|
@ -133,9 +129,7 @@ void ClientConnection::handle(const Messages::LanguageServer::FileEditRemoveText
|
|||
};
|
||||
|
||||
document->remove(range);
|
||||
#ifdef DEBUG_FILE_CONTENT
|
||||
dbg() << document->text();
|
||||
#endif
|
||||
dbgln<debug_file_content>("{}", document->text());
|
||||
}
|
||||
|
||||
void ClientConnection::handle(const Messages::LanguageServer::AutoCompleteSuggestions& message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue