mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +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
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_CPP_LANGUAGE_SERVER
|
||||
// #define DEBUG_FILE_CONTENT
|
||||
|
||||
namespace LanguageServers::Cpp {
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue