Skip to content

Commit

Permalink
nixd/Server/format: suppress error popups
Browse files Browse the repository at this point in the history
Fixes: #246
  • Loading branch information
inclyc committed Sep 10, 2023
1 parent abd2616 commit ee324fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixd/lib/Server/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TextEdit>{});
}
};
boost::asio::post(Pool, std::move(Task));
Expand Down

0 comments on commit ee324fb

Please sign in to comment.