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 f88accc commit 2c1f359
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 2c1f359

Please sign in to comment.