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 Nov 14, 2023
1 parent 29904e1 commit 07d1787
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 @@ -814,7 +814,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 07d1787

Please sign in to comment.