diff --git a/nixd/lib/Server/Controller.cpp b/nixd/lib/Server/Controller.cpp index 675f2009d..4ae311701 100644 --- a/nixd/lib/Server/Controller.cpp +++ b/nixd/lib/Server/Controller.cpp @@ -785,7 +785,9 @@ void Controller::onFormat( TextEdit E{{{0, 0}, {INT_MAX, INT_MAX}}, FormattedCode.value()}; Reply(std::vector{E}); } else { - Reply(lspserver::error("no formatting response received")); + // Suppress the warning, do not pop up + // Reply(lspserver::error("no formatting response received")); + Reply(std::vector{}); } }; boost::asio::post(Pool, std::move(Task));